• 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
..
monitor_ppsi.c Loading commit data...