diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-05-23 15:20:39 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-05-23 15:20:39 +0000 |
commit | 141f14c79a836c841b70a9fbf90016db9d947cb9 (patch) | |
tree | 14864f4a4871dad91424ad403a251d7cf6f0ce44 /testhal/SPC563Mxx/SPI/main.c | |
parent | ec80f9b8a4b1e82fdc7896c70064c39374522cd1 (diff) | |
download | ChibiOS-141f14c79a836c841b70a9fbf90016db9d947cb9.tar.gz ChibiOS-141f14c79a836c841b70a9fbf90016db9d947cb9.tar.bz2 ChibiOS-141f14c79a836c841b70a9fbf90016db9d947cb9.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5750 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/SPC563Mxx/SPI/main.c')
-rw-r--r-- | testhal/SPC563Mxx/SPI/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testhal/SPC563Mxx/SPI/main.c b/testhal/SPC563Mxx/SPI/main.c index d58cb08c0..8a21eb918 100644 --- a/testhal/SPC563Mxx/SPI/main.c +++ b/testhal/SPC563Mxx/SPI/main.c @@ -116,6 +116,11 @@ int main(void) { txbuf[i] = (uint8_t)i;
spiStart(&SPID2, &hs_spicfg);
+ SIU.PCR[102].R = PAL_MODE_OUTPUT_ALTERNATE(1); /* SCK */
+ SIU.PCR[103].R = PAL_MODE_OUTPUT_ALTERNATE(1); /* SIN */
+ SIU.PCR[104].R = PAL_MODE_OUTPUT_ALTERNATE(1); /* SOUT */
+ SIU.PCR[105].R = PAL_MODE_OUTPUT_ALTERNATE(1); /* PCS[0] */
+
spiExchange(&SPID2, 4, txbuf, rxbuf);
spiExchange(&SPID2, 4, txbuf, rxbuf);
spiExchange(&SPID2, 4, txbuf, rxbuf);
|