Home
last modified time | relevance | path

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

/hal_rpi_pico-latest/src/rp2_common/pico_btstack/
Dbtstack_flash_bank.c47 flash_range_program(mop->p0, (const uint8_t *)mop->p1, FLASH_PAGE_SIZE); in pico_flash_bank_perform_flash_mutation_operation()
115 const uint32_t first_page = offset / FLASH_PAGE_SIZE; in pico_flash_bank_write()
116 const uint32_t last_page = (offset + size + FLASH_PAGE_SIZE - 1) / FLASH_PAGE_SIZE; in pico_flash_bank_write()
119 offset %= FLASH_PAGE_SIZE; in pico_flash_bank_write()
127 uint8_t page_data[FLASH_PAGE_SIZE]; in pico_flash_bank_write()
134 (void *)(XIP_BASE + bank_start_pos + (page * FLASH_PAGE_SIZE)), in pico_flash_bank_write()
139 if (page == last_page - 1 && (offset + size_left) < FLASH_PAGE_SIZE) { in pico_flash_bank_write()
141 (void *)(XIP_BASE + bank_start_pos + (page * FLASH_PAGE_SIZE) + offset + size_left), in pico_flash_bank_write()
142 FLASH_PAGE_SIZE - offset - size_left); in pico_flash_bank_write()
146 const uint32_t size_to_copy = MIN(size_left, FLASH_PAGE_SIZE - offset); in pico_flash_bank_write()
[all …]
/hal_rpi_pico-latest/src/rp2_common/hardware_flash/include/hardware/
Dflash.h45 #define FLASH_PAGE_SIZE (1u << 8) macro
/hal_rpi_pico-latest/src/rp2_common/hardware_flash/
Dflash.c155 invalid_params_if(HARDWARE_FLASH, flash_offs & (FLASH_PAGE_SIZE - 1)); in __no_inline_not_in_flash_func()
156 invalid_params_if(HARDWARE_FLASH, count & (FLASH_PAGE_SIZE - 1)); in __no_inline_not_in_flash_func()