aboutsummaryrefslogtreecommitdiffstats
path: root/testhal
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-05-23 12:19:13 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-05-23 12:19:13 +0000
commitec80f9b8a4b1e82fdc7896c70064c39374522cd1 (patch)
treef88dccded73a1026139f6588a5f002986510681e /testhal
parentedbb1137a3651757e2722a143e60f0a8375e2201 (diff)
downloadChibiOS-ec80f9b8a4b1e82fdc7896c70064c39374522cd1.tar.gz
ChibiOS-ec80f9b8a4b1e82fdc7896c70064c39374522cd1.tar.bz2
ChibiOS-ec80f9b8a4b1e82fdc7896c70064c39374522cd1.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5749 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal')
-rw-r--r--testhal/SPC563Mxx/SPI/main.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/testhal/SPC563Mxx/SPI/main.c b/testhal/SPC563Mxx/SPI/main.c
index f50544b77..d58cb08c0 100644
--- a/testhal/SPC563Mxx/SPI/main.c
+++ b/testhal/SPC563Mxx/SPI/main.c
@@ -115,12 +115,13 @@ int main(void) {
for (i = 0; i < sizeof(txbuf); i++)
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. */
-
+ spiStart(&SPID2, &hs_spicfg);
+ spiExchange(&SPID2, 4, txbuf, rxbuf);
+ spiExchange(&SPID2, 4, txbuf, rxbuf);
+ spiExchange(&SPID2, 4, txbuf, rxbuf);
+ spiExchange(&SPID2, 4, txbuf, rxbuf);
+ spiExchange(&SPID2, 512, txbuf, rxbuf);
+#if 0
/*
* Starting the transmitter and receiver threads.
*/
@@ -128,7 +129,7 @@ int main(void) {
NORMALPRIO + 1, spi_thread_1, NULL);
chThdCreateStatic(spi_thread_2_wa, sizeof(spi_thread_2_wa),
NORMALPRIO + 1, spi_thread_2, NULL);
-
+#endif
/*
* Normal main() thread activity, in this demo it does nothing.
*/