|
Contiki 3.x
|
Files | |
| file | watchdog.c |
| Contiki compatible watchdog driver implementation. | |
Functions | |
| static void | wdt_event_handler (void) |
| WDT events handler. | |
| void | watchdog_init (void) |
| Copyright (c) 2014, Analog Devices, Inc. More... | |
| void | watchdog_start (void) |
| Starts the WDT in watchdog mode if enabled by user configuration, maximum interval. More... | |
| void | watchdog_periodic (void) |
| Writes the WDT clear sequence. More... | |
| void | watchdog_reboot (void) |
| Keeps control until the WDT throws a reset signal. More... | |
| void watchdog_init | ( | void | ) |
Copyright (c) 2014, Analog Devices, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met:
NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copyright (c) 2014, Analog Devices, Inc.
Currently simply explicitly sets the WDT interval to max interval
Copyright (c) 2014, Analog Devices, Inc.
Simply sets the reload counter to a default value. The WDT is not started yet. To start it, watchdog_start() must be called.
Definition at line 59 of file watchdog.c.
References NULL, and wdt_event_handler().
| void watchdog_periodic | ( | void | ) |
Writes the WDT clear sequence.
Due to how the SMWDTHROSC_WDCTL works, it is OK to simply write these bits rather than use RMW operations.
Writes the WDT clear sequence.
Definition at line 78 of file watchdog.c.
| void watchdog_reboot | ( | void | ) |
Keeps control until the WDT throws a reset signal.
Starts the WDT if not already started.
Keeps control until the WDT throws a reset signal.
Definition at line 86 of file watchdog.c.
References NVIC_SystemReset().
| void watchdog_start | ( | void | ) |
Starts the WDT in watchdog mode if enabled by user configuration, maximum interval.
Starts the WDT in watchdog mode if enabled by user configuration, maximum interval.
Definition at line 70 of file watchdog.c.
1.8.6