From b97ba86151439a187c047353dc75d3cf2020043d Mon Sep 17 00:00:00 2001 From: Fredrik Thulin Date: Wed, 8 Jun 2016 18:46:06 +0200 Subject: Test code for ks_flash in corresponding branch of libhal. --- stm-keystore.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stm-keystore.h') 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 */ -- cgit v1.2.3