mirror of https://github.com/ARMmbed/mbed-os.git
Keep rtc code if low power timer is used
Keep the RTC code if either DEVICE_RTC or DEVICE_LOWPOWERTIMER is defined on the devices which use the RTC for both the rtc api and the low power timer api. This allows DEVICE_LOWPOWERTIMER to be enabled while DEVICE_RTC is turned off.pull/7009/head
parent
77637682a0
commit
a0a9626420
|
|
@ -46,7 +46,7 @@ void NMI_Handler(void)
|
||||||
gpio_init_in(&gpio, PTA4);
|
gpio_init_in(&gpio, PTA4);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEVICE_RTC
|
#if DEVICE_RTC || DEVICE_LOWPOWERTIMER
|
||||||
// Enable the RTC oscillator if available on the board
|
// Enable the RTC oscillator if available on the board
|
||||||
void rtc_setup_oscillator(RTC_Type *base)
|
void rtc_setup_oscillator(RTC_Type *base)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
*/
|
*/
|
||||||
#include "rtc_api.h"
|
#include "rtc_api.h"
|
||||||
|
|
||||||
#if DEVICE_RTC
|
#if DEVICE_RTC || DEVICE_LOWPOWERTIMER
|
||||||
|
|
||||||
#include "pinmap.h"
|
#include "pinmap.h"
|
||||||
#include "fsl_rtc.h"
|
#include "fsl_rtc.h"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue