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_sys.cpp
- Revision:
- 56:da34fc11e760
- Parent:
- 49:81d5bddb02f0
- Child:
- 58:38a366236bda
--- a/src/d7a_sys.cpp Wed Sep 07 09:32:01 2016 +0000 +++ b/src/d7a_sys.cpp Thu Sep 08 09:30:24 2016 +0000 @@ -18,7 +18,7 @@ void d7a_sys_thread(const void *p); -d7a_errors_t d7a_sys_open( void ) +d7a_errors_t d7a_sys_open(void) { FPRINT("\r\n"); @@ -27,6 +27,15 @@ return D7A_ERR_NONE; } +d7a_errors_t d7a_sys_close(void) +{ + FPRINT("\r\n"); + + g_sys_ctx.thread->terminate(); + + return D7A_ERR_NONE; +} + void d7a_sys_new_pkt(d7a_com_rx_msg_t* pkt) { FPRINT("\r\n");