Lines Matching refs:uint32_t
127 static int32_t get_sector( uint32_t address );//获取当前属于第一个扇区
128 extern void norflash_erase_sector( uint32_t saddr );//负责擦除单个扇区的全部数据
133 uint32_t addr = FLASH_START_ADDR + offset;
134 uint32_t addr_down = FAL_ALIGN_DOWN( addr, FLASH_SECTOR_SIZE );
136 uint32_t addr_end = addr + size;
137 uint32_t addr_end_up = FAL_ALIGN_UP( addr_end, FLASH_SECTOR_SIZE );
138 uint32_t cur_addr = addr_down;
166 uint32_t addr = FLASH_START_ADDR + offset;
168 uint32_t addr_up = FAL_ALIGN_UP( addr, FLASH_SECTOR_SIZE );
170 uint32_t addr_down = FAL_ALIGN_DOWN( addr, FLASH_SECTOR_SIZE );
173 uint32_t addr_end = addr + size;
175 uint32_t addr_end_up = FAL_ALIGN_UP( addr_end, FLASH_SECTOR_SIZE );
177 uint32_t addr_end_down = FAL_ALIGN_DOWN( addr_end, FLASH_SECTOR_SIZE );
178 uint32_t cur_addr = addr_down; // 当前处理的扇区起始地址
180 uint32_t max_write_len = 0; // 单次最大可写入长度
181 uint32_t write_len = 0; // 实际写入长度
273 uint32_t addr = FLASH_START_ADDR + offset;
276 uint32_t addr_up = FAL_ALIGN_UP( addr, FLASH_PAGE_SIZE );
277 uint32_t addr_down = FAL_ALIGN_DOWN( addr, FLASH_PAGE_SIZE );
280 uint32_t addr_end = addr + size;
281 uint32_t addr_end_up = FAL_ALIGN_UP( addr_end, FLASH_PAGE_SIZE );
282 uint32_t addr_end_down = FAL_ALIGN_DOWN( addr_end, FLASH_PAGE_SIZE );
285 uint32_t cur_addr = addr_down; // 从页对齐起始地址开始处理
286 uint32_t max_write_len = 0; // 单次最大可写入长度
287 uint32_t write_len = 0; // 实际写入长度