/hal_stm32-latest/stm32cube/stm32f4xx/drivers/src/ |
D | stm32f4xx_hal_flash_ex.c | 101 static HAL_StatusTypeDef FLASH_OB_EnableWRP(uint32_t WRPSector, uint32_t Banks); 102 static HAL_StatusTypeDef FLASH_OB_DisableWRP(uint32_t WRPSector, uint32_t Banks); 298 status = FLASH_OB_EnableWRP(pOBInit->WRPSector, pOBInit->Banks); in HAL_FLASHEx_OBProgram() 303 status = FLASH_OB_DisableWRP(pOBInit->WRPSector, pOBInit->Banks); in HAL_FLASHEx_OBProgram() 345 pOBInit->WRPSector = (uint32_t)FLASH_OB_GetWRP(); in HAL_FLASHEx_OBGetConfig() 641 static HAL_StatusTypeDef FLASH_OB_EnableWRP(uint32_t WRPSector, uint32_t Banks) in FLASH_OB_EnableWRP() argument 646 assert_param(IS_OB_WRP_SECTOR(WRPSector)); in FLASH_OB_EnableWRP() 654 …if (((WRPSector == OB_WRP_SECTOR_All) && ((Banks == FLASH_BANK_1) || (Banks == FLASH_BANK_BOTH))) … in FLASH_OB_EnableWRP() 655 (WRPSector < OB_WRP_SECTOR_12)) in FLASH_OB_EnableWRP() 657 if (WRPSector == OB_WRP_SECTOR_All) in FLASH_OB_EnableWRP() [all …]
|
/hal_stm32-latest/stm32cube/stm32f2xx/drivers/src/ |
D | stm32f2xx_hal_flash_ex.c | 88 static HAL_StatusTypeDef FLASH_OB_EnableWRP(uint32_t WRPSector, uint32_t Banks); 89 static HAL_StatusTypeDef FLASH_OB_DisableWRP(uint32_t WRPSector, uint32_t Banks); 271 status = FLASH_OB_EnableWRP(pOBInit->WRPSector, pOBInit->Banks); in HAL_FLASHEx_OBProgram() 276 status = FLASH_OB_DisableWRP(pOBInit->WRPSector, pOBInit->Banks); in HAL_FLASHEx_OBProgram() 318 pOBInit->WRPSector = (uint32_t)FLASH_OB_GetWRP(); in HAL_FLASHEx_OBGetConfig() 463 static HAL_StatusTypeDef FLASH_OB_EnableWRP(uint32_t WRPSector, uint32_t Banks) in FLASH_OB_EnableWRP() argument 471 assert_param(IS_OB_WRP_SECTOR(WRPSector)); in FLASH_OB_EnableWRP() 479 *(__IO uint16_t*)OPTCR_BYTE2_ADDRESS &= (~WRPSector); in FLASH_OB_EnableWRP() 501 static HAL_StatusTypeDef FLASH_OB_DisableWRP(uint32_t WRPSector, uint32_t Banks) in FLASH_OB_DisableWRP() argument 509 assert_param(IS_OB_WRP_SECTOR(WRPSector)); in FLASH_OB_DisableWRP() [all …]
|
/hal_stm32-latest/stm32cube/stm32h7xx/drivers/src/ |
D | stm32h7xx_hal_flash_ex.c | 115 static void FLASH_OB_EnableWRP(uint32_t WRPSector, uint32_t Banks); 116 static void FLASH_OB_DisableWRP(uint32_t WRPSector, uint32_t Bank); 117 static void FLASH_OB_GetWRP(uint32_t *WRPState, uint32_t *WRPSector, uint32_t Bank); 463 FLASH_OB_EnableWRP(pOBInit->WRPSector,pOBInit->Banks); in HAL_FLASHEx_OBProgram() 468 FLASH_OB_DisableWRP(pOBInit->WRPSector, pOBInit->Banks); in HAL_FLASHEx_OBProgram() 589 FLASH_OB_GetWRP(&(pOBInit->WRPState), &(pOBInit->WRPSector), pOBInit->Banks); in HAL_FLASHEx_OBGetConfig() 1237 static void FLASH_OB_EnableWRP(uint32_t WRPSector, uint32_t Banks) in FLASH_OB_EnableWRP() argument 1240 assert_param(IS_OB_WRP_SECTOR(WRPSector)); in FLASH_OB_EnableWRP() 1246 FLASH->WPSN_PRG1 &= (~(WRPSector & FLASH_WPSN_WRPSN)); in FLASH_OB_EnableWRP() 1253 FLASH->WPSN_PRG2 &= (~(WRPSector & FLASH_WPSN_WRPSN)); in FLASH_OB_EnableWRP() [all …]
|
/hal_stm32-latest/stm32cube/stm32f7xx/drivers/src/ |
D | stm32f7xx_hal_flash_ex.c | 94 static HAL_StatusTypeDef FLASH_OB_EnableWRP(uint32_t WRPSector); 95 static HAL_StatusTypeDef FLASH_OB_DisableWRP(uint32_t WRPSector); 302 status = FLASH_OB_EnableWRP(pOBInit->WRPSector); in HAL_FLASHEx_OBProgram() 307 status = FLASH_OB_DisableWRP(pOBInit->WRPSector); in HAL_FLASHEx_OBProgram() 390 pOBInit->WRPSector = FLASH_OB_GetWRP(); in HAL_FLASHEx_OBGetConfig() 806 static HAL_StatusTypeDef FLASH_OB_EnableWRP(uint32_t WRPSector) in FLASH_OB_EnableWRP() argument 811 assert_param(IS_OB_WRP_SECTOR(WRPSector)); in FLASH_OB_EnableWRP() 819 FLASH->OPTCR &= (~WRPSector); in FLASH_OB_EnableWRP() 842 static HAL_StatusTypeDef FLASH_OB_DisableWRP(uint32_t WRPSector) in FLASH_OB_DisableWRP() argument 847 assert_param(IS_OB_WRP_SECTOR(WRPSector)); in FLASH_OB_DisableWRP() [all …]
|
/hal_stm32-latest/stm32cube/stm32h5xx/drivers/src/ |
D | stm32h5xx_hal_flash_ex.c | 112 static void FLASH_OB_EnableWRP(uint32_t WRPSector, uint32_t Banks); 113 static void FLASH_OB_DisableWRP(uint32_t WRPSector, uint32_t Bank); 114 static void FLASH_OB_GetWRP(uint32_t Bank, uint32_t *WRPState, uint32_t *WRPSector); 364 FLASH_OB_EnableWRP(pOBInit->WRPSector, pOBInit->Banks); in HAL_FLASHEx_OBProgram() 369 FLASH_OB_DisableWRP(pOBInit->WRPSector, pOBInit->Banks); in HAL_FLASHEx_OBProgram() 459 FLASH_OB_GetWRP(pOBInit->Banks, &(pOBInit->WRPState), &(pOBInit->WRPSector)); in HAL_FLASHEx_OBGetConfig() 1053 static void FLASH_OB_EnableWRP(uint32_t WRPSector, uint32_t Banks) in FLASH_OB_EnableWRP() argument 1061 FLASH->WRP1R_PRG &= (~(WRPSector & FLASH_WRPR_WRPSG)); in FLASH_OB_EnableWRP() 1067 FLASH->WRP2R_PRG &= (~(WRPSector & FLASH_WRPR_WRPSG)); in FLASH_OB_EnableWRP() 1084 static void FLASH_OB_DisableWRP(uint32_t WRPSector, uint32_t Banks) in FLASH_OB_DisableWRP() argument [all …]
|
/hal_stm32-latest/stm32cube/stm32h7rsxx/drivers/src/ |
D | stm32h7rsxx_hal_flash_ex.c | 116 static void FLASH_OB_WRPConfig(uint32_t WRPState, uint32_t WRPSector); 121 static void FLASH_OB_GetWRP(uint32_t *WRPState, uint32_t *WRPSector); 317 FLASH_OB_WRPConfig(pOBInit->WRPState, pOBInit->WRPSector); in HAL_FLASHEx_OBProgram() 367 FLASH_OB_GetWRP(&(pOBInit->WRPState), &(pOBInit->WRPSector)); in HAL_FLASHEx_OBGetConfig() 921 static void FLASH_OB_WRPConfig(uint32_t WRPState, uint32_t WRPSector) in FLASH_OB_WRPConfig() argument 929 FLASH->WRPSRP |= (WRPSector & FLASH_WRPSRP_WRPS); in FLASH_OB_WRPConfig() 933 FLASH->WRPSRP &= (~(WRPSector & FLASH_WRPSRP_WRPS)); in FLASH_OB_WRPConfig() 1155 static void FLASH_OB_GetWRP(uint32_t *WRPState, uint32_t *WRPSector) in FLASH_OB_GetWRP() argument 1166 *WRPSector = ((~(FLASH->WRPSR)) & FLASH_WRPSR_WRPS); in FLASH_OB_GetWRP()
|
/hal_stm32-latest/stm32cube/stm32l0xx/drivers/src/ |
D | stm32l0xx_hal_flash_ex.c | 337 …status = FLASH_OB_ProtectedSectorsConfig(pOBInit->WRPSector, pOBInit->WRPSector2, pOBInit->WRPStat… in HAL_FLASHEx_OBProgram() 339 status = FLASH_OB_ProtectedSectorsConfig(pOBInit->WRPSector, pOBInit->WRPState); in HAL_FLASHEx_OBProgram() 410 pOBInit->WRPSector = FLASH_OB_GetWRP(); in HAL_FLASHEx_OBGetConfig()
|
/hal_stm32-latest/stm32cube/stm32f2xx/drivers/include/ |
D | stm32f2xx_hal_flash_ex.h | 75 uint32_t WRPSector; /*!< Specifies the sector(s) to be write protected. member
|
/hal_stm32-latest/stm32cube/stm32l0xx/drivers/include/ |
D | stm32l0xx_hal_flash_ex.h | 176 …uint32_t WRPSector; /*!< WRPSector: This bitfield specifies the sector (s) which are write… member
|
/hal_stm32-latest/stm32cube/stm32f7xx/drivers/include/ |
D | stm32f7xx_hal_flash_ex.h | 77 uint32_t WRPSector; /*!< Specifies the sector(s) to be write protected. member
|
/hal_stm32-latest/stm32cube/stm32h7rsxx/drivers/include/ |
D | stm32h7rsxx_hal_flash.h | 69 …uint32_t WRPSector; /*!< Specifies the sector(s) to be write protected (used for… member
|
/hal_stm32-latest/stm32cube/stm32h5xx/drivers/include/ |
D | stm32h5xx_hal_flash_ex.h | 100 uint32_t WRPSector; /*!< Specifies the sector(s) to be write protected. member
|
/hal_stm32-latest/stm32cube/stm32h7xx/drivers/include/ |
D | stm32h7xx_hal_flash_ex.h | 76 uint32_t WRPSector; /*!< Specifies the sector(s) to be write protected. member
|
/hal_stm32-latest/stm32cube/stm32f4xx/drivers/include/ |
D | stm32f4xx_hal_flash_ex.h | 75 uint32_t WRPSector; /*!< Specifies the sector(s) to be write protected. member
|