Home
last modified time | relevance | path

Searched refs:WriteProtectPage (Results 1 – 3 of 3) sorted by relevance

/hal_stm32-latest/stm32cube/stm32f1xx/drivers/src/
Dstm32f1xx_hal_flash_ex.c99 static HAL_StatusTypeDef FLASH_OB_EnableWRP(uint32_t WriteProtectPage);
100 static HAL_StatusTypeDef FLASH_OB_DisableWRP(uint32_t WriteProtectPage);
639 static HAL_StatusTypeDef FLASH_OB_EnableWRP(uint32_t WriteProtectPage) in FLASH_OB_EnableWRP() argument
654 assert_param(IS_OB_WRP(WriteProtectPage)); in FLASH_OB_EnableWRP()
657 WriteProtectPage = (uint32_t)(~((~FLASH_OB_GetWRP()) | WriteProtectPage)); in FLASH_OB_EnableWRP()
660 WRP0_Data = (uint16_t)(WriteProtectPage & OB_WRP_PAGES0TO15MASK); in FLASH_OB_EnableWRP()
662 WRP0_Data = (uint16_t)(WriteProtectPage & OB_WRP_PAGES0TO31MASK); in FLASH_OB_EnableWRP()
666 WRP1_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES16TO31MASK) >> 8U); in FLASH_OB_EnableWRP()
668 WRP1_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES32TO63MASK) >> 8U); in FLASH_OB_EnableWRP()
672 WRP2_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES64TO95MASK) >> 16U); in FLASH_OB_EnableWRP()
[all …]
/hal_stm32-latest/stm32cube/stm32f0xx/drivers/src/
Dstm32f0xx_hal_flash_ex.c99 static HAL_StatusTypeDef FLASH_OB_EnableWRP(uint32_t WriteProtectPage);
100 static HAL_StatusTypeDef FLASH_OB_DisableWRP(uint32_t WriteProtectPage);
519 static HAL_StatusTypeDef FLASH_OB_EnableWRP(uint32_t WriteProtectPage) in FLASH_OB_EnableWRP() argument
534 assert_param(IS_OB_WRP(WriteProtectPage)); in FLASH_OB_EnableWRP()
537 WriteProtectPage = (uint32_t)(~((~FLASH_OB_GetWRP()) | WriteProtectPage)); in FLASH_OB_EnableWRP()
540 WRP0_Data = (uint16_t)(WriteProtectPage & OB_WRP_PAGES0TO15MASK); in FLASH_OB_EnableWRP()
542 WRP0_Data = (uint16_t)(WriteProtectPage & OB_WRP_PAGES0TO31MASK); in FLASH_OB_EnableWRP()
546 WRP1_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES16TO31MASK) >> 8U); in FLASH_OB_EnableWRP()
548 WRP1_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES32TO63MASK) >> 8U); in FLASH_OB_EnableWRP()
552 WRP2_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES32TO47MASK) >> 16U); in FLASH_OB_EnableWRP()
[all …]
/hal_stm32-latest/stm32cube/stm32f3xx/drivers/src/
Dstm32f3xx_hal_flash_ex.c99 static HAL_StatusTypeDef FLASH_OB_EnableWRP(uint32_t WriteProtectPage);
100 static HAL_StatusTypeDef FLASH_OB_DisableWRP(uint32_t WriteProtectPage);
519 static HAL_StatusTypeDef FLASH_OB_EnableWRP(uint32_t WriteProtectPage) in FLASH_OB_EnableWRP() argument
534 assert_param(IS_OB_WRP(WriteProtectPage)); in FLASH_OB_EnableWRP()
537 WriteProtectPage = (uint32_t)(~((~FLASH_OB_GetWRP()) | WriteProtectPage)); in FLASH_OB_EnableWRP()
540 WRP0_Data = (uint16_t)(WriteProtectPage & OB_WRP_PAGES0TO15MASK); in FLASH_OB_EnableWRP()
544 WRP1_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES16TO31MASK) >> 8U); in FLASH_OB_EnableWRP()
548 WRP2_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES32TO47MASK) >> 16U); in FLASH_OB_EnableWRP()
552 WRP3_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES48TO127MASK) >> 24U); in FLASH_OB_EnableWRP()
554 WRP3_Data = (uint16_t)((WriteProtectPage & OB_WRP_PAGES48TO255MASK) >> 24U); in FLASH_OB_EnableWRP()
[all …]