diff options
Diffstat (limited to 'chip/it83xx/clock.c')
-rw-r--r-- | chip/it83xx/clock.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chip/it83xx/clock.c b/chip/it83xx/clock.c index b5638f2bbc..2dc45dbf5c 100644 --- a/chip/it83xx/clock.c +++ b/chip/it83xx/clock.c @@ -5,6 +5,7 @@ /* Clocks and power management settings */ +#include "adc_chip.h" #include "clock.h" #include "common.h" #include "console.h" @@ -27,6 +28,10 @@ #define SLEEP_SET_HTIMER_DELAY_USEC 250 #define SLEEP_FTIMER_SKIP_USEC (HOOK_TICK_INTERVAL * 2) +#ifdef CONFIG_ADC +BUILD_ASSERT(ADC_TIMEOUT_US < SLEEP_SET_HTIMER_DELAY_USEC); +#endif + static timestamp_t sleep_mode_t0; static timestamp_t sleep_mode_t1; static int idle_doze_cnt; |