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: src/d7a_fs.cpp
- Revision:
- 79:82b01c1a62f6
- Parent:
- 78:f1c0affd99e7
- Child:
- 83:f4054d0b29ba
--- a/src/d7a_fs.cpp Wed Dec 21 14:11:09 2016 +0000
+++ b/src/d7a_fs.cpp Wed Dec 21 15:08:51 2016 +0000
@@ -6,6 +6,13 @@
#include "d7a_fs.h"
#include "d7a.h"
+#if 0
+ #define FS_DPRINT(...) DPRINT(__VA_ARGS__)
+ #define FS_DPRINT_DATA(...) DPRINT_DATA(__VA_ARGS__)
+#else
+ #define FS_DPRINT(...);
+ #define FS_DPRINT_DATA(...);
+#endif
#define FS_MAX_FILE_QTY 256
#define FS_MAX_MIRROR_QTY 32
@@ -136,9 +143,9 @@
{
case KAL_COM_FLOW_FS_CMD:
d7a_fs_com_req_t* req = (d7a_fs_com_req_t*)pkt->buffer;
- DPRINT("Rfs[%d](%d) cmd:%d\n", req->fid, req->id, req->cmd);
+ FS_DPRINT("Rfs[%d](%d) cmd:%d\n", req->fid, req->id, req->cmd);
//dbg_print_data("%02X ", (uint8_t*)req, sizeof(d7a_fs_com_req_t));
- //DPRINT("\r\n");
+ //FS_DPRINT("\r\n");
d7a_fs_com_resp_t buf = (d7a_fs_com_resp_t) {.id = req->id, .cmd = FS_OP_RETSTAT};
// Error management makes sense here as we face peer-requests,
@@ -188,7 +195,7 @@
}
else if (req->cmd == FS_OP_TOUCH)
{
- DPRINT("PS Touch f:%d o:%d s:%d\r\n", req->fid, req->offset, req->length);
+ FS_DPRINT("PS Touch f:%d o:%d s:%d\r\n", req->fid, req->offset, req->length);
//buf.length = g_fs_callback->touch_file(req->fid, req->offset, req->length);
d7a_fs_msg((uint8_t*)&buf, OP_SIZE_RETSTAT, KAL_COM_FLOW_FS_RESP);
}
