| 82 | static uint8_t writeEntry(const char *domain, const char *key, uint8_t format, const uint8_t *value, uint16_t byteCount); |
| 83 | |
| 84 | static void resetStorage(void) |
| 85 | { |
| 86 | uint32_t magic = kStorageMagic; |
| 87 | |
| 88 | modSPIErase(kStorageStartOffset, kFlashSectorSize << 1); |
| 89 | modSPIWrite(kStorageStartOffset, sizeof(magic), (uint8_t *)&magic); |
| 90 | } |
| 91 | |
| 92 | static uint8_t findStorageBlock(uint32_t *offset) |
| 93 | { |
no test coverage detected