LPC targets: Compile us_ticker.c only if USTICKER defined

pull/10155/head
Michael Schwarcz 2019-03-24 18:11:58 +02:00
parent 0e73a83bb2
commit a91f17e824
1 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,8 @@
#include "fsl_ctimer.h"
#include "PeripheralNames.h"
#if DEVICE_USTICKER
#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
#define CTIMER CTIMER0
#define CTIMER_IRQn CTIMER0_IRQn
@ -117,3 +119,6 @@ void us_ticker_free(void)
NVIC_DisableIRQ(CTIMER_IRQn);
us_ticker_inited = false;
}
#endif // DEVICE_USTICKER