UART Command Parser Time Manager Data Store for SD Card for stm32l476 [it's not Licensed as BSD/GPLx]
Dependencies: mbed SDFileSystem
Diff: common/DeviceRepeater.cpp
- Revision:
- 8:b18a8764ecae
- Parent:
- 7:9ab8809f9693
- Child:
- 9:c81d0df866f5
--- a/common/DeviceRepeater.cpp Sat May 11 04:03:33 2019 +0000 +++ b/common/DeviceRepeater.cpp Sat May 11 04:20:42 2019 +0000 @@ -89,6 +89,8 @@ } // Device is in DEV_READY + /* TODO - add callback for changing READY to RUNNING */ + // start Runnig // Device is in DEV_RUNNING stat = DEV_RUNNING; @@ -116,6 +118,9 @@ if (stat != DEV_RUNNING) { /* Delaied Stop */ if (stat != DEV_REQ_STOP) { + /*****************************************************/ + /* TODO - add callback for changing RUNNING to READY */ + /*****************************************************/ repeat_remain_sec = 0; stat = DEV_READY; return; @@ -123,6 +128,9 @@ return; } if (repeat_remain_sec > 0) { + /*****************************************************/ + /* TODO - kick Senser and send XFD/XDS Data */ + /*****************************************************/ /** Sensing and Sending Data **/ repeat_remain_sec--; } @@ -131,6 +139,9 @@ repeat_remain_cnt--; if (repeat_remain_cnt == 0) { /* STOP ticking (0->1) */ + /*****************************************************/ + /* TODO - add callback for changing RUNNING to READY */ + /*****************************************************/ repeat_remain_sec = 0; stat = DEV_READY; pClock->detach(); @@ -140,7 +151,9 @@ } else if (repeat_remain_cnt == 0) { /* REFILL */ } else { + /*****************************************************/ /* TODO : FATAL */ + /*****************************************************/ while(1); } repeat_remain_sec = repeat_stride_sec;