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:
- 5:86bcf189bbcd
- Parent:
- 4:8e796b751cd3
--- a/spi_api_multibyte.c Thu Jun 01 07:59:21 2017 +0000 +++ b/spi_api_multibyte.c Tue Jun 13 04:17:45 2017 +0000 @@ -79,11 +79,10 @@ uint32_t event; #endif } spi_info_t; - - #define TEST_STRING "012" //Tsungta, handle 32 bytes per SPI CS cycle - #define DATA_LENGTH 16 + + #define DATA_LENGTH 224 uint8_t m_tx_buf[DATA_LENGTH]; /**< TX buffer. */ - uint8_t m_rx_buf[sizeof(TEST_STRING)+1]; /**< RX buffer. */ + uint8_t m_rx_buf[DATA_LENGTH+1]; /**< RX buffer. */ int m_length = sizeof(m_tx_buf); /**< Transfer length. */ int receive_bytes;