![]() |
M480 BSP
V3.05.001
The Board Support Package for M480 Series
|
Macros | |
| #define | SYS_CLEAR_BOD_INT_FLAG() |
| Clear Brown-out detector interrupt flag. More... | |
| #define | SYS_CLEAR_BOD_LPM() |
| Set Brown-out detector function to normal mode. More... | |
| #define | SYS_DISABLE_BOD() |
| Disable Brown-out detector function. More... | |
| #define | SYS_ENABLE_BOD() |
| Enable Brown-out detector function. More... | |
| #define | SYS_GET_BOD_INT_FLAG() |
| Get Brown-out detector interrupt flag. More... | |
| #define | SYS_GET_BOD_OUTPUT() |
| Get Brown-out detector status. More... | |
| #define | SYS_DISABLE_BOD_RST() |
| Enable Brown-out detector interrupt function. More... | |
| #define | SYS_ENABLE_BOD_RST() |
| Enable Brown-out detector reset function. More... | |
| #define | SYS_SET_BOD_LPM() |
| Set Brown-out detector function low power mode. More... | |
| #define | SYS_SET_BOD_LEVEL(u32Level) |
| Set Brown-out detector voltage level. More... | |
| #define | SYS_IS_BOD_RST() |
| Get reset source is from Brown-out detector reset. More... | |
| #define | SYS_IS_CPU_RST() |
| Get reset source is from CPU reset. More... | |
| #define | SYS_IS_LVR_RST() |
| Get reset source is from LVR Reset. More... | |
| #define | SYS_IS_POR_RST() |
| Get reset source is from Power-on Reset. More... | |
| #define | SYS_IS_RSTPIN_RST() |
| Get reset source is from reset pin reset. More... | |
| #define | SYS_IS_SYSTEM_RST() |
| Get reset source is from system reset. More... | |
| #define | SYS_IS_WDT_RST() |
| Get reset source is from window watch dog reset. More... | |
| #define | SYS_DISABLE_LVR() |
| Disable Low-Voltage-Reset function. More... | |
| #define | SYS_ENABLE_LVR() |
| Enable Low-Voltage-Reset function. More... | |
| #define | SYS_DISABLE_POR() |
| Disable Power-on Reset function. More... | |
| #define | SYS_ENABLE_POR() |
| Enable Power-on Reset function. More... | |
| #define | SYS_CLEAR_RST_SOURCE(u32RstSrc) |
| Clear reset source flag. More... | |
Functions | |
| __STATIC_INLINE void | SYS_UnlockReg (void) |
| Disable register write-protection function. More... | |
| __STATIC_INLINE void | SYS_LockReg (void) |
| Enable register write-protection function. More... | |
| void | SYS_ClearResetSrc (uint32_t u32Src) |
| Clear reset source. More... | |
| uint32_t | SYS_GetBODStatus (void) |
| Get Brown-out detector output status. More... | |
| uint32_t | SYS_GetResetSrc (void) |
| Get reset status register value. More... | |
| uint32_t | SYS_IsRegLocked (void) |
| Check if register is locked nor not. More... | |
| uint32_t | SYS_ReadPDID (void) |
| Get product ID. More... | |
| void | SYS_ResetChip (void) |
| Reset chip with chip reset. More... | |
| void | SYS_ResetCPU (void) |
| Reset chip with CPU reset. More... | |
| void | SYS_ResetModule (uint32_t u32ModuleIndex) |
| Reset selected module. More... | |
| void | SYS_EnableBOD (int32_t i32Mode, uint32_t u32BODLevel) |
| Enable and configure Brown-out detector function. More... | |
| void | SYS_DisableBOD (void) |
| Disable Brown-out detector function. More... | |
| void | SYS_SetPowerLevel (uint32_t u32PowerLevel) |
| Set Power Level. More... | |
| void | SYS_SetVRef (uint32_t u32VRefCTL) |
| Set Reference Voltage. More... | |
| #define SYS_CLEAR_BOD_INT_FLAG | ( | ) |
| #define SYS_CLEAR_BOD_LPM | ( | ) |
| #define SYS_CLEAR_RST_SOURCE | ( | u32RstSrc | ) |
Clear reset source flag.
| [in] | u32RstSrc | is reset source. Including : |
This macro clear reset source flag.
| #define SYS_DISABLE_BOD | ( | ) |
| #define SYS_DISABLE_BOD_RST | ( | ) |
| #define SYS_DISABLE_LVR | ( | ) |
| #define SYS_DISABLE_POR | ( | ) |
| #define SYS_ENABLE_BOD | ( | ) |
| #define SYS_ENABLE_BOD_RST | ( | ) |
| #define SYS_ENABLE_LVR | ( | ) |
| #define SYS_ENABLE_POR | ( | ) |
| #define SYS_GET_BOD_INT_FLAG | ( | ) |
| #define SYS_GET_BOD_OUTPUT | ( | ) |
Get Brown-out detector status.
| None |
| 0 | System voltage is higher than BOD threshold voltage setting or BOD function is disabled. |
| >=1 | System voltage is lower than BOD threshold voltage setting. |
This macro get Brown-out detector output status. If the BOD function is disabled, this function always return 0.
| #define SYS_IS_BOD_RST | ( | ) |
Get reset source is from Brown-out detector reset.
| None |
| 0 | Previous reset source is not from Brown-out detector reset |
| >=1 | Previous reset source is from Brown-out detector reset |
This macro get previous reset source is from Brown-out detect reset or not.
| #define SYS_IS_CPU_RST | ( | ) |
| #define SYS_IS_LVR_RST | ( | ) |
| #define SYS_IS_POR_RST | ( | ) |
| #define SYS_IS_RSTPIN_RST | ( | ) |
| #define SYS_IS_SYSTEM_RST | ( | ) |
| #define SYS_IS_WDT_RST | ( | ) |
Get reset source is from window watch dog reset.
| None |
| 0 | Previous reset source is not from window watch dog reset |
| >=1 | Previous reset source is from window watch dog reset |
This macro get previous reset source is from window watch dog reset.
| #define SYS_SET_BOD_LEVEL | ( | u32Level | ) |
Set Brown-out detector voltage level.
| [in] | u32Level | is Brown-out voltage level. Including : |
This macro set Brown-out detector voltage level. The write-protection function should be disabled before using this macro.
| #define SYS_SET_BOD_LPM | ( | ) |
| void SYS_ClearResetSrc | ( | uint32_t | u32Src | ) |
Clear reset source.
| [in] | u32Src | is system reset source. Including : |
This function clear the selected system reset source.
| void SYS_DisableBOD | ( | void | ) |
| void SYS_EnableBOD | ( | int32_t | i32Mode, |
| uint32_t | u32BODLevel | ||
| ) |
Enable and configure Brown-out detector function.
| [in] | i32Mode | is reset or interrupt mode. Including : |
| [in] | u32BODLevel | is Brown-out voltage level. Including : |
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.
| uint32_t SYS_GetBODStatus | ( | void | ) |
| uint32_t SYS_GetResetSrc | ( | void | ) |
| uint32_t SYS_IsRegLocked | ( | void | ) |
| __STATIC_INLINE void SYS_LockReg | ( | void | ) |
| uint32_t SYS_ReadPDID | ( | void | ) |
| void SYS_ResetChip | ( | void | ) |
| void SYS_ResetCPU | ( | void | ) |
| void SYS_ResetModule | ( | uint32_t | u32ModuleIndex | ) |
Reset selected module.
This function reset selected module.
| void SYS_SetPowerLevel | ( | uint32_t | u32PowerLevel | ) |
Set Power Level.
| [in] | u32PowerLevel | is power level setting. Including : |
This function select power level. The register write-protection function should be disabled before using this function.
| void SYS_SetVRef | ( | uint32_t | u32VRefCTL | ) |
Set Reference Voltage.
| [in] | u32VRefCTL | is reference voltage setting. Including : |
This function select reference voltage. The register write-protection function should be disabled before using this function.
1.8.15