#include <chip.h>
Go to the source code of this file.
Detailed Description
Definition in file rstc.c.
Function Documentation
void RSTC_ConfigureMode |
( |
uint32_t |
mr |
) |
|
Configure the mode of the RSTC peripheral. The configuration is computed by the lib (RSTC_RMR_*).
- Parameters:
-
| mr | Desired mode configuration. |
Definition at line 47 of file rstc.c.
void RSTC_ExtReset |
( |
void |
|
) |
|
Asserts the NRST pin for external resets.
Definition at line 116 of file rstc.c.
uint8_t RSTC_GetNrstLevel |
( |
void |
|
) |
|
Return NRST pin level (1 or 0).
Definition at line 125 of file rstc.c.
uint32_t RSTC_GetStatus |
( |
void |
|
) |
|
Get the status
Definition at line 162 of file rstc.c.
uint8_t RSTC_IsBusy |
( |
void |
|
) |
|
Return 1 if a software reset command is being performed by the reset controller. The reset controller is busy.
Definition at line 149 of file rstc.c.
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.
Definition at line 135 of file rstc.c.
void RSTC_ProcessorReset |
( |
void |
|
) |
|
Resets the processor.
Definition at line 106 of file rstc.c.
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.
- Parameters:
-
| powl | Power length defined. |
Definition at line 93 of file rstc.c.
void RSTC_SetUserResetEnable |
( |
uint8_t |
enable |
) |
|
Enable/Disable the detection of a low level on the pin NRST as User Reset
- Parameters:
-
| enable | 1 to enable & 0 to disable. |
Definition at line 58 of file rstc.c.
void RSTC_SetUserResetInterruptEnable |
( |
uint8_t |
enable |
) |
|
Enable/Disable the interrupt of a User Reset (USRTS bit in RSTC_RST).
- Parameters:
-
| enable | 1 to enable & 0 to disable. |
Definition at line 75 of file rstc.c.