diff options
author | Fredrik Thulin <fredrik@thulin.net> | 2016-06-08 18:46:06 +0200 |
---|---|---|
committer | Fredrik Thulin <fredrik@thulin.net> | 2016-06-08 18:46:06 +0200 |
commit | b97ba86151439a187c047353dc75d3cf2020043d (patch) | |
tree | 0f2d45b32beee04a0546dd8b5288786d6ae2a47d /stm-keystore.h | |
parent | e1855dcbc60fe1fbc29a2d193ef6f5d87a7f6f51 (diff) |
Test code for ks_flash in corresponding branch of libhal.
Diffstat (limited to 'stm-keystore.h')
-rw-r--r-- | stm-keystore.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stm-keystore.h b/stm-keystore.h index 2c493d2..0c04481 100644 --- a/stm-keystore.h +++ b/stm-keystore.h @@ -40,6 +40,7 @@ #define KEYSTORE_PAGE_SIZE N25Q128_PAGE_SIZE #define KEYSTORE_SECTOR_SIZE N25Q128_SECTOR_SIZE +#define KEYSTORE_NUM_SECTORS N25Q128_NUM_SECTORS /* Pins connected to the FPGA config memory (SPI flash) */ #define KSM_PROM_CS_N_Pin GPIO_PIN_0 @@ -56,6 +57,6 @@ extern SPI_HandleTypeDef hspi_keystore; extern int keystore_check_id(void); extern int keystore_read_data(uint32_t offset, uint8_t *buf, const uint32_t len); extern int keystore_write_data(uint32_t offset, const uint8_t *buf, const uint32_t len); -extern int keystore_erase_sectors(int num); +extern int keystore_erase_sectors(uint32_t start, uint32_t stop); #endif /* __STM32_KEYSTORE_H */ |