From ac2357b001b970ff281d05566697c3d73f66ea4a Mon Sep 17 00:00:00 2001 From: Fredrik Thulin Date: Sat, 21 May 2016 14:40:11 +0200 Subject: Add code to test reading, writing and erasing keystore data. --- stm-keystore.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'stm-keystore.c') diff --git a/stm-keystore.c b/stm-keystore.c index 19c5ccc..575cda0 100644 --- a/stm-keystore.c +++ b/stm-keystore.c @@ -45,6 +45,11 @@ int keystore_check_id() return n25q128_check_id(&keystore_ctx); } +int keystore_read_data(uint32_t offset, uint8_t *buf, const uint32_t len) +{ + return n25q128_read_data(&keystore_ctx, offset, buf, len); +} + int keystore_write_data(uint32_t offset, const uint8_t *buf, const uint32_t len) { return n25q128_write_data(&keystore_ctx, offset, buf, len); -- cgit v1.2.3