Home
last modified time | relevance | path

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

/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/mbed/targets/hal/rtl8721d/
A Dflash_api.c202 u32 i = 4 - offset_to_align; in flash_read_word()
204 if(offset_to_align){ in flash_read_word()
205 address -= offset_to_align; in flash_read_word()
240 u32 i = 4 - offset_to_align; in flash_write_word()
243 if(offset_to_align){ in flash_write_word()
251 temp = (temp >> (offset_to_align * 8)) << (offset_to_align * 8) | write_word >>(8*i); in flash_write_word()
282 u32 offset_to_align; in flash_stream_read() local
290 if (offset_to_align != 0) { in flash_stream_read()
294 offset_to_align = 4 - offset_to_align; in flash_stream_read()
363 u32 offset_to_align; in flash_stream_write() local
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/csi_driver/spiflash/
A Dspiflash.c59 uint32_t offset_to_align; in csi_spiflash_read() local
68 offset_to_align = offset & 0x03; in csi_spiflash_read()
70 if (offset_to_align != 0) { in csi_spiflash_read()
72 read_word = HAL_READ32(SPI_FLASH_BASE, (offset - offset_to_align)); in csi_spiflash_read()
73 ptr = (uint8_t*)&read_word + offset_to_align; in csi_spiflash_read()
74 offset_to_align = 4 - offset_to_align; in csi_spiflash_read()
75 for (i=0;i<offset_to_align;i++) { in csi_spiflash_read()
139 uint32_t offset_to_align; in csi_spiflash_program() local
146 offset_to_align = addr_begin & 0x3; in csi_spiflash_program()
150 if(offset_to_align != 0){ in csi_spiflash_program()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/ram_common/
A Drtl8721d_flash_ram.c316 u32 offset_to_align; in FLASH_ReadStream() local
322 offset_to_align = address & 0x03; in FLASH_ReadStream()
324 if (offset_to_align != 0) { in FLASH_ReadStream()
327 ptr = (u8*)&read_word + offset_to_align; in FLASH_ReadStream()
328 offset_to_align = 4 - offset_to_align; in FLASH_ReadStream()
329 for (i=0;i<offset_to_align;i++) { in FLASH_ReadStream()
394 u32 offset_to_align; in FLASH_WriteStream() local
400 offset_to_align = addr_begin & 0x3; in FLASH_WriteStream()
402 if(offset_to_align != 0){ in FLASH_WriteStream()
404 for(i = offset_to_align;i < 4;i++){ in FLASH_WriteStream()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/misc/
A Drtl8721d_ota.c145 u32 offset_to_align; in ota_readstream_user() local
153 offset_to_align = address & 0x03; in ota_readstream_user()
155 if (offset_to_align != 0) { in ota_readstream_user()
157 FLASH_RxData(0, address - offset_to_align, 4, (u8*)&read_word); in ota_readstream_user()
159 ptr = (u8*)&read_word + offset_to_align; in ota_readstream_user()
160 offset_to_align = 4 - offset_to_align; in ota_readstream_user()
161 for (i=0;i<offset_to_align;i++) { in ota_readstream_user()
234 u32 offset_to_align; in ota_writestream_user() local
240 offset_to_align = addr_begin & 0x3; in ota_writestream_user()
242 if(offset_to_align != 0){ in ota_writestream_user()
[all …]

Completed in 8 milliseconds