an old afLib which supports both SPI and UART
Revision 1:112741fe45d1, committed 2018-04-23
- Comitter:
- Rhyme
- Date:
- Mon Apr 23 06:15:05 2018 +0000
- Parent:
- 0:6f371c791202
- Commit message:
- afLib1.3 first mbed version with working UART
Changed in this revision
afLib.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/afLib.cpp Tue Mar 20 06:47:25 2018 +0000 +++ b/afLib.cpp Mon Apr 23 06:15:05 2018 +0000 @@ -476,7 +476,7 @@ */ void afLib::runStateMachine(void) { if (_interrupts_pending > 0) { - //_theLog->printf("_interrupts_pending: %d\n",_interrupts_pending ); +// _theLog->printf("_interrupts_pending: %d\n",_interrupts_pending ); switch (_state) { case STATE_IDLE: @@ -548,7 +548,7 @@ _txStatus->setBytesToRecv(0); result = _theTransport->exchangeStatus(_txStatus, _rxStatus); - + if (result == afSUCCESS && _rxStatus->isValid() && inSync(_txStatus, _rxStatus)) { syncRetries = 0; // Flag that sync completed. _state = STATE_STATUS_ACK; @@ -560,8 +560,8 @@ _state = STATE_STATUS_SYNC; lastSync = millis(); syncRetries++; - //_txStatus->dumpBytes(); - //_rxStatus->dumpBytes(); + // _txStatus->dumpBytes(); + // _rxStatus->dumpBytes(); } printState(_state); }