diff options
| author | danicampora | 2015-02-25 11:08:51 +0100 |
|---|---|---|
| committer | danicampora | 2015-02-25 11:37:29 +0100 |
| commit | 11aa6ba456287d6c80598a7ebbebd2887ce8f5a2 (patch) | |
| tree | 82591ae3cdf59ebeca2d4b8df8f129a201198f79 /cc3200/main.c | |
| parent | fe2eb5f58a92c35e7c35da8853abb195fd30969a (diff) | |
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.
Diffstat (limited to 'cc3200/main.c')
| -rw-r--r-- | cc3200/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
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", |
