drivers: timer: nxp: Conditionally compile the wakeup source
The function to enable wakeup from deep sleep modes is not available on all SoC's. Hence compile this only when the wakeup_source property is enabled. Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
This commit is contained in:
parent
32da420126
commit
b72b99f49a
1 changed files with 3 additions and 3 deletions
|
@ -122,9 +122,9 @@ static int sys_clock_driver_init(void)
|
|||
|
||||
base = (OSTIMER_Type *)DT_INST_REG_ADDR(0);
|
||||
|
||||
if (DT_INST_PROP(0, wakeup_source)) {
|
||||
EnableDeepSleepIRQ(DT_INST_IRQN(0));
|
||||
}
|
||||
#if (DT_INST_PROP(0, wakeup_source))
|
||||
EnableDeepSleepIRQ(DT_INST_IRQN(0));
|
||||
#endif
|
||||
|
||||
/* Initialize the OS timer, setting clock configuration. */
|
||||
OSTIMER_Init(base);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue