From b17ea4404615d2cf96198229527aecc95834ab6b Mon Sep 17 00:00:00 2001 From: ccli8 Date: Mon, 23 Jul 2018 13:48:27 +0800 Subject: [PATCH] Fix NUMAKER_PFM_NANO130 cannot pass mbed_hal/watchdog_reset test On NUMAKER_PFM_NANO130 target, WDT's clock source is fixed to LIRC, which is much less accurate than other targets. Enlarge delta define to pass this test. --- TESTS/mbed_hal/watchdog_reset/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/TESTS/mbed_hal/watchdog_reset/main.cpp b/TESTS/mbed_hal/watchdog_reset/main.cpp index 5336ca57c3..c4e179e65c 100644 --- a/TESTS/mbed_hal/watchdog_reset/main.cpp +++ b/TESTS/mbed_hal/watchdog_reset/main.cpp @@ -25,7 +25,13 @@ #include "mbed.h" #define TIMEOUT_MS 500UL +#if TARGET_NUMAKER_PFM_NANO130 +/* On NUMAKER_PFM_NANO130 target, WDT's clock source is fixed to LIRC, which is more + * inaccurate than other targets. Enlarge this delta define to pass this test. */ +#define TIMEOUT_DELTA_MS 100UL +#else #define TIMEOUT_DELTA_MS 50UL +#endif #define MSG_VALUE_DUMMY "0" #define CASE_DATA_INVALID 0xffffffffUL