Contiki-Inga 3.x
Files | Functions
cc2538 watchdog timer driver

Driver for the cc2538 Watchdog Timer. More...

Files

file  watchdog.c
 Implementation of the cc2538 watchdog driver.
 

Functions

void watchdog_init (void)
 Initialisation function for the WDT. More...
 
void watchdog_start (void)
 Starts the WDT in watchdog mode, maximum interval.
 
void watchdog_periodic (void)
 Writes the WDT clear sequence. More...
 
void watchdog_stop (void)
 In watchdog mode, the WDT can not be stopped. More...
 
void watchdog_reboot (void)
 Keeps control until the WDT throws a reset signal.
 

Detailed Description

Driver for the cc2538 Watchdog Timer.

Function Documentation

void watchdog_init ( void  )

Initialisation function for the WDT.

Currently simply explicitly sets the WDT interval to max interval

Definition at line 52 of file watchdog.c.

References SMWDTHROSC_WDCTL.

void watchdog_periodic ( void  )

Writes the WDT clear sequence.

This function assumes that we are in watchdog mode and that interval bits (bits [1:0]) are 00

Definition at line 69 of file watchdog.c.

References SMWDTHROSC_WDCTL, SMWDTHROSC_WDCTL_CLR_0, SMWDTHROSC_WDCTL_CLR_1, SMWDTHROSC_WDCTL_CLR_2, and SMWDTHROSC_WDCTL_CLR_3.

void watchdog_stop ( void  )

In watchdog mode, the WDT can not be stopped.

This function is defined here to satisfy API requirements.

Definition at line 80 of file watchdog.c.