Home
last modified time | relevance | path

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

/Zephyr-latest/samples/drivers/spi_flash/src/
Dmain.c15 #define SPI_FLASH_TEST_REGION_OFFSET 0xf000 macro
19 #define SPI_FLASH_TEST_REGION_OFFSET \ macro
23 #define SPI_FLASH_TEST_REGION_OFFSET 0x7F000 macro
25 #define SPI_FLASH_TEST_REGION_OFFSET 0xff000 macro
69 rc = flash_erase(flash_dev, SPI_FLASH_TEST_REGION_OFFSET, in single_sector_test()
76 rc = flash_read(flash_dev, SPI_FLASH_TEST_REGION_OFFSET, buf, len); in single_sector_test()
83 SPI_FLASH_TEST_REGION_OFFSET, *(uint32_t *)buf); in single_sector_test()
91 rc = flash_write(flash_dev, SPI_FLASH_TEST_REGION_OFFSET, expected, len); in single_sector_test()
98 rc = flash_read(flash_dev, SPI_FLASH_TEST_REGION_OFFSET, buf, len); in single_sector_test()
114 (uint32_t)(SPI_FLASH_TEST_REGION_OFFSET + (rp - buf)), in single_sector_test()
[all …]
/Zephyr-latest/samples/drivers/mspi/mspi_flash/src/
Dmain.c14 #define SPI_FLASH_TEST_REGION_OFFSET 0xff000 macro
38 rc = flash_erase(flash_dev, SPI_FLASH_TEST_REGION_OFFSET, in single_sector_test()
49 rc = flash_write(flash_dev, SPI_FLASH_TEST_REGION_OFFSET, expected, len); in single_sector_test()
56 rc = flash_read(flash_dev, SPI_FLASH_TEST_REGION_OFFSET, buf, len); in single_sector_test()
72 (uint32_t)(SPI_FLASH_TEST_REGION_OFFSET + (rp - buf)), in single_sector_test()
102 rc = flash_erase(flash_dev, SPI_FLASH_TEST_REGION_OFFSET, SPI_FLASH_SECTOR_SIZE * 2); in multi_sector_test()
108 size_t offs = SPI_FLASH_TEST_REGION_OFFSET; in multi_sector_test()
110 while (offs < SPI_FLASH_TEST_REGION_OFFSET + 2 * SPI_FLASH_SECTOR_SIZE) { in multi_sector_test()
128 size_t offs = SPI_FLASH_TEST_REGION_OFFSET; in multi_sector_test()
130 while (offs < SPI_FLASH_TEST_REGION_OFFSET + 2 * SPI_FLASH_SECTOR_SIZE) { in multi_sector_test()