RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Functions
rstc.c File Reference
#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)
 

Function Documentation

◆ RSTC_ConfigureMode()

void RSTC_ConfigureMode ( uint32_t  mr)

Configure the mode of the RSTC peripheral. The configuration is computed by the lib (RSTC_RMR_*).

Parameters
mrDesired mode configuration.

◆ RSTC_ExtReset()

void RSTC_ExtReset ( void  )

Asserts the NRST pin for external resets.

◆ RSTC_GetNrstLevel()

uint8_t RSTC_GetNrstLevel ( void  )

Return NRST pin level (1 or 0).

◆ RSTC_GetStatus()

uint32_t RSTC_GetStatus ( void  )

Get the status

◆ RSTC_IsBusy()

uint8_t RSTC_IsBusy ( void  )

Return 1 if a software reset command is being performed by the reset controller. The reset controller is busy.

◆ RSTC_IsUserResetDetected()

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.

◆ RSTC_ProcessorReset()

void RSTC_ProcessorReset ( void  )

Resets the processor.

◆ RSTC_SetExtResetLength()

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
powlPower length defined.

◆ RSTC_SetUserResetEnable()

void RSTC_SetUserResetEnable ( uint8_t  enable)

Enable/Disable the detection of a low level on the pin NRST as User Reset

Parameters
enable1 to enable & 0 to disable.

◆ RSTC_SetUserResetInterruptEnable()

void RSTC_SetUserResetInterruptEnable ( uint8_t  enable)

Enable/Disable the interrupt of a User Reset (USRTS bit in RSTC_RST).

Parameters
enable1 to enable & 0 to disable.