diff options
author | Paul Selkirk <paul@psgd.org> | 2017-02-22 14:11:12 -0500 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2017-02-22 17:45:31 -0500 |
commit | 189df371631a2b7bef91803d449e47470ad6a7bf (patch) | |
tree | 1986828d38cdd6507c96640f6370b433be720892 /stm-keystore.h | |
parent | 56fcfdf3bec384a74eb9deb070f342142bbacff3 (diff) |
Refactor flash code.
Diffstat (limited to 'stm-keystore.h')
-rw-r--r-- | stm-keystore.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/stm-keystore.h b/stm-keystore.h index f27687a..419e12e 100644 --- a/stm-keystore.h +++ b/stm-keystore.h @@ -3,7 +3,7 @@ * --------- * Functions and defines for accessing the keystore memory. * - * Copyright (c) 2016, NORDUnet A/S All rights reserved. + * Copyright (c) 2016-2017, NORDUnet A/S All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -60,8 +60,11 @@ 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(uint32_t start, uint32_t stop); -extern int keystore_erase_subsectors(uint32_t start, uint32_t stop); +extern int keystore_erase_subsector(uint32_t subsector_offset); +extern int keystore_erase_sector(uint32_t sector_offset); extern int keystore_erase_bulk(void); +/* Deprecated, will be removed. */ +extern int keystore_erase_subsectors(uint32_t start, uint32_t stop); + #endif /* __STM32_KEYSTORE_H */ |