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
Russ Butler 2017-10-23 15:36:03 -05:00 committed by Bartek Szatkowski
parent 77637682a0
commit a0a9626420
2 changed files with 2 additions and 2 deletions

View File

@ -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)
{ {

View File

@ -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"