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:
- 76:fda2e34ff19d
- Parent:
- 59:b42eae56b51b
- Child:
- 77:8c792719a1fc
diff -r 305024138382 -r fda2e34ff19d src/d7a_fs.cpp
--- a/src/d7a_fs.cpp Fri Dec 16 16:04:27 2016 +0000
+++ b/src/d7a_fs.cpp Tue Dec 20 09:30:14 2016 +0000
@@ -48,7 +48,7 @@
d7a_fs_ctx_t g_fs_ctx;
-void d7a_fs_thread(const void *p);
+void d7a_fs_thread();
d7a_errors_t d7a_fs_open(WriteFileFunction wf, ReadFileFunction rf)
{
@@ -56,8 +56,11 @@
g_fs_ctx.write_file = wf;
g_fs_ctx.read_file = rf;
- g_fs_ctx.thread = new Thread(d7a_fs_thread, NULL, osPriorityHigh, DEFAULT_STACK_SIZE*2);
+ g_fs_ctx.thread = new Thread(osPriorityHigh, DEFAULT_STACK_SIZE*2);
+ osStatus err = g_fs_ctx.thread->start(d7a_fs_thread);
+ ASSERT(err == osOK, "Failed to start d7a_fs_thread (err: %d)\r\n", err);
+
return D7A_ERR_NONE;
}
@@ -121,7 +124,7 @@
// | | flush | FID |
// | | retstat|status| length | <kal_fs_properties_t>
// | | retdat |status| length | datas... |
-void d7a_fs_thread(const void *p)
+void d7a_fs_thread()
{
FPRINT("(id:0x%08x)\r\n", osThreadGetId());
d7a_com_rx_msg_t* pkt;
