mbed-os/targets/TARGET_Freescale
Russ Butler f749a2990b Safely initialize RTC on kinetis devices
When initializing the RTC on Kinetis devices, handle the case where
the time overflow interrupt is pending and the case where the time
alarm flag is pending. These flags persist across reset and if not
handled will cause a crash when powering up the low power ticker.

This problem manifested as a lp_ticker test failure on the K22F and
K64F on CI only when running a nightly. This problem has been present
but was made obvious by PR #4094 which configures all tickers to
interrupt at least every MBED_TICKER_INTERRUPT_TIMESTAMP_MAX_DELTA
(~31 minutes). This caused the RTC alarm to fire 31 minutes after the lp_ticker
or lp_timeout test and caused the next run of the lp_ticker test to
crash on boot.
2017-06-06 15:30:41 -05:00
..
TARGET_K20XX Merge pull request #4294 from ARMmbed/feature_cmsis5 2017-06-02 23:44:32 -05:00
TARGET_KLXX Merge pull request #4294 from ARMmbed/feature_cmsis5 2017-06-02 23:44:32 -05:00
TARGET_MCUXpresso_MCUS Safely initialize RTC on kinetis devices 2017-06-06 15:30:41 -05:00
mbed_rtx.h Remove deprecated RTX4 config options 2017-05-30 18:55:55 +01:00