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

Files

file  arch/cpu/gecko/dev/watchdog-arch.c
 Watchdog implementation for the gecko.

Functions

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

< Watchdog Control

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.

< Watchdog Control

< Clear timer mask[3]

< Clear timer mask[1]

< Watchdog Control

< Clear timer mask[2]

< Clear timer mask[0]

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.

< Watchdog Control

< Interval Select mask

< Enable mask

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.

< Watchdog Control

< Enable mask

Definition at line 87 of file watchdog-arch.c.

Referenced by watchdog_reboot().