System Interface.
More...
|
| #define | SYS_SET_MFP(Port, Bit, Func) (SYS->Port##_MFP = (SYS->Port##_MFP & ~SYS_MFP_##Port##Bit##_Msk) | SYS_MFP_##Port##Bit##_##Func) |
| | Set pin function. More...
|
| |
| #define | SYS_ENABLE_BOD_RST() (SYS->BODCTL |= SYS_BODCTL_BODRSTEN_Msk) |
| | Enable Brown-out detector reset function. More...
|
| |
System Interface.
◆ SYS_ENABLE_BOD_RST
| #define SYS_ENABLE_BOD_RST |
( |
| ) |
(SYS->BODCTL |= SYS_BODCTL_BODRSTEN_Msk) |
Enable Brown-out detector reset function.
- Returns
- None
This macro enable Brown-out detect reset function. The register write-protection function should be disabled before using this macro.
◆ SYS_SET_MFP
| #define SYS_SET_MFP |
( |
|
Port, |
|
|
|
Bit, |
|
|
|
Func |
|
) |
| (SYS->Port##_MFP = (SYS->Port##_MFP & ~SYS_MFP_##Port##Bit##_Msk) | SYS_MFP_##Port##Bit##_##Func) |
Set pin function.
- Parameters
-
| [in] | Port | GPIO port number. |
| [in] | Bit | The single or multiple pins of specified gpio port. |
| [in] | Func | pin function |
- Returns
- None
◆ SYS_delay_10nop()
| void SYS_delay_10nop |
( |
uint32_t |
u32NopCnt | ) |
|
Set delay time.
- Parameters
-
- Returns
- None
◆ SYS_DisableBOD()
| void SYS_DisableBOD |
( |
void |
| ) |
|
This function disable BOD function.
- Returns
- None
◆ SYS_IsRegLocked()
| uint32_t SYS_IsRegLocked |
( |
void |
| ) |
|
This function check register write-protection bit setting.
- Return values
-
| 0 | Write-protection function is disabled. |
| 1 | Write-protection function is enabled. |
◆ SYS_LockReg()
| __STATIC_INLINE void SYS_LockReg |
( |
void |
| ) |
|
Enable register write-protection function.
- Returns
- None
This function is used to enable register write-protection function. To lock the protected register to forbid write access.
◆ SYS_UnlockReg()
| __STATIC_INLINE void SYS_UnlockReg |
( |
void |
| ) |
|
Disable register write-protection function.
- Returns
- None
This function disable register write-protection function. To unlock the protected register to allow write access.