mirror of https://github.com/ARMmbed/mbed-os.git
ARM_CM3DS_MPS2: add protection to lp_ticker.c.
Compile this file only when DEVICE_LOWPOWERTIMER is defined.pull/7009/head
parent
f226ae2fc9
commit
1df54efc61
|
@ -25,6 +25,7 @@
|
||||||
#include "lp_ticker_api.h"
|
#include "lp_ticker_api.h"
|
||||||
#include "platform_devices.h"
|
#include "platform_devices.h"
|
||||||
|
|
||||||
|
#if DEVICE_LOWPOWERTIMER
|
||||||
/**
|
/**
|
||||||
* \brief Calculate clocks to us
|
* \brief Calculate clocks to us
|
||||||
*
|
*
|
||||||
|
@ -111,3 +112,5 @@ void TIMER1_IRQHandler(void)
|
||||||
{
|
{
|
||||||
cmsdk_ticker_irq_handler(&timer_data);
|
cmsdk_ticker_irq_handler(&timer_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue