Robobo
Reset Controller (RSTC)

Macros

#define RSTC_KEY   0xA5000000
 

Functions

void rstc_set_external_reset (Rstc *p_rstc, const uint32_t ul_length)
 Set external reset length. More...
 
void rstc_enable_user_reset (Rstc *p_rstc)
 Enable user reset. More...
 
void rstc_disable_user_reset (Rstc *p_rstc)
 Disable user reset. More...
 
void rstc_enable_user_reset_interrupt (Rstc *p_rstc)
 Enable user reset interrupt. More...
 
void rstc_disable_user_reset_interrupt (Rstc *p_rstc)
 Disable user reset interrupt. More...
 
void rstc_start_software_reset (Rstc *p_rstc)
 Perform software reset. More...
 
void rstc_reset_extern (Rstc *p_rstc)
 Asserts the NRST pin for external resets. More...
 
uint32_t rstc_get_status (Rstc *p_rstc)
 Get RSTC status. More...
 
uint32_t rstc_get_reset_cause (Rstc *p_rstc)
 Get reset cause. More...
 

Detailed Description

Driver for the RSTC (Reset Controller). This driver provides access to the main features of the Reset controller.

Function Documentation

void rstc_disable_user_reset ( Rstc p_rstc)

Disable user reset.

Parameters
p_rstcPointer to an RSTC instance.
void rstc_disable_user_reset_interrupt ( Rstc p_rstc)

Disable user reset interrupt.

Parameters
p_rstcPointer to an RSTC instance.
void rstc_enable_user_reset ( Rstc p_rstc)

Enable user reset.

Parameters
p_rstcPointer to an RSTC instance.
void rstc_enable_user_reset_interrupt ( Rstc p_rstc)

Enable user reset interrupt.

Parameters
p_rstcPointer to an RSTC instance.
uint32_t rstc_get_reset_cause ( Rstc p_rstc)

Get reset cause.

Parameters
p_rstcPointer to an RSTC instance.
Returns
The last reset cause.
uint32_t rstc_get_status ( Rstc p_rstc)

Get RSTC status.

Parameters
p_rstcPointer to an RSTC instance.
Returns
RSTC status.
void rstc_reset_extern ( Rstc p_rstc)

Asserts the NRST pin for external resets.

Parameters
p_rstcPointer to an RSTC instance.
void rstc_set_external_reset ( Rstc p_rstc,
const uint32_t  ul_length 
)

Set external reset length.

Parameters
p_rstcPointer to an RSTC instance.
ul_lengthThe length of external reset.
void rstc_start_software_reset ( Rstc p_rstc)

Perform software reset.

Parameters
p_rstcPointer to an RSTC instance.