Home
last modified time | relevance | path

Searched refs:NSCR (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/drivers/flash/
Dflash_stm32wbax.c117 if (regs->NSCR & FLASH_STM32_NSLOCK) { in write_qword()
136 regs->NSCR |= FLASH_STM32_NSPG; in write_qword()
139 tmp = regs->NSCR; in write_qword()
151 regs->NSCR &= (~FLASH_STM32_NSPG); in write_qword()
164 if (regs->NSCR & FLASH_STM32_NSLOCK) { in erase_page()
179 regs->NSCR |= FLASH_STM32_NSPER; in erase_page()
180 regs->NSCR &= ~FLASH_STM32_NSPNB_MSK; in erase_page()
181 regs->NSCR |= (page << FLASH_STM32_NSPNB_POS); in erase_page()
184 regs->NSCR |= FLASH_STM32_NSSTRT; in erase_page()
187 tmp = regs->NSCR; in erase_page()
[all …]
Dflash_stm32l5x.c171 if (regs->NSCR & FLASH_STM32_NSLOCK) { in write_nwords()
205 regs->NSCR |= FLASH_STM32_NSPG; in write_nwords()
208 tmp = regs->NSCR; in write_nwords()
219 regs->NSCR &= (~FLASH_STM32_NSPG); in write_nwords()
232 if (regs->NSCR & FLASH_STM32_NSLOCK) { in erase_page()
251 regs->NSCR &= ~FLASH_STM32_NSBKER_MSK; in erase_page()
256 regs->NSCR &= ~FLASH_STM32_NSBKER_MSK; in erase_page()
261 regs->NSCR |= FLASH_STM32_NSBKER; in erase_page()
266 regs->NSCR |= FLASH_STM32_NSBKER; in erase_page()
279 regs->NSCR |= FLASH_STM32_NSPER; in erase_page()
[all …]
Dflash_stm32.c247 regs->NSCR |= FLASH_STM32_NSLOCK; in flash_stm32_write_protection()
249 if (regs->NSCR & FLASH_STM32_NSLOCK) { in flash_stm32_write_protection()
335 regs->NSCR |= FLASH_NSCR_OPTLOCK; in flash_stm32_option_bytes_lock()
336 } else if (regs->NSCR & FLASH_NSCR_OPTLOCK) { in flash_stm32_option_bytes_lock()
Dflash_stm32.h124 #define NSCR NSCR1 macro