• Alessandro Rubini's avatar
    temperature: add a temperature framework · e2e7d59a
    Alessandro Rubini authored
    This commit adds data structures, methods and a process to manage
    temperature.  Currently the only temperature being read is the onewire
    thermometer, so there is no difference with what we had before.
    The cost is 1.1 kB in binary size.
    
    Well, there is a difference: only the stat engine was reading
    temperature, while now the thermometer is read continuously (every 15
    seconds, or another Kconfig-urable interval).  This takes quite some
    CPU time (18.5ms per polling loop, but allows any user to read
    temperature (using the API we now provide) without re-reading the
    onewire bus.
    
    The real aim of this is monitoring a board-specific set of sensors,
    as implemented and show in the next commit.
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    e2e7d59a
Name
Last commit
Last update
arch/lm32 Loading commit data...
configs Loading commit data...
dev Loading commit data...
doc Loading commit data...
include Loading commit data...
ipc Loading commit data...
lib Loading commit data...
monitor Loading commit data...
pp_printf Loading commit data...
ppsi @ 5c5c8039
scripts Loading commit data...
sdb-lib Loading commit data...
shell Loading commit data...
softpll Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
bigobj.lds Loading commit data...
check-error.c Loading commit data...
dump-info.c Loading commit data...
revision.c Loading commit data...
system_checks.c Loading commit data...
wrc_main.c Loading commit data...
wrc_ptp.h Loading commit data...
wrs_main.c Loading commit data...