Home
last modified time | relevance | path

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

/bsp/hc32/libraries/hc32_drivers/drv_flash/
A Ddrv_flash_f4.c82 rt_uint32_t newAddr = addr, offsetVal = 0; in hc32_flash_write() local
114 newAddr = (addr / HC32_FLASH_WRITE_GRANULARITY + 1U) * HC32_FLASH_WRITE_GRANULARITY; in hc32_flash_write()
115 offsetVal = newAddr - addr; in hc32_flash_write()
120 if (LL_OK == EFM_ReadByte(newAddr - HC32_FLASH_WRITE_GRANULARITY, u8MemBuf, index)) in hc32_flash_write()
127 …if (LL_OK == EFM_Program(newAddr - HC32_FLASH_WRITE_GRANULARITY, u8MemBuf, HC32_FLASH_WRITE_GRANUL… in hc32_flash_write()
140 if (LL_OK != EFM_Program(newAddr, (uint8_t *)&buf[offsetVal], size)) in hc32_flash_write()

Completed in 5 milliseconds