Contiki-NG
Files | Functions

Driver for the CC13xx/CC26xx Watchdog Timer. More...

Files

file  contiki-watchdog.c
 Implementation of the CC13xx/CC26xx watchdog driver.
 

Functions

void watchdog_init (void)
 Initialises the CC13xx/CC26xx WDT. More...
 
void watchdog_start (void)
 Starts the CC13xx/CC26xx WDT. More...
 
void watchdog_periodic (void)
 Refreshes the CC13xx/CC26xx WDT. More...
 
void watchdog_stop (void)
 Stops the WDT such that it won't timeout and cause MCU reset.
 
void watchdog_reboot (void)
 Manually trigger a WDT reboot. More...
 

Detailed Description

Driver for the CC13xx/CC26xx Watchdog Timer.

This file is not called watchdog.c because the filename is in use by TI CC26xxware/CC13xxware

Function Documentation

◆ watchdog_init()

void watchdog_init ( void  )

Initialises the CC13xx/CC26xx WDT.

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

◆ watchdog_periodic()

void watchdog_periodic ( void  )

Refreshes the CC13xx/CC26xx WDT.

Writes the WDT clear sequence.

Definition at line 136 of file contiki-watchdog.c.

◆ watchdog_reboot()

void watchdog_reboot ( void  )

Manually trigger a WDT reboot.

Keeps control until the WDT throws a reset signal.

Definition at line 159 of file contiki-watchdog.c.

References watchdog_start().

◆ watchdog_start()

void watchdog_start ( void  )

Starts the CC13xx/CC26xx WDT.

Starts the WDT in watchdog mode if enabled by user configuration, maximum interval.

Definition at line 121 of file contiki-watchdog.c.

Referenced by watchdog_reboot().