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: spi_api_multibyte.c
- Revision:
- 4:8e796b751cd3
- Parent:
- 3:f9aa81ae7c4c
- Child:
- 5:86bcf189bbcd
--- a/spi_api_multibyte.c Thu Jun 01 03:28:29 2017 +0000 +++ b/spi_api_multibyte.c Thu Jun 01 07:59:21 2017 +0000 @@ -80,9 +80,8 @@ #endif } spi_info_t; -// #define TEST_STRING "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" //Tsungta, handle 32 bytes per SPI CS cycle #define TEST_STRING "012" //Tsungta, handle 32 bytes per SPI CS cycle - #define DATA_LENGTH 32 + #define DATA_LENGTH 16 uint8_t m_tx_buf[DATA_LENGTH]; /**< TX buffer. */ uint8_t m_rx_buf[sizeof(TEST_STRING)+1]; /**< RX buffer. */ int m_length = sizeof(m_tx_buf); /**< Transfer length. */ @@ -496,9 +495,8 @@ spi_info_t *p_spi_info = SPI_INFO(obj); MBED_ASSERT(!p_spi_info->master); - //m_tx_buf[] = &value;//Need TO FIX memcpy(m_tx_buf, value, bytes); - m_length = bytes;//Need TO FIX + m_length = bytes; } #if DEVICE_SPI_ASYNCH