Skip to content

Commit 09f9c0e

Browse files
authored
Merge pull request #2219 from rgrover/improvements_to_mtd_k64_storage_driver
Improvements to k64 internal-flash storage driver
2 parents d1da7bc + 9182b6d commit 09f9c0e

File tree

2 files changed

+141
-62
lines changed

2 files changed

+141
-62
lines changed

hal/hal/storage_abstraction/Driver_Storage.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#ifndef __DRIVER_STORAGE_H
1919
#define __DRIVER_STORAGE_H
2020

21+
#include <stdint.h>
22+
2123
#ifdef __cplusplus
2224
extern "C" {
2325
#endif // __cplusplus
@@ -40,6 +42,7 @@ extern "C" {
4042
#define ARM_STORAGE_ERROR_NOT_ERASABLE (ARM_DRIVER_ERROR_SPECIFIC - 1) ///< Part (or all) of the range provided to Erase() isn't erasable.
4143
#define ARM_STORAGE_ERROR_NOT_PROGRAMMABLE (ARM_DRIVER_ERROR_SPECIFIC - 2) ///< Part (or all) of the range provided to ProgramData() isn't programmable.
4244
#define ARM_STORAGE_ERROR_PROTECTED (ARM_DRIVER_ERROR_SPECIFIC - 3) ///< Part (or all) of the range to Erase() or ProgramData() is protected.
45+
#define ARM_STORAGE_ERROR_RUNTIME_OR_INTEGRITY_FAILURE (ARM_DRIVER_ERROR_SPECIFIC - 4) ///< Runtime or sanity-check failure.
4346

4447
/**
4548
* \brief Attributes of the storage range within a storage block.

0 commit comments

Comments
 (0)