Contiki-NG
Loading...
Searching...
No Matches

Files

file  watchdog.c
 Contiki compatible watchdog driver implementation.
 

Functions

static void wdt_event_handler (void)
 WDT events handler.
 
void watchdog_init (void)
 Initialisation function for the WDT.
 
void watchdog_start (void)
 Starts the WDT in watchdog mode if enabled by user configuration, maximum interval.
 
void watchdog_periodic (void)
 Writes the WDT clear sequence.
 
void watchdog_reboot (void)
 Keeps control until the WDT throws a reset signal.
 

Detailed Description

Function Documentation

◆ watchdog_init()

void watchdog_init ( void )

Initialisation function for the WDT.

Currently simply explicitly sets the WDT interval to max interval

Initialisation function for the WDT.

Simply locks the config so that future calls will lock properly. The WDT is not started yet. To start it, watchdog_start() must be called.

Definition at line 63 of file watchdog.c.

References wdt_event_handler().

◆ watchdog_periodic()

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 83 of file watchdog.c.

◆ watchdog_reboot()

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 91 of file watchdog.c.

◆ watchdog_start()

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 75 of file watchdog.c.