Add DEVICE_RTC symbol check in RTC source files for NCS36510 target.

pull/7009/head
Przemyslaw Stekiel 2018-01-08 09:13:58 +01:00 committed by Bartek Szatkowski
parent d429458ac7
commit ebeab7f462
2 changed files with 7 additions and 0 deletions

View File

@ -117,11 +117,13 @@ void fIrqUart2Handler(void)
Uart2_Irq();
}
#ifdef DEVICE_RTC
/** Call the RTC IRQ handler */
void fIrqRtcHandler(void)
{
fRtcHandler();
}
#endif
/** Call the I2C IRQ handler */
void fIrqI2CHandler(void)

View File

@ -41,6 +41,9 @@
* if the alarm occurs upon a Counter increment condition.
*
*/
#ifdef DEVICE_RTC
#include "rtc.h"
#include "mbed_assert.h"
#include "lp_ticker_api.h"
@ -300,3 +303,5 @@ boolean fIsRtcEnabled(void)
return False;
}
}
#endif