Commit e741c0c5 authored by Federico Vaga's avatar Federico Vaga

common: function to reset MCU

Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 49868f04
......@@ -28,6 +28,14 @@ void Delay(uint32_t dlyTicks)
while ((msTicks - curTicks) < dlyTicks);
}
/**************************************************************************//**
* @brief Reset the MCU
*****************************************************************************/
void ResetEFM32(void)
{
SCB->AIRCR = 0x05FA0004;
}
/**************************************************************************//**
* @brief Main function
*****************************************************************************/
......
......@@ -3,5 +3,5 @@
extern void supercar_blink(int delay, int rep);
extern void Delay(uint32_t dlyTicks);
extern void ResetEFM32(void);
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment