diff options
-rw-r--r-- | chip/stm32/clock-stm32h7.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chip/stm32/clock-stm32h7.c b/chip/stm32/clock-stm32h7.c index f41a76b87a..bd7cf65d3f 100644 --- a/chip/stm32/clock-stm32h7.c +++ b/chip/stm32/clock-stm32h7.c @@ -33,10 +33,9 @@ */ #define LPTIM_PRESCALER_LOG2 2 /* - * LPTIM_PRESCALER and LPTIM_PERIOD_US have to be signed, because we compare - * them to an int to decide whether to go to deep sleep. Simply using BIT() - * makes them unsigned, which causes a bug in deep sleep behavior. - * TODO(b/140538084): Explain exactly what the bug is. + * LPTIM_PRESCALER and LPTIM_PERIOD_US have to be signed, because they + * determine the signedness of the comparison with |next_delay| in + * __idle(), where |next_delay| is negative if no next event. */ #define LPTIM_PRESCALER ((int)BIT(LPTIM_PRESCALER_LOG2)) #define LPTIM_PERIOD_US (SECOND / (STM32_LSI_CLOCK / LPTIM_PRESCALER)) |