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/mbed/admw_spi.cpp
- Revision:
- 51:e013f4d2fb9a
- Parent:
- 48:5731f1aa2c5a
--- a/src/mbed/admw_spi.cpp Mon Feb 17 11:23:39 2020 +0000
+++ b/src/mbed/admw_spi.cpp Fri Mar 06 17:03:18 2020 +0000
@@ -1,5 +1,5 @@
/******************************************************************************
-Copyright 2017 (c) Analog Devices, Inc.
+Copyright 2019 (c) Analog Devices, Inc.
All rights reserved.
@@ -106,22 +106,15 @@
pCtx->_spi->format(ADMW_SPI_FRAME_SIZE, 1);
int rc = 0;
-
- *(pCtx->_wakeup) = 1;
- wait_ms(0.03);
*(pCtx->_cs) = 0;
-
-
rc = pCtx->_spi->write((char*)(pTxData), pTxData ? nLength : 0,
(char*)(pRxData), pRxData ? nLength : 0);
if ((rc < 0) || !bCsHold)
*(pCtx->_cs) = 1;
- *(pCtx->_wakeup) = 0;
-
if (rc < 0)
{
ADMW_LOG_ERROR("Failed to complete SPI transfer");
@@ -147,9 +140,7 @@
int rc = 0;
SpiContext_t *pCtx = (SpiContext_t*)hDevice;
-
- *(pCtx->_wakeup) = 1;
- wait_ms(0.03);
+
*(pCtx->_cs) = 0;
rc = pCtx->_spi->write((char*)(pTxData), pTxData ? nLength : 0,
@@ -157,9 +148,7 @@
if ((rc < 0) || !bCsHold)
*(pCtx->_cs) = 1;
-
- *(pCtx->_wakeup) = 0;
-
+
if (rc < 0)
{
ADMW_LOG_ERROR("Failed to complete SPI transfer");
@@ -190,4 +179,4 @@
/*!
* @}
- */
\ No newline at end of file
+ */