Skip to content

Commit 7ec02a0

Browse files
committed
Add DEVICE_RTC symbol check in RTC source files for NCS36510 target.
1 parent 336a03d commit 7ec02a0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

targets/TARGET_ONSEMI/TARGET_NCS36510/exceptions.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,13 @@ void fIrqUart2Handler(void)
123123
Uart2_Irq();
124124
}
125125

126+
#ifdef DEVICE_RTC
126127
/** Call the RTC IRQ handler */
127128
void fIrqRtcHandler(void)
128129
{
129130
fRtcHandler();
130131
}
132+
#endif
131133

132134
/** Call the I2C IRQ handler */
133135
void fIrqI2CHandler(void)

targets/TARGET_ONSEMI/TARGET_NCS36510/rtc.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
* if the alarm occurs upon a Counter increment condition.
4242
*
4343
*/
44+
45+
#ifdef DEVICE_RTC
46+
4447
#include "rtc.h"
4548
#include "mbed_assert.h"
4649
#include "lp_ticker_api.h"
@@ -300,3 +303,5 @@ boolean fIsRtcEnabled(void)
300303
return False;
301304
}
302305
}
306+
307+
#endif

0 commit comments

Comments
 (0)