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.
Diff: src/admw_1001.c
- Revision:
- 48:5731f1aa2c5a
- Parent:
- 45:f5f553b8c0d5
- Child:
- 50:d84305e5e1c0
--- a/src/admw_1001.c Thu Feb 06 00:29:29 2020 +0000 +++ b/src/admw_1001.c Thu Feb 06 11:01:37 2020 +0000 @@ -645,10 +645,9 @@ admw_TimeDelayUsec(ADMW1001_HOST_COMMS_XFER_DELAY); } while ((commandResponse[0] != ADMW1001_HOST_COMMS_CMD_RESP_0) || (commandResponse[1] != ADMW1001_HOST_COMMS_CMD_RESP_1)); - + for (unsigned i = 0; i < nRequested; i++) { bool bHoldCs = true; - /* Keep the CS signal asserted for all but the last sample */ if ((i + 1) == nRequested) bHoldCs = false; @@ -691,7 +690,7 @@ nValidSamples++; - admw_TimeDelayUsec(ADMW1001_HOST_COMMS_XFER_DELAY); + admw_TimeDelayUsec(30); } *pnReturned = nValidSamples; @@ -778,8 +777,8 @@ nAddress); return eRet; } - - admw_TimeDelayUsec(ADMW1001_HOST_COMMS_XFER_DELAY); + wait_ms(100); + //admw_TimeDelayUsec(ADMW1001_HOST_COMMS_XFER_DELAY); } while ((commandResponse[0] != ADMW1001_HOST_COMMS_CMD_RESP_0) || (commandResponse[1] != ADMW1001_HOST_COMMS_CMD_RESP_1));