Skip to content

Commit 0d88ff0

Browse files
committed
Fix USTICKER build error for LPC11U35_401
1 parent b1b0673 commit 0d88ff0

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

targets/TARGET_NXP/TARGET_LPC11UXX/us_ticker.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#include "us_ticker_api.h"
1818
#include "PeripheralNames.h"
1919

20+
#if DEVICE_USTICKER
21+
2022
#define US_TICKER_TIMER ((LPC_CTxxBx_Type *)LPC_CT32B1_BASE)
2123
#define US_TICKER_TIMER_IRQn TIMER_32_1_IRQn
2224

@@ -70,3 +72,5 @@ void us_ticker_free(void)
7072
{
7173

7274
}
75+
76+
#endif // DEVICE_USTICKER

targets/targets.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,13 @@
374374
"SERIAL",
375375
"SLEEP",
376376
"SPI",
377-
"SPISLAVE"
377+
"SPISLAVE",
378+
"USTICKER"
378379
],
380+
"overrides": {
381+
"tickless-from-us-ticker" : true,
382+
"boot-stack-size" : "0x400"
383+
},
379384
"default_lib": "small",
380385
"release_versions": ["2"],
381386
"device_name": "LPC11U35FBD48/401"

0 commit comments

Comments
 (0)