rusEFI
The most advanced open source ECU
|
Modules | |
Extended IO operation functions | |
Extended IO operation functions. | |
Functions | |
void | FLASH_Erase_Sector (uint32_t Sector, uint8_t VoltageRange) |
Erase the specified FLASH memory sector. More... | |
static void | FLASH_MassErase (uint8_t VoltageRange, uint32_t Banks) |
Full erase of FLASH memory sectors. More... | |
static uint32_t | FLASH_OB_GetWRP (void) |
Return the FLASH Write Protection Option Bytes value. More... | |
static uint32_t | FLASH_OB_GetUser (void) |
Return the FLASH User Option Byte value. More... | |
static HAL_StatusTypeDef | FLASH_OB_RDP_LevelConfig (uint8_t Level) |
Set the read protection level. More... | |
static HAL_StatusTypeDef | FLASH_OB_BOR_LevelConfig (uint8_t Level) |
Set the BOR Level. More... | |
static uint8_t | FLASH_OB_GetRDP (void) |
Returns the FLASH Read Protection level. More... | |
static uint32_t | FLASH_OB_GetBOR (void) |
Returns the FLASH BOR level. More... | |
static HAL_StatusTypeDef | FLASH_OB_EnableWRP (uint32_t WRPSector, uint32_t Banks) |
Enable the write protection of the desired bank1 or bank 2 sectors. More... | |
static HAL_StatusTypeDef | FLASH_OB_DisableWRP (uint32_t WRPSector, uint32_t Banks) |
Disable the write protection of the desired bank1 or bank 2 sectors. More... | |
static HAL_StatusTypeDef | FLASH_OB_BootConfig (uint8_t BootConfig) |
Configure the Dual Bank Boot. More... | |
static HAL_StatusTypeDef | FLASH_OB_EnablePCROP (uint32_t SectorBank1, uint32_t SectorBank2, uint32_t Banks) |
Enable the read/write protection (PCROP) of the desired sectors of Bank 1 and/or Bank 2. More... | |
static HAL_StatusTypeDef | FLASH_OB_DisablePCROP (uint32_t SectorBank1, uint32_t SectorBank2, uint32_t Banks) |
Disable the read/write protection (PCROP) of the desired sectors of Bank 1 and/or Bank 2. More... | |
static HAL_StatusTypeDef | FLASH_OB_EnablePCROP (uint32_t Sector) |
Enable the read/write protection (PCROP) of the desired sectors. More... | |
static HAL_StatusTypeDef | FLASH_OB_DisablePCROP (uint32_t Sector) |
Disable the read/write protection (PCROP) of the desired sectors. More... | |
static HAL_StatusTypeDef | FLASH_OB_UserConfig (uint8_t Iwdg, uint8_t Stop, uint8_t Stdby) |
Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY. More... | |
static HAL_StatusTypeDef | FLASH_OB_UserConfig (uint32_t Wwdg, uint32_t Iwdg, uint32_t Stop, uint32_t Stdby, uint32_t Iwdgstop, \ uint32_t Iwdgstdby, uint32_t NDBank, uint32_t NDBoot) |
Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY. More... | |
static void | FLASH_MassErase (uint8_t VoltageRange) |
Full erase of FLASH memory sectors. More... | |
static HAL_StatusTypeDef | FLASH_OB_UserConfig (uint32_t Wwdg, uint32_t Iwdg, uint32_t Stop, uint32_t Stdby, uint32_t Iwdgstop, uint32_t Iwdgstdby) |
Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY. More... | |
static HAL_StatusTypeDef | FLASH_OB_EnableWRP (uint32_t WRPSector) |
Enable the write protection of the desired bank1 or bank2 sectors. More... | |
static HAL_StatusTypeDef | FLASH_OB_DisableWRP (uint32_t WRPSector) |
Disable the write protection of the desired bank1 or bank 2 sectors. More... | |
static HAL_StatusTypeDef | FLASH_OB_BootAddressConfig (uint32_t BootOption, uint32_t Address) |
Configure Boot base address. More... | |
static uint32_t | FLASH_OB_GetBootAddress (uint32_t BootOption) |
Configure Boot base address. More... | |
static HAL_StatusTypeDef | FLASH_OB_PCROP_Config (uint32_t PCROPSector) |
Set the PCROP protection for sectors. More... | |
static HAL_StatusTypeDef | FLASH_OB_PCROP_RDP_Config (uint32_t Pcrop_Rdp) |
Set the PCROP_RDP value. More... | |
static uint32_t | FLASH_OB_GetPCROP (void) |
Return the FLASH PCROP Protection Option Bytes value. More... | |
static uint32_t | FLASH_OB_GetPCROPRDP (void) |
Return the FLASH PCROP_RDP option byte value. More... | |
void FLASH_Erase_Sector | ( | uint32_t | Sector, |
uint8_t | VoltageRange | ||
) |
Erase the specified FLASH memory sector.
Sector | FLASH sector to erase The value of this parameter depend on device used within the same series |
VoltageRange | The device voltage range which defines the erase parallelism. This parameter can be one of the following values:
|
None |
Definition at line 637 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASH_IRQHandler(), HAL_FLASHEx_Erase(), and HAL_FLASHEx_Erase_IT().
|
static |
Full erase of FLASH memory sectors.
VoltageRange | The device voltage range which defines the erase parallelism. This parameter can be one of the following values:
|
HAL | Status |
Definition at line 665 of file stm32f7xx_hal_flash_ex.c.
|
static |
Full erase of FLASH memory sectors.
VoltageRange | The device voltage range which defines the erase parallelism. This parameter can be one of the following values:
|
Banks | Banks to be erased This parameter can be one of the following values:
|
HAL | Status |
Definition at line 466 of file stm32f7xx_hal_flash_ex.c.
|
static |
Configure Boot base address.
BootOption | : specifies Boot base address depending from Boot pin = 0 or pin = 1 This parameter can be one of the following values:
|
Address | specifies Boot base address This parameter can be one of the following values:
|
HAL | Status |
Definition at line 958 of file stm32f7xx_hal_flash_ex.c.
|
static |
Configure the Dual Bank Boot.
BootConfig | specifies the Dual Bank Boot Option byte. This parameter can be one of the following values:
|
None |
Definition at line 829 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_AdvOBProgram().
|
static |
Set the BOR Level.
Level | specifies the Option Bytes BOR Reset Level. This parameter can be one of the following values:
|
HAL | Status |
Definition at line 927 of file stm32f7xx_hal_flash_ex.c.
|
static |
Disable the read/write protection (PCROP) of the desired sectors.
Sector | specifies the sector(s) to be read/write protected or unprotected. This parameter can be one of the following values:
|
HAL | Status |
Definition at line 1186 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_AdvOBProgram().
|
static |
Disable the read/write protection (PCROP) of the desired sectors of Bank 1 and/or Bank 2.
SectorBank1 | specifies the sector(s) to be read/write protected or unprotected for bank1. This parameter can be one of the following values:
|
SectorBank2 | Specifies the sector(s) to be read/write protected or unprotected for bank2. This parameter can be one of the following values:
|
Banks | Disable PCROP protection on all the sectors for the specific bank This parameter can be one of the following values:
|
HAL | Status |
Definition at line 933 of file stm32f4xx_hal_flash_ex.c.
|
static |
Disable the write protection of the desired bank1 or bank 2 sectors.
WRPSector | specifies the sector(s) to be write protected. This parameter can be one of the following values:
|
HAL | Status |
Definition at line 868 of file stm32f7xx_hal_flash_ex.c.
|
static |
Disable the write protection of the desired bank1 or bank 2 sectors.
Disable the write protection of the desired bank 1 sectors.
WRPSector | specifies the sector(s) to be write protected. This parameter can be one of the following values:
|
Banks | Disable write protection on all the sectors for the specific bank This parameter can be one of the following values:
|
HAL | Status |
WRPSector | specifies the sector(s) to be write protected. The value of this parameter depend on device used within the same series |
Banks | Enable write protection on all the sectors for the specific bank This parameter can be one of the following values:
|
HAL | Status |
Definition at line 768 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_OBProgram().
|
static |
Enable the read/write protection (PCROP) of the desired sectors.
Sector | specifies the sector(s) to be read/write protected or unprotected. This parameter can be one of the following values:
|
HAL | Status |
Definition at line 1158 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_AdvOBProgram().
|
static |
Enable the read/write protection (PCROP) of the desired sectors of Bank 1 and/or Bank 2.
SectorBank1 | Specifies the sector(s) to be read/write protected or unprotected for bank1. This parameter can be one of the following values:
|
SectorBank2 | Specifies the sector(s) to be read/write protected or unprotected for bank2. This parameter can be one of the following values:
|
Banks | Enable PCROP protection on all the sectors for the specific bank This parameter can be one of the following values:
|
HAL | Status |
Definition at line 869 of file stm32f4xx_hal_flash_ex.c.
|
static |
Enable the write protection of the desired bank1 or bank2 sectors.
WRPSector | specifies the sector(s) to be write protected. This parameter can be one of the following values:
|
HAL | FLASH State |
Definition at line 832 of file stm32f7xx_hal_flash_ex.c.
|
static |
Enable the write protection of the desired bank1 or bank 2 sectors.
Enable the write protection of the desired bank 1 sectors.
WRPSector | specifies the sector(s) to be write protected. This parameter can be one of the following values:
|
Banks | Enable write protection on all the sectors for the specific bank This parameter can be one of the following values:
|
HAL | FLASH State |
WRPSector | specifies the sector(s) to be write protected. The value of this parameter depend on device used within the same series |
Banks | Enable write protection on all the sectors for the specific bank This parameter can be one of the following values:
|
HAL | Status |
Definition at line 697 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_OBProgram().
|
static |
Configure Boot base address.
BootOption | : specifies Boot base address depending from Boot pin = 0 or pin = 1 This parameter can be one of the following values:
|
uint32_t | Boot Base Address:
|
Definition at line 1042 of file stm32f7xx_hal_flash_ex.c.
|
static |
Returns the FLASH BOR level.
uint32_t | The FLASH BOR level:
|
Definition at line 1019 of file stm32f7xx_hal_flash_ex.c.
|
static |
Return the FLASH PCROP Protection Option Bytes value.
uint32_t | FLASH PCROP Protection Option Bytes value |
Definition at line 1115 of file stm32f7xx_hal_flash_ex.c.
|
static |
Return the FLASH PCROP_RDP option byte value.
uint32_t | FLASH PCROP_RDP option byte value |
Definition at line 1125 of file stm32f7xx_hal_flash_ex.c.
|
static |
Returns the FLASH Read Protection level.
FlagStatus | FLASH ReadOut Protection Status: This parameter can be one of the following values:
|
Definition at line 991 of file stm32f7xx_hal_flash_ex.c.
|
static |
Return the FLASH User Option Byte value.
uint32_t | FLASH User Option Bytes values: WWDG_SW(Bit4), IWDG_SW(Bit5), nRST_STOP(Bit6), nRST_STDBY(Bit7), nDBOOT(Bit28), nDBANK(Bit29), IWDG_STDBY(Bit30) and IWDG_STOP(Bit31). |
uint32_t | FLASH User Option Bytes values: WWDG_SW(Bit4), IWDG_SW(Bit5), nRST_STOP(Bit6), nRST_STDBY(Bit7), IWDG_STDBY(Bit30) and IWDG_STOP(Bit31). |
Definition at line 643 of file stm32f7xx_hal_flash_ex.c.
|
static |
Return the FLASH Write Protection Option Bytes value.
uint32_t | FLASH Write Protection Option Bytes value |
Definition at line 559 of file stm32f7xx_hal_flash_ex.c.
|
static |
Set the PCROP protection for sectors.
PCROPSector | specifies the sector(s) to be PCROP protected. This parameter can be one of the following values:
|
HAL | Status |
Definition at line 1069 of file stm32f7xx_hal_flash_ex.c.
|
static |
Set the PCROP_RDP value.
Pcrop_Rdp | specifies the PCROP_RDP bit value. |
HAL | Status |
Definition at line 1093 of file stm32f7xx_hal_flash_ex.c.
|
static |
Set the read protection level.
Level | specifies the read protection level. This parameter can be one of the following values:
|
HAL | Status |
Definition at line 899 of file stm32f7xx_hal_flash_ex.c.
|
static |
Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY.
Wwdg | Selects the IWDG mode This parameter can be one of the following values:
|
Iwdg | Selects the WWDG mode This parameter can be one of the following values:
|
Stop | Reset event when entering STOP mode. This parameter can be one of the following values:
|
Stdby | Reset event when entering Standby mode. This parameter can be one of the following values:
|
Iwdgstop | Independent watchdog counter freeze in Stop mode. This parameter can be one of the following values:
|
Iwdgstdby | Independent watchdog counter freeze in standby mode. This parameter can be one of the following values:
|
NDBank | Flash Single Bank mode enabled. This parameter can be one of the following values:
|
NDBoot | Flash Dual boot mode disable. This parameter can be one of the following values:
|
HAL | Status |
Definition at line 602 of file stm32f7xx_hal_flash_ex.c.
|
static |
Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY.
Wwdg | Selects the IWDG mode This parameter can be one of the following values:
|
Iwdg | Selects the WWDG mode This parameter can be one of the following values:
|
Stop | Reset event when entering STOP mode. This parameter can be one of the following values:
|
Stdby | Reset event when entering Standby mode. This parameter can be one of the following values:
|
Iwdgstop | Independent watchdog counter freeze in Stop mode. This parameter can be one of the following values:
|
Iwdgstdby | Independent watchdog counter freeze in standby mode. This parameter can be one of the following values:
|
HAL | Status |
Definition at line 771 of file stm32f7xx_hal_flash_ex.c.
|
static |
Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY.
Iwdg | Selects the IWDG mode This parameter can be one of the following values:
|
Stop | Reset event when entering STOP mode. This parameter can be one of the following values:
|
Stdby | Reset event when entering Standby mode. This parameter can be one of the following values:
|
HAL | Status |
Definition at line 1252 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_OBProgram().