[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.
pull/11021/head
Chun-Chieh Li 2019-07-09 15:27:34 +08:00
parent 358046e472
commit 21df0e00ce
1 changed files with 5 additions and 5 deletions

View File

@ -7407,7 +7407,7 @@
}
},
"inherits": ["Target"],
"macros_add": ["MBEDTLS_CONFIG_HW_SUPPORT", "LPTICKER_DELAY_TICKS=3"],
"macros_add": ["MBEDTLS_CONFIG_HW_SUPPORT", "LPTICKER_DELAY_TICKS=4"],
"device_has": [
"USTICKER",
"LPTICKER",
@ -7536,7 +7536,7 @@
}
},
"inherits": ["Target"],
"macros_add": ["LPTICKER_DELAY_TICKS=3"],
"macros_add": ["LPTICKER_DELAY_TICKS=4"],
"progen": { "target": "numaker-pfm-m453" },
"device_has": [
"USTICKER",
@ -7608,7 +7608,7 @@
"CMSIS_VECTAB_VIRTUAL",
"CMSIS_VECTAB_VIRTUAL_HEADER_FILE=\"cmsis_nvic.h\"",
"MBED_FAULT_HANDLER_DISABLED",
"LPTICKER_DELAY_TICKS=3"
"LPTICKER_DELAY_TICKS=4"
],
"device_has": [
"USTICKER",
@ -7964,7 +7964,7 @@
}
},
"inherits": ["Target"],
"macros_add": ["MBEDTLS_CONFIG_HW_SUPPORT", "LPTICKER_DELAY_TICKS=3"],
"macros_add": ["MBEDTLS_CONFIG_HW_SUPPORT", "LPTICKER_DELAY_TICKS=4"],
"device_has": [
"USTICKER",
"LPTICKER",
@ -8185,7 +8185,7 @@
"macros": [
"MBED_FAULT_HANDLER_DISABLED",
"MBED_TZ_DEFAULT_ACCESS=1",
"LPTICKER_DELAY_TICKS=3"
"LPTICKER_DELAY_TICKS=4"
],
"trustzone": true,
"is_disk_virtual": true,