altos/telelco-v2.0: Set HAS_ADC_SINGLE to enable HSI timer
authorKeith Packard <keithp@keithp.com>
Tue, 29 May 2018 02:19:43 +0000 (19:19 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 29 May 2018 02:19:43 +0000 (19:19 -0700)
The ADC unit requires the HSI timer to run, so make sure it's enabled
for this device.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/telelco-v2.0/ao_pins.h

index 4311bac87178625eeddbbf0d30ad9a46551fecd7..61a8676a38646158386aab8b447bd4788e1c25ed 100644 (file)
@@ -366,6 +366,7 @@ struct ao_adc {
 #define AO_ADC_DUMP(p) \
        printf("batt: %5d\n", p.v_batt)
 
+#define HAS_ADC_SINGLE         1
 #define HAS_ADC_TEMP           0
 #define HAS_BATTERY_REPORT     1