Skip to content

Commit 8318a40

Browse files
committed
Allow change watchdog config without modify the library
1 parent 7a0253d commit 8318a40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/FreeRTOSVariant.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ extern "C" {
3737
// System Tick - Scheduler timer
3838
// Use the Watchdog timer, and choose the rate at which scheduler interrupts will occur.
3939

40-
#define portUSE_WDTO WDTO_15MS // portUSE_WDTO to use the Watchdog Timer for xTaskIncrementTick
40+
#ifndef portUSE_WDTO
41+
#define portUSE_WDTO WDTO_15MS // portUSE_WDTO to use the Watchdog Timer for xTaskIncrementTick
42+
#endif
4143

4244
/* Watchdog period options: WDTO_15MS
4345
WDTO_30MS

0 commit comments

Comments
 (0)