SAMV71 Xplained Ultra Software Package 1.4

rstc.c File Reference

#include <chip.h>

Go to the source code of this file.

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)

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 114 of file rstc.c.

uint8_t RSTC_GetNrstLevel ( void   ) 

Return NRST pin level ( 1 or 0 ).

Definition at line 123 of file rstc.c.

uint32_t RSTC_GetStatus ( void   ) 

Get the status

Definition at line 158 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 146 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 133 of file rstc.c.

void RSTC_ProcessorReset ( void   ) 

Resets the processor.

Definition at line 104 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 91 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 74 of file rstc.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines