• Alessandro Rubini's avatar
    onewire: Kconfig choice between w1 and sockitowm · ad2efece
    Alessandro Rubini authored
    This adds the build choice about whether to use the older sockitowm or
    the new "w1" implementation, which supports all three thermometers
    but is still missing eeprom support (the API is defined, though, see
    include/w1.h
    
    This also adds a shell command, called "w1", which rescans the bus and
    tries to read the temperature from all devices. In the example below
    the third device is an eeprom, so it return an error for temperature
    read-out.
    
       wrc# w1
       W1: 68000801dce56910
       W1: f70000001eda8242
       W1: 5f00000040e50143
       device 0: 68000801dce56910
       temp: 34.7500
       device 1: f70000001eda8242
       temp: 32.5000
       device 2: 5f00000040e50143
       temp: -32768.0000
    
    The code is properly integrated in wrpc-sw, and the "first" thermometer is
    used to build the MAC address of the device, like it used to be with
    sockitowm.
    
    The binary built with w1 is 3kB smaller than what is build with sockitowm.
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    ad2efece
Name
Last commit
Last update
arch/lm32 Loading commit data...
boards Loading commit data...
configs Loading commit data...
dev Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
monitor Loading commit data...
pp_printf Loading commit data...
ppsi @ 44deab24
ptp-noposix @ 79a7beb2
scripts Loading commit data...
shell Loading commit data...
sockitowm Loading commit data...
softpll Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
bigobj.lds Loading commit data...
revision.c Loading commit data...
wrc_main.c Loading commit data...
wrc_ptp.h Loading commit data...
wrc_ptp_noposix.c Loading commit data...
wrc_ptp_ppsi.c Loading commit data...