diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-03-28 12:09:21 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-03-28 12:09:21 +0000 |
commit | 03331a3fd71c5ea74485e482ea1b5cb7f35890bf (patch) | |
tree | 34172179e8aa1102c209a734c291d60fb0af783b /testhal/SPC563Mxx | |
parent | f571b507132cc77e401dee68535c2b9f3370c60c (diff) | |
download | ChibiOS-03331a3fd71c5ea74485e482ea1b5cb7f35890bf.tar.gz ChibiOS-03331a3fd71c5ea74485e482ea1b5cb7f35890bf.tar.bz2 ChibiOS-03331a3fd71c5ea74485e482ea1b5cb7f35890bf.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5513 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/SPC563Mxx')
-rw-r--r-- | testhal/SPC563Mxx/SPI/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testhal/SPC563Mxx/SPI/main.c b/testhal/SPC563Mxx/SPI/main.c index 23ccd435a..25c9a2ede 100644 --- a/testhal/SPC563Mxx/SPI/main.c +++ b/testhal/SPC563Mxx/SPI/main.c @@ -120,6 +120,8 @@ int main(void) { txbuf[i] = (uint8_t)i;
spiStart(&SPID2, &hs_spicfg); /* Setup transfer parameters. */
+ spiExchange(&SPID2, 4,
+ txbuf, rxbuf); /* Atomic transfer operations. */
spiExchange(&SPID2, 512,
txbuf, rxbuf); /* Atomic transfer operations. */
|