diff options
Diffstat (limited to 'core/cortex-m')
-rw-r--r-- | core/cortex-m/build.mk | 2 | ||||
-rw-r--r-- | core/cortex-m/watchdog.c | 9 |
2 files changed, 1 insertions, 10 deletions
diff --git a/core/cortex-m/build.mk b/core/cortex-m/build.mk index 35ad2d0517..ec1ba424a8 100644 --- a/core/cortex-m/build.mk +++ b/core/cortex-m/build.mk @@ -14,4 +14,4 @@ CFLAGS_CPU=-mcpu=cortex-m4 -mthumb -Os -mno-sched-prolog CFLAGS_CPU+=$(CFLAGS_FPU-y) core-y=cpu.o init.o panic.o switch.o task.o timer.o -core-$(CONFIG_TASK_WATCHDOG)+=watchdog.o +core-$(CONFIG_WATCHDOG)+=watchdog.o diff --git a/core/cortex-m/watchdog.c b/core/cortex-m/watchdog.c index fe8ba776bf..ff876912d1 100644 --- a/core/cortex-m/watchdog.c +++ b/core/cortex-m/watchdog.c @@ -39,12 +39,3 @@ void watchdog_trace(uint32_t excep_lr, uint32_t excep_sp) timer_print_info(); task_print_list(); } - -/* Low priority task to reload the watchdog */ -void watchdog_task(void) -{ - while (1) { - msleep(WATCHDOG_RELOAD_MS); - watchdog_reload(); - } -} |