Contiki-NG
Watchdog driver

Files

file  watchdog-arch.c
 Watchdog implementation for the gecko.
 

Functions

void watchdog_init (void)
 Initialisation function for the WDT. 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...
 

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

◆ 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 93 of file watchdog-arch.c.

Referenced by watchdog_start().

◆ 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 109 of file watchdog-arch.c.

References watchdog_start().

◆ 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 87 of file watchdog-arch.c.

Referenced by watchdog_reboot().