diff options
Diffstat (limited to 'tests/unit/stubs/nvs_flash.h')
| -rw-r--r-- | tests/unit/stubs/nvs_flash.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/unit/stubs/nvs_flash.h b/tests/unit/stubs/nvs_flash.h new file mode 100644 index 0000000..4424a9a --- /dev/null +++ b/tests/unit/stubs/nvs_flash.h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #ifndef STUBS_NVS_FLASH_H | ||
| 2 | #define STUBS_NVS_FLASH_H | ||
| 3 | |||
| 4 | #include "esp_err.h" | ||
| 5 | |||
| 6 | #define ESP_ERR_NVS_NO_FREE_PAGES 0x1101 | ||
| 7 | #define ESP_ERR_NVS_NEW_VERSION_FOUND 0x1102 | ||
| 8 | |||
| 9 | static inline esp_err_t nvs_flash_init(void) { return ESP_OK; } | ||
| 10 | static inline esp_err_t nvs_flash_erase(void) { return ESP_OK; } | ||
| 11 | |||
| 12 | #endif | ||