RTEMS
5.0.0
|
#include <chip.h>
Functions | |
void | RSTC_ConfigureMode (uint32_t mr) |
void | RSTC_SetUserResetEnable (uint8_t enable) |
void | RSTC_SetUserResetInterruptEnable (uint8_t enable) |
void | RSTC_SetExtResetLength (uint8_t powl) |
void | RSTC_ProcessorReset (void) |
void | RSTC_ExtReset (void) |
uint8_t | RSTC_GetNrstLevel (void) |
uint8_t | RSTC_IsUserResetDetected (void) |
uint8_t | RSTC_IsBusy (void) |
uint32_t | RSTC_GetStatus (void) |
void RSTC_ConfigureMode | ( | uint32_t | mr | ) |
Configure the mode of the RSTC peripheral. The configuration is computed by the lib (RSTC_RMR_*).
mr | Desired mode configuration. |
void RSTC_ExtReset | ( | void | ) |
Asserts the NRST pin for external resets.
uint8_t RSTC_GetNrstLevel | ( | void | ) |
Return NRST pin level (1 or 0).
uint32_t RSTC_GetStatus | ( | void | ) |
Get the status
uint8_t RSTC_IsBusy | ( | void | ) |
Return 1 if a software reset command is being performed by the reset controller. The reset controller is busy.
uint8_t RSTC_IsUserResetDetected | ( | void | ) |
Returns 1 if at least one high-to-low transition of NRST (User Reset) has been detected since the last read of RSTC_RSR.
void RSTC_ProcessorReset | ( | void | ) |
Resets the processor.
void RSTC_SetExtResetLength | ( | uint8_t | powl | ) |
Setup the external reset length. The length is asserted during a time of pow(2, powl+1) Slow Clock(32KHz). The duration is between 60us and 2s.
powl | Power length defined. |
void RSTC_SetUserResetEnable | ( | uint8_t | enable | ) |
Enable/Disable the detection of a low level on the pin NRST as User Reset
enable | 1 to enable & 0 to disable. |
void RSTC_SetUserResetInterruptEnable | ( | uint8_t | enable | ) |
Enable/Disable the interrupt of a User Reset (USRTS bit in RSTC_RST).
enable | 1 to enable & 0 to disable. |