Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/flash/
Dflash_stm32f1x.c84 return !!(regs->PECR & FLASH_PECR_PRGLOCK); in is_flash_locked()
91 regs->PECR |= FLASH_PECR_PROG; in write_enable()
98 regs->PECR &= ~FLASH_PECR_PROG; in write_disable()
108 regs->PECR |= FLASH_PECR_ERASE; in erase_page_begin()
109 regs->PECR |= FLASH_PECR_PROG; in erase_page_begin()
119 regs->PECR &= ~FLASH_PECR_PROG; in erase_page_end()
120 regs->PECR &= ~FLASH_PECR_ERASE; in erase_page_end()
Dflash_stm32.c265 regs->PECR |= FLASH_PECR_PRGLOCK; in flash_stm32_write_protection()
266 regs->PECR |= FLASH_PECR_PELOCK; in flash_stm32_write_protection()
268 if (regs->PECR & FLASH_PECR_PRGLOCK) { in flash_stm32_write_protection()
275 if (FLASH->PECR & FLASH_PECR_PRGLOCK) { in flash_stm32_write_protection()
328 regs->PECR |= FLASH_PECR_OPTLOCK; in flash_stm32_option_bytes_lock()
329 } else if (regs->PECR & FLASH_PECR_OPTLOCK) { in flash_stm32_option_bytes_lock()