Home
last modified time | relevance | path

Searched refs:pageProtectionStruct (Results 1 – 2 of 2) sorted by relevance

/hal_stm32-latest/stm32cube/stm32wb0x/drivers/src/
Dstm32wb0x_hal_flash_ex.c297 HAL_StatusTypeDef HAL_FLASHEx_PageProtection(FLASH_PageProtectionTypeDef *pageProtectionStruct) in HAL_FLASHEx_PageProtection() argument
300 if (pageProtectionStruct == NULL) in HAL_FLASHEx_PageProtection()
306 assert_param(IS_FUNCTIONAL_STATE(pageProtectionStruct->state)); in HAL_FLASHEx_PageProtection()
317 pageProtectionStruct->pageProt_1 = 0; in HAL_FLASHEx_PageProtection()
321 if (pageProtectionStruct->state == ENABLE) in HAL_FLASHEx_PageProtection()
323 FLASH->PAGEPROT0 |= pageProtectionStruct->pageProt_0; in HAL_FLASHEx_PageProtection()
324 if (pageProtectionStruct->pageProt_1 != 0) in HAL_FLASHEx_PageProtection()
326 FLASH->PAGEPROT1 |= pageProtectionStruct->pageProt_1; in HAL_FLASHEx_PageProtection()
332 FLASH->PAGEPROT0 &= ~pageProtectionStruct->pageProt_0; in HAL_FLASHEx_PageProtection()
333 if (pageProtectionStruct->pageProt_1 != 0) in HAL_FLASHEx_PageProtection()
[all …]
/hal_stm32-latest/stm32cube/stm32wb0x/drivers/include/
Dstm32wb0x_hal_flash_ex.h54 HAL_StatusTypeDef HAL_FLASHEx_PageProtection(FLASH_PageProtectionTypeDef *pageProtectionStruct);