PreviousNext
setWDTon
Help > Macros > Control > setWDTon

Macro

 

Enable Watchdog

Purpose

 

Enable Watchdog (to increase the reliability or to enable wake-up from sleep on watchdog timeout)

Syntax

 

void setWDTon()

Parameters

 

 –

Return value

 

 –

Output values

 

MCU Watchdog enabled

Preconditions

 

Watchdog is the default disabled and its timeout is set to 4 s after power on.

Remarks

 

Refer to MCU datasheet and IQRF OS User’s guide, chapter Watchdog.

Side effects

 

 –

See also

 

setWDToff, setWDTon_xxxx

Example

 

setWDTon;           // Watchdog enabled

iqrfSleep();        // Sleep, wake-up after default 4 s (unless otherwise stated)

setWDToff();        // Continue, Watchdog disabled