… into testing
This commit makes the driver average the last 4 measurements, to smooth out quick oscillations. The temperature driver was also rearranged to provide direct readings on either degrees C or F. The offset parameter was moved to influence the raw sensor value instead of the temperature (C/F), making it independent of what displaying units were selected. I was expecting the code to decrease but it was not the case. We might consider trying to optimize this further in the future. Maybe by only storing the first 8 LSB in the adcresult vector?
Signed-off-by: Angelo Arrifano <email@example.com>
read only the needed bits in get_alarm, keep AE bits when rewriting in set_alarm RTCAHOUR register AE ro/0 ro/0 4 3 2 1 0 (&0x1F hours) RTCAMIN register AE ro/0 5 4 3 2 1 0 (&0x3F minutes) add handling for RTCAIFG append events to rtca_last_event, don't overwrite them Signed-off-by: Angelo Arrifano <firstname.lastname@example.org>