PreviousNext
reset
Help > Macros > Control > reset

Macro

 

Reset MCU

Purpose

 

Restart MCU, IQRF OS, and application SW from the very beginning

Syntax

 

     void reset()

     Alternative softReset() is also possible

Parameters

 

 

Return value

 

 

Output values

 

MCU SW reset

Preconditions

 

 –

Remarks

 

     This macro is equivalent to MCU machine instruction Reset and CC5X command softReset().

     This SW reset slightly differs in initialization from other reset types (power-on, watchdog, and BOR). See MCU datasheet.

Side effects

 

 –

See also

 

Example

 

if (...)     // When specified condition met

  reset();   //   Invoke MCU software reset

   ...       // Otherwise continue