Skip to content

Commit 8f79480

Browse files
mprsebulislaw
authored andcommitted
Add DEVICE_RTC symbol check in RTC source files for NCS36510 target.
1 parent ce982fe commit 8f79480

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
@@ -117,11 +117,13 @@ void fIrqUart2Handler(void)
117117
Uart2_Irq();
118118
}
119119

120+
#ifdef DEVICE_RTC
120121
/** Call the RTC IRQ handler */
121122
void fIrqRtcHandler(void)
122123
{
123124
fRtcHandler();
124125
}
126+
#endif
125127

126128
/** Call the I2C IRQ handler */
127129
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)