From 11aa6ba456287d6c80598a7ebbebd2887ce8f5a2 Mon Sep 17 00:00:00 2001 From: danicampora Date: Wed, 25 Feb 2015 11:08:51 +0100 Subject: cc3200: Add WDT functionality as part of the pyb module. Also improve pybsd, and make it save it's pin configuration. This is a necessary step towards supporting the CC3200 low power deep sleep (LPDS) mode. --- cc3200/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cc3200/main.c') diff --git a/cc3200/main.c b/cc3200/main.c index f07479fdd..6f0ce3f1b 100644 --- a/cc3200/main.c +++ b/cc3200/main.c @@ -32,6 +32,7 @@ #include MICROPY_HAL_H #include "mptask.h" #include "simplelink.h" +#include "pybwdt.h" #include "debug.h" /****************************************************************************** @@ -62,6 +63,9 @@ int main (void) { // Initialize the clocks and the interrupt system HAL_SystemInit(); + // Start the watchdog + pybwdt_init0(); + #ifdef DEBUG ASSERT (OSI_OK == osi_TaskCreate(TASK_Micropython, (const signed char *)"MicroPy", -- cgit v1.2.3