Home
last modified time | relevance | path

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

/nrf_hw_models-3.4.0/src/HW_models/
DNRF_NVMC.c151 page_erased[i/FLASH_PAGE_SIZE] = false; in nrfhw_nvmc_uicr_init()
153 i = (i + FLASH_PAGE_SIZE)/FLASH_PAGE_SIZE*FLASH_PAGE_SIZE; in nrfhw_nvmc_uicr_init()
171 uint base_address = erase_address/FLASH_PAGE_SIZE*FLASH_PAGE_SIZE; in nrfhw_nvmc_complete_erase()
173 memset(&flash_st.storage[base_address], 0xFF, FLASH_PAGE_SIZE); in nrfhw_nvmc_complete_erase()
175 time_under_erase[erase_address/FLASH_PAGE_SIZE] = 0; in nrfhw_nvmc_complete_erase()
176 page_erased[erase_address/FLASH_PAGE_SIZE] = true; in nrfhw_nvmc_complete_erase()
183 if (time_under_erase[erase_address/FLASH_PAGE_SIZE] >= flash_t_erasepage) { in nrfhw_nvmc_complete_erase_partial()
282 if (x % FLASH_PAGE_SIZE != 0) { \
288 if (nvmc_args.flash_erase_warnings && time_under_erase[addr/FLASH_PAGE_SIZE] > 0){ \
291 __func__, type, addr, time_under_erase[addr/FLASH_PAGE_SIZE], flash_t_erasepage); \
[all …]
DNRF_NVMC.h17 #define FLASH_PAGE_SIZE (4*1024) macro
19 #define FLASH_SIZE (FLASH_N_PAGES*FLASH_PAGE_SIZE)
DNRF_FICR.c29 NRF_FICR_regs.CODEPAGESIZE = FLASH_PAGE_SIZE; in nrf_ficr_init()