|
MG32F157 Standard Peripherals Firmware Library
|
Functions | |
| void | FLASH_SetLatency (uint32_t FLASH_Latency) |
| Sets the code latency value. More... | |
| void | FLASH_HalfCycleAccessCmd (uint32_t FLASH_HalfCycleAccess) |
| Enables or disables the Half cycle flash access. More... | |
| void | FLASH_PrefetchBufferCmd (uint32_t FLASH_PrefetchBuffer) |
| Enables or disables the Prefetch Buffer. More... | |
| void | FLASH_Unlock (void) |
| Unlocks the FLASH Program Erase Controller. More... | |
| void | FLASH_UnlockBank1 (void) |
| Unlocks the FLASH Bank1 Program Erase Controller. More... | |
| void | FLASH_Lock (void) |
| Locks the FLASH Program Erase Controller. More... | |
| void | FLASH_LockBank1 (void) |
| Locks the FLASH Bank1 Program Erase Controller. More... | |
| FLASH_Status | FLASH_ErasePage (uint32_t Page_Address) |
| Erases a specified FLASH page. More... | |
| FLASH_Status | FLASH_EraseAllPages (void) |
| Erases all FLASH pages. More... | |
| FLASH_Status | FLASH_EraseAllBank1Pages (void) |
| Erases all Bank1 FLASH pages. More... | |
| FLASH_Status | FLASH_EraseOptionBytes (void) |
| Erases the FLASH option bytes. More... | |
| FLASH_Status | FLASH_ProgramWord (uint32_t Address, uint32_t Data) |
| Programs a word at a specified address. More... | |
| FLASH_Status | FLASH_ProgramHalfWord (uint32_t Address, uint16_t Data) |
| Programs a half word at a specified address. More... | |
| FLASH_Status | FLASH_ProgramOptionByteData (uint32_t Address, uint8_t Data) |
| Programs a half word at a specified Option Byte Data address. More... | |
| FLASH_Status | FLASH_EnableWriteProtection (uint32_t FLASH_Pages) |
| Write protects the desired pages. More... | |
| FLASH_Status | FLASH_ReadOutProtection (FunctionalState NewState) |
| Enables or disables the read out protection. More... | |
| FLASH_Status | FLASH_UserOptionByteConfig (uint16_t OB_IWDG, uint16_t OB_STOP, uint16_t OB_STDBY) |
| Programs the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY. More... | |
| uint32_t | FLASH_GetUserOptionByte (void) |
| Returns the FLASH User Option Bytes values. More... | |
| uint32_t | FLASH_GetWriteProtectionOptionByte (void) |
| Returns the FLASH Write Protection Option Bytes Register value. More... | |
| FlagStatus | FLASH_GetReadOutProtectionStatus (void) |
| Checks whether the FLASH Read Out Protection Status is set or not. More... | |
| FlagStatus | FLASH_GetPrefetchBufferStatus (void) |
| Checks whether the FLASH Prefetch Buffer status is set or not. More... | |
| void | FLASH_ITConfig (uint32_t FLASH_IT, FunctionalState NewState) |
| Enables or disables the specified FLASH interrupts. More... | |
| FlagStatus | FLASH_GetFlagStatus (uint32_t FLASH_FLAG) |
| Checks whether the specified FLASH flag is set or not. More... | |
| void | FLASH_ClearFlag (uint32_t FLASH_FLAG) |
| Clears the FLASH's pending flags. More... | |
| FLASH_Status | FLASH_GetStatus (void) |
| Returns the FLASH Status. More... | |
| FLASH_Status | FLASH_GetBank1Status (void) |
| Returns the FLASH Bank1 Status. More... | |
| FLASH_Status | FLASH_WaitForLastOperation (uint32_t Timeout) |
| Waits for a Flash operation to complete or a TIMEOUT to occur. More... | |
| FLASH_Status | FLASH_WaitForLastBank1Operation (uint32_t Timeout) |
| Waits for a Flash operation on Bank1 to complete or a TIMEOUT to occur. More... | |
| void FLASH_ClearFlag | ( | uint32_t | FLASH_FLAG | ) |
Clears the FLASH's pending flags.
| FLASH_FLAG | specifies the FLASH flags to clear. This parameter can be any combination of the following values: |
| FLASH_Status FLASH_EnableWriteProtection | ( | uint32_t | FLASH_Pages | ) |
Write protects the desired pages.
| FLASH_Pages | specifies the address of the pages to be write protected. This parameter can be:
|
| FLASH_Status FLASH_EraseAllBank1Pages | ( | void | ) |
Erases all Bank1 FLASH pages.
| None |
| FLASH_Status FLASH_EraseAllPages | ( | void | ) |
Erases all FLASH pages.
| None |
| FLASH_Status FLASH_EraseOptionBytes | ( | void | ) |
Erases the FLASH option bytes.
| None |
| FLASH_Status FLASH_ErasePage | ( | uint32_t | Page_Address | ) |
Erases a specified FLASH page.
| Page_Address | The page address to be erased. |
| FLASH_Status FLASH_GetBank1Status | ( | void | ) |
Returns the FLASH Bank1 Status.
| None |
| FlagStatus FLASH_GetFlagStatus | ( | uint32_t | FLASH_FLAG | ) |
Checks whether the specified FLASH flag is set or not.
| FLASH_FLAG | specifies the FLASH flag to check. This parameter can be one of the following values:
|
| FlagStatus FLASH_GetPrefetchBufferStatus | ( | void | ) |
Checks whether the FLASH Prefetch Buffer status is set or not.
| None |
| FlagStatus FLASH_GetReadOutProtectionStatus | ( | void | ) |
Checks whether the FLASH Read Out Protection Status is set or not.
| None |
| FLASH_Status FLASH_GetStatus | ( | void | ) |
Returns the FLASH Status.
| None |
| uint32_t FLASH_GetUserOptionByte | ( | void | ) |
Returns the FLASH User Option Bytes values.
| None |
| uint32_t FLASH_GetWriteProtectionOptionByte | ( | void | ) |
Returns the FLASH Write Protection Option Bytes Register value.
| None |
| void FLASH_HalfCycleAccessCmd | ( | uint32_t | FLASH_HalfCycleAccess | ) |
Enables or disables the Half cycle flash access.
| FLASH_HalfCycleAccess | specifies the FLASH Half cycle Access mode. This parameter can be one of the following values:
|
| void FLASH_ITConfig | ( | uint32_t | FLASH_IT, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the specified FLASH interrupts.
| FLASH_IT | specifies the FLASH interrupt sources to be enabled or disabled. This parameter can be any combination of the following values:
|
| NewState | new state of the specified Flash interrupts. This parameter can be: ENABLE or DISABLE. |
| void FLASH_Lock | ( | void | ) |
Locks the FLASH Program Erase Controller.
| None |
| void FLASH_LockBank1 | ( | void | ) |
Locks the FLASH Bank1 Program Erase Controller.
| None |
| void FLASH_PrefetchBufferCmd | ( | uint32_t | FLASH_PrefetchBuffer | ) |
Enables or disables the Prefetch Buffer.
| FLASH_PrefetchBuffer | specifies the Prefetch buffer status. This parameter can be one of the following values:
|
| FLASH_Status FLASH_ProgramHalfWord | ( | uint32_t | Address, |
| uint16_t | Data | ||
| ) |
Programs a half word at a specified address.
| Address | specifies the address to be programmed. |
| Data | specifies the data to be programmed. |
| FLASH_Status FLASH_ProgramOptionByteData | ( | uint32_t | Address, |
| uint8_t | Data | ||
| ) |
Programs a half word at a specified Option Byte Data address.
| Address | specifies the address to be programmed. This parameter can be 0x1FFFF804 or 0x1FFFF806. |
| Data | specifies the data to be programmed. |
| FLASH_Status FLASH_ProgramWord | ( | uint32_t | Address, |
| uint32_t | Data | ||
| ) |
Programs a word at a specified address.
| Address | specifies the address to be programmed. |
| Data | specifies the data to be programmed. |
| FLASH_Status FLASH_ReadOutProtection | ( | FunctionalState | NewState | ) |
Enables or disables the read out protection.
| Newstate | new state of the ReadOut Protection. This parameter can be: ENABLE or DISABLE. |
| void FLASH_SetLatency | ( | uint32_t | FLASH_Latency | ) |
Sets the code latency value.
| FLASH_Latency | specifies the FLASH Latency value. This parameter can be one of the following values:
|
| void FLASH_Unlock | ( | void | ) |
Unlocks the FLASH Program Erase Controller.
| None |
| void FLASH_UnlockBank1 | ( | void | ) |
Unlocks the FLASH Bank1 Program Erase Controller.
| None |
| FLASH_Status FLASH_UserOptionByteConfig | ( | uint16_t | OB_IWDG, |
| uint16_t | OB_STOP, | ||
| uint16_t | OB_STDBY | ||
| ) |
Programs the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY.
| OB_IWDG | Selects the IWDG mode This parameter can be one of the following values:
|
| OB_STOP | Reset event when entering STOP mode. This parameter can be one of the following values:
|
| OB_STDBY | Reset event when entering Standby mode. This parameter can be one of the following values:
|
| FLASH_Status FLASH_WaitForLastBank1Operation | ( | uint32_t | Timeout | ) |
Waits for a Flash operation on Bank1 to complete or a TIMEOUT to occur.
| Timeout | FLASH programming Timeout |
| FLASH_Status FLASH_WaitForLastOperation | ( | uint32_t | Timeout | ) |
Waits for a Flash operation to complete or a TIMEOUT to occur.
| Timeout | FLASH programming Timeout |