Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of d7a_1x by
Diff: include/d7a_fs.h
- Revision:
- 45:b85384e7d825
- Parent:
- 44:8ebe6b70f932
- Child:
- 46:665391110051
--- a/include/d7a_fs.h Tue Aug 30 17:15:31 2016 +0000
+++ b/include/d7a_fs.h Thu Sep 01 09:35:27 2016 +0000
@@ -136,9 +136,9 @@
// Utils
-#define D7A_READ(fid,data,offset,len) do {\
- int status = d7a_alp_read_file((fid), (data), (offset), (len));\
- ASSERT(status == FS_STAT_OK, "Read file error %d (FID:%d OFF:%d LEN:%d)\r\n", status, (fid), (offset), (len));\
+#define D7A_READ(fid,offset,len,data) do {\
+ int8_t status = d7a_alp_read_file((fid), (offset), (len), (uint8_t*)(data));\
+ ASSERT(!status, "Read file error %d (FID:%d OFF:%d LEN:%d)\r\n", status, (fid), (offset), (len));\
} while(0);
void d7a_fs_open(const d7a_fs_callbacks_t* config);
