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:
- 46:665391110051
- Parent:
- 45:b85384e7d825
- Child:
- 49:81d5bddb02f0
--- a/include/d7a_fs.h Thu Sep 01 09:35:27 2016 +0000
+++ b/include/d7a_fs.h Thu Sep 01 18:13:46 2016 +0000
@@ -137,12 +137,13 @@
// Utils
#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));\
+ d7a_errors_t status = d7a_alp_read_file((fid), (offset), (len), (uint8_t*)(data));\
+ ASSERT(status >= 0, "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);
void d7a_fs_new_pkt(d7a_com_rx_msg_t* pkt);
d7a_com_rx_msg_t* d7a_fs_wait_pkt( uint32_t millisec = osWaitForever );
+void d7a_fs_notif_done(const uint8_t file_id, const uint8_t error);
#endif
\ No newline at end of file
