Skip to content

Commit 21df0e0

Browse files
committed
[Nuvoton] Enlarge LPTICKER_DELAY_TICKS for safe
On Nuvoton targets, lp_ticker_set_interrupt(...) needs around 3 lp-ticker ticks to take effect. It may miss when current tick and match tick are very close (see hal/LowPowerTickerWrapper.cpp). Enlarge LPTICKER_DELAY_TICKS to 4 from 3 to address this boundary case.
1 parent 358046e commit 21df0e0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

targets/targets.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7407,7 +7407,7 @@
74077407
}
74087408
},
74097409
"inherits": ["Target"],
7410-
"macros_add": ["MBEDTLS_CONFIG_HW_SUPPORT", "LPTICKER_DELAY_TICKS=3"],
7410+
"macros_add": ["MBEDTLS_CONFIG_HW_SUPPORT", "LPTICKER_DELAY_TICKS=4"],
74117411
"device_has": [
74127412
"USTICKER",
74137413
"LPTICKER",
@@ -7536,7 +7536,7 @@
75367536
}
75377537
},
75387538
"inherits": ["Target"],
7539-
"macros_add": ["LPTICKER_DELAY_TICKS=3"],
7539+
"macros_add": ["LPTICKER_DELAY_TICKS=4"],
75407540
"progen": { "target": "numaker-pfm-m453" },
75417541
"device_has": [
75427542
"USTICKER",
@@ -7608,7 +7608,7 @@
76087608
"CMSIS_VECTAB_VIRTUAL",
76097609
"CMSIS_VECTAB_VIRTUAL_HEADER_FILE=\"cmsis_nvic.h\"",
76107610
"MBED_FAULT_HANDLER_DISABLED",
7611-
"LPTICKER_DELAY_TICKS=3"
7611+
"LPTICKER_DELAY_TICKS=4"
76127612
],
76137613
"device_has": [
76147614
"USTICKER",
@@ -7964,7 +7964,7 @@
79647964
}
79657965
},
79667966
"inherits": ["Target"],
7967-
"macros_add": ["MBEDTLS_CONFIG_HW_SUPPORT", "LPTICKER_DELAY_TICKS=3"],
7967+
"macros_add": ["MBEDTLS_CONFIG_HW_SUPPORT", "LPTICKER_DELAY_TICKS=4"],
79687968
"device_has": [
79697969
"USTICKER",
79707970
"LPTICKER",
@@ -8185,7 +8185,7 @@
81858185
"macros": [
81868186
"MBED_FAULT_HANDLER_DISABLED",
81878187
"MBED_TZ_DEFAULT_ACCESS=1",
8188-
"LPTICKER_DELAY_TICKS=3"
8188+
"LPTICKER_DELAY_TICKS=4"
81898189
],
81908190
"trustzone": true,
81918191
"is_disk_virtual": true,

0 commit comments

Comments
 (0)