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.
pull/10657/head
ccli8 2018-07-23 13:48:27 +08:00 committed by Filip Jagodzinski
parent 5190ec8048
commit b17ea44046
1 changed files with 6 additions and 0 deletions

View File

@ -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