Skip to content

Commit a91f17e

Browse files
author
Michael Schwarcz
committed
LPC targets: Compile us_ticker.c only if USTICKER defined
1 parent 0e73a83 commit a91f17e

File tree

1 file changed

+5
-0
lines changed
  • targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC

1 file changed

+5
-0
lines changed

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC/us_ticker.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#include "fsl_ctimer.h"
1919
#include "PeripheralNames.h"
2020

21+
#if DEVICE_USTICKER
22+
2123
#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
2224
#define CTIMER CTIMER0
2325
#define CTIMER_IRQn CTIMER0_IRQn
@@ -117,3 +119,6 @@ void us_ticker_free(void)
117119
NVIC_DisableIRQ(CTIMER_IRQn);
118120
us_ticker_inited = false;
119121
}
122+
123+
#endif // DEVICE_USTICKER
124+

0 commit comments

Comments
 (0)