Lines Matching +full:0 +full:x66

15 #define SPI_FLASH_TEST_REGION_OFFSET 0xf000
23 #define SPI_FLASH_TEST_REGION_OFFSET 0x7F000
25 #define SPI_FLASH_TEST_REGION_OFFSET 0xff000
49 const uint8_t erased[] = { 0xff, 0xff, 0xff, 0xff };
53 const uint8_t expected[] = { 0x55, 0xaa, 0x66, 0x99 }; in single_sector_test()
66 /* Full flash erase if SPI_FLASH_TEST_REGION_OFFSET = 0 and in single_sector_test()
71 if (rc != 0) { in single_sector_test()
75 memset(buf, 0, len); in single_sector_test()
77 if (rc != 0) { in single_sector_test()
81 if (memcmp(erased, buf, len) != 0) { in single_sector_test()
82 printf("Flash erase failed at offset 0x%x got 0x%x\n", in single_sector_test()
92 if (rc != 0) { in single_sector_test()
97 memset(buf, 0, len); in single_sector_test()
99 if (rc != 0) { in single_sector_test()
104 if (memcmp(expected, buf, len) == 0) { in single_sector_test()
125 const uint8_t expected[] = { 0x55, 0xaa, 0x66, 0x99 }; in multi_sector_test()
139 /* Full flash erase if SPI_FLASH_TEST_REGION_OFFSET = 0 and in multi_sector_test()
144 if (rc != 0) { in multi_sector_test()
148 memset(buf, 0, len); in multi_sector_test()
153 if (rc != 0) { in multi_sector_test()
157 if (memcmp(erased, buf, len) != 0) { in multi_sector_test()
158 printf("Flash erase failed at offset 0x%x got 0x%x\n", in multi_sector_test()
172 printf("Attempting to write %zu bytes at offset 0x%x\n", len, offs); in multi_sector_test()
174 if (rc != 0) { in multi_sector_test()
179 memset(buf, 0, len); in multi_sector_test()
181 if (rc != 0) { in multi_sector_test()
186 if (memcmp(expected, buf, len) == 0) { in multi_sector_test()
213 return 0; in main()
223 return 0; in main()