Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
SYS Exported Functions
[SYS Driver]
Functions | |
__STATIC_INLINE void | SYS_UnlockReg (void) |
Disable register write-protection function. | |
__STATIC_INLINE void | SYS_LockReg (void) |
Enable register write-protection function. | |
void | SYS_ClearResetSrc (uint32_t u32Src) |
Clear reset source. | |
uint32_t | SYS_GetBODStatus (void) |
Get Brown-out detector output status. | |
uint32_t | SYS_GetResetSrc (void) |
Get reset status register value. | |
uint32_t | SYS_IsRegLocked (void) |
Check if register is locked nor not. | |
uint32_t | SYS_ReadPDID (void) |
Get product ID. | |
void | SYS_ResetChip (void) |
Reset chip with chip reset. | |
void | SYS_ResetCPU (void) |
Reset chip with CPU reset. | |
void | SYS_ResetModule (uint32_t u32ModuleIndex) |
Reset selected module. | |
void | SYS_EnableBOD (int32_t i32Mode, uint32_t u32BODLevel) |
Enable and configure Brown-out detector function. | |
void | SYS_DisableBOD (void) |
Disable Brown-out detector function. | |
void | SYS_SetPowerLevel (uint32_t u32PowerLevel) |
Set Power Level. |
Function Documentation
void SYS_ClearResetSrc | ( | uint32_t | u32Src ) |
Clear reset source.
- Parameters:
-
[in] u32Src is system reset source. Including : - SYS_RSTSTS_CPULKRF_Msk
- SYS_RSTSTS_CPURF_Msk
- SYS_RSTSTS_SYSRF_Msk
- SYS_RSTSTS_BODRF_Msk
- SYS_RSTSTS_LVRF_Msk
- SYS_RSTSTS_WDTRF_Msk
- SYS_RSTSTS_PINRF_Msk
- SYS_RSTSTS_PORF_Msk
- Returns:
- None
This function clear the selected system reset source.
Definition at line 65 of file m480_sys.c.
void SYS_DisableBOD | ( | void | ) |
Disable Brown-out detector function.
- Parameters:
-
None
- Returns:
- None
This function disable Brown-out detector function. The register write-protection function should be disabled before using this function.
Definition at line 243 of file m480_sys.c.
void SYS_EnableBOD | ( | int32_t | i32Mode, |
uint32_t | u32BODLevel | ||
) |
Enable and configure Brown-out detector function.
- Parameters:
-
[in] i32Mode is reset or interrupt mode. Including : - SYS_BODCTL_BOD_RST_EN
- SYS_BODCTL_BOD_INTERRUPT_EN
[in] u32BODLevel is Brown-out voltage level. Including : - SYS_BODCTL_BODVL_3_0V
- SYS_BODCTL_BODVL_2_8V
- SYS_BODCTL_BODVL_2_6V
- SYS_BODCTL_BODVL_2_4V
- SYS_BODCTL_BODVL_2_2V
- SYS_BODCTL_BODVL_2_0V
- SYS_BODCTL_BODVL_1_8V
- SYS_BODCTL_BODVL_1_6V
- Returns:
- None
This function configure Brown-out detector reset or interrupt mode, enable Brown-out function and set Brown-out voltage level. The register write-protection function should be disabled before using this function.
Definition at line 226 of file m480_sys.c.
uint32_t SYS_GetBODStatus | ( | void | ) |
Get Brown-out detector output status.
- Parameters:
-
None
- Return values:
-
0 System voltage is higher than BODVL setting or BODEN is 0. 1 System voltage is lower than BODVL setting.
This function get Brown-out detector output status.
Definition at line 77 of file m480_sys.c.
uint32_t SYS_GetResetSrc | ( | void | ) |
Get reset status register value.
- Parameters:
-
None
- Returns:
- Reset source
This function get the system reset status register value.
Definition at line 88 of file m480_sys.c.
uint32_t SYS_IsRegLocked | ( | void | ) |
Check if register is locked nor not.
- Parameters:
-
None
- Return values:
-
0 Write-protection function is disabled. 1 Write-protection function is enabled.
This function check register write-protection bit setting.
Definition at line 100 of file m480_sys.c.
__STATIC_INLINE void SYS_LockReg | ( | void | ) |
Enable register write-protection function.
- Parameters:
-
None
- Returns:
- None
This function is used to enable register write-protection function. To lock the protected register to forbid write access.
Definition at line 1488 of file m480_sys.h.
uint32_t SYS_ReadPDID | ( | void | ) |
Get product ID.
- Parameters:
-
None
- Returns:
- Product ID
This function get product ID.
Definition at line 111 of file m480_sys.c.
void SYS_ResetChip | ( | void | ) |
Reset chip with chip reset.
- Parameters:
-
None
- Returns:
- None
This function reset chip with chip reset. The register write-protection function should be disabled before using this function.
Definition at line 123 of file m480_sys.c.
void SYS_ResetCPU | ( | void | ) |
Reset chip with CPU reset.
- Parameters:
-
None
- Returns:
- None
This function reset CPU with CPU reset. The register write-protection function should be disabled before using this function.
Definition at line 135 of file m480_sys.c.
void SYS_ResetModule | ( | uint32_t | u32ModuleIndex ) |
Reset selected module.
- Parameters:
-
[in] u32ModuleIndex is module index. Including : - PDMA_RST
- EBI_RST
- EMAC_RST
- SDH0_RST
- CRC_RST
- HSUSBD_RST
- CRPT_RST
- SPIM_RST
- USBH_RST
- SDH1_RST
- GPIO_RST
- TMR0_RST
- TMR1_RST
- TMR2_RST
- TMR3_RST
- ACMP01_RST
- I2C0_RST
- I2C1_RST
- I2C2_RST
- QSPI0_RST
- SPI0_RST
- SPI1_RST
- SPI2_RST
- UART0_RST
- UART1_RST
- UART2_RST
- UART3_RST
- UART4_RST
- UART5_RST
- CAN0_RST
- CAN1_RST
- USBD_RST
- EADC_RST
- I2S0_RST
- SC0_RST
- SC1_RST
- SC2_RST
- SPI3_RST
- USCI0_RST
- USCI1_RST
- DAC_RST
- EPWM0_RST
- EPWM1_RST
- BPWM0_RST
- BPWM1_RST
- QEI0_RST
- QEI1_RST
- ECAP0_RST
- ECAP1_RST
- OPA_RST
- Returns:
- None
This function reset selected module.
Definition at line 196 of file m480_sys.c.
void SYS_SetPowerLevel | ( | uint32_t | u32PowerLevel ) |
Set Power Level.
- Parameters:
-
[in] u32PowerLevel is power level setting. Including : - SYS_PLCTL_PLSEL_PL0
- SYS_PLCTL_PLSEL_PL1
- Returns:
- None
This function select power level. The register write-protection function should be disabled before using this function.
Definition at line 257 of file m480_sys.c.
__STATIC_INLINE void SYS_UnlockReg | ( | void | ) |
Disable register write-protection function.
- Parameters:
-
None
- Returns:
- None
This function disable register write-protection function. To unlock the protected register to allow write access.
Definition at line 1472 of file m480_sys.h.
Generated on Tue Jul 12 2022 15:37:35 by
