MG32L003 Standard Peripherals Firmware Library
|
Functions | |
void | FLASH_OP_Unlock (uint32_t PageAddr) |
Lock the FLASH Page Erase/Write access. More... | |
void | FLASH_OP_Lock (uint32_t PageAddr) |
Unlock the FLASH Page Erase/Write access. More... | |
void | FLASH_Unlock (void) |
Unlock the FLASH controller register write-protect. More... | |
void | FLASH_Lock (void) |
Lock the FLASH controller register write-protect. More... | |
void | FLASH_ITConfig (uint32_t FLASH_IT, FunctionalState NewState) |
Enables or disables the specified FLASH interrupts. More... | |
void | FLASH_ClearITPendingBit (uint32_t FLASH_IT) |
Clear the specified FLASH interrupt flag. More... | |
FlagStatus | FLASH_GetITStatus (uint32_t FLASH_IT) |
Checks whether the specified FLASH interrupt has occurred or not. More... | |
FlagStatus | FLASH_GetFlagStatus (uint32_t Flag) |
Checks whether the specified FLASH flag is set or not. More... | |
FLASH_Status | FLASH_WaitForLastOperation (uint32_t Timeout) |
Wait for a FLASH operation to complete. More... | |
FLASH_Status | FLASH_ProgramByte (uint32_t Addr, uint8_t Data) |
Program a byte (8-bit) at a specified address. More... | |
FLASH_Status | FLASH_ProgramHalfWord (uint32_t Addr, uint16_t Data) |
Program a half-word (16-bit) at a specified address. More... | |
FLASH_Status | FLASH_ProgramWord (uint32_t Addr, uint32_t Data) |
Program a word (32-bit) at a specified address. More... | |
FLASH_Status | FLASH_EraseChip (void) |
Full erase of FLASH memory Bank. More... | |
FLASH_Status | FLASH_ErasePage (uint32_t PageAddr) |
Erase the specified FLASH memory page. More... | |
void FLASH_ClearITPendingBit | ( | uint32_t | FLASH_IT | ) |
Clear the specified FLASH interrupt flag.
FLASH_IT | specifies the FLASH interrupt flags to clear. This parameter can be any combination of the following values:
|
none |
FLASH_Status FLASH_EraseChip | ( | void | ) |
Full erase of FLASH memory Bank.
None |
None |
FLASH_Status FLASH_ErasePage | ( | uint32_t | PageAddr | ) |
Erase the specified FLASH memory page.
PageAddr | FLASH page to erase The value of this parameter depend on device used within the same series |
None |
FlagStatus FLASH_GetFlagStatus | ( | uint32_t | Flag | ) |
Checks whether the specified FLASH flag is set or not.
Flag | specifies the FLASH flag to check. This parameter can be:
|
The | new state of the FLASH flag (SET or RESET). |
FlagStatus FLASH_GetITStatus | ( | uint32_t | FLASH_IT | ) |
Checks whether the specified FLASH interrupt has occurred or not.
FLASH_IT | specifies the FLASH interrupt source to check. This parameter can be:
|
The | new state of the FLASH flag (SET or RESET). |
void FLASH_ITConfig | ( | uint32_t | FLASH_IT, |
FunctionalState | NewState | ||
) |
Enables or disables the specified FLASH interrupts.
FLASH_IT | FLASH interrupts. This parameter can be any combination of the following values:
|
none |
void FLASH_Lock | ( | void | ) |
Lock the FLASH controller register write-protect.
None |
None |
void FLASH_OP_Lock | ( | uint32_t | PageAddr | ) |
Unlock the FLASH Page Erase/Write access.
PageAddr | Set the page address to lock erase/write protect. This parameter can be set 0xFFFFFFFF which means lock all pages. |
None |
void FLASH_OP_Unlock | ( | uint32_t | PageAddr | ) |
Lock the FLASH Page Erase/Write access.
PageAddr | Set the page address to lock erase/write protect. This parameter can be set 0xFFFFFFFF which means lock all pages. |
None |
FLASH_Status FLASH_ProgramByte | ( | uint32_t | Addr, |
uint8_t | Data | ||
) |
Program a byte (8-bit) at a specified address.
Addr | specify the address to be programmed. |
Data | specify the data to be programmed. |
None |
FLASH_Status FLASH_ProgramHalfWord | ( | uint32_t | Addr, |
uint16_t | Data | ||
) |
Program a half-word (16-bit) at a specified address.
Addr | specify the address to be programmed. |
Data | specify the data to be programmed. |
None |
FLASH_Status FLASH_ProgramWord | ( | uint32_t | Addr, |
uint32_t | Data | ||
) |
Program a word (32-bit) at a specified address.
Addr | specify the address to be programmed. |
Data | specify the data to be programmed. |
None |
void FLASH_Unlock | ( | void | ) |
Unlock the FLASH controller register write-protect.
None |
None |
FLASH_Status FLASH_WaitForLastOperation | ( | uint32_t | Timeout | ) |
Wait for a FLASH operation to complete.
Timeout | maximum flash operation timeout |
FLASH_Status |