diff options
Diffstat (limited to 'src/flash/nor/imp.h')
-rw-r--r-- | src/flash/nor/imp.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/flash/nor/imp.h b/src/flash/nor/imp.h index 29d7f7eb..23ac476e 100644 --- a/src/flash/nor/imp.h +++ b/src/flash/nor/imp.h @@ -19,9 +19,18 @@ #ifndef FLASH_NOR_IMP_H #define FLASH_NOR_IMP_H -#include <flash/flash.h> +// this is an internal header +#include "core.h" -extern struct flash_driver *flash_drivers[]; -extern struct flash_bank *flash_banks; +/** + * Adds a new NOR bank to the global list of banks. + * @params bank The bank that should be added. + */ +void flash_bank_add(struct flash_bank *bank); + +/** + * @return The first bank in the global list. + */ +struct flash_bank *flash_bank_list(void); #endif // FLASH_NOR_IMP_H |