aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/SPC563Mxx/SPI/main.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-06-03 14:40:57 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-06-03 14:40:57 +0000
commit52cac10dbce9b24df71712ed15430387e57dd01e (patch)
tree71892e06d025fdb9771a749631e8127b33e772d1 /testhal/SPC563Mxx/SPI/main.c
parent53d4dfdc100bd69672baeabe5a23b7df851402fb (diff)
downloadChibiOS-52cac10dbce9b24df71712ed15430387e57dd01e.tar.gz
ChibiOS-52cac10dbce9b24df71712ed15430387e57dd01e.tar.bz2
ChibiOS-52cac10dbce9b24df71712ed15430387e57dd01e.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5804 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/SPC563Mxx/SPI/main.c')
-rw-r--r--testhal/SPC563Mxx/SPI/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/testhal/SPC563Mxx/SPI/main.c b/testhal/SPC563Mxx/SPI/main.c
index b71f85d78..25b67546b 100644
--- a/testhal/SPC563Mxx/SPI/main.c
+++ b/testhal/SPC563Mxx/SPI/main.c
@@ -24,10 +24,9 @@ static const SPIConfig hs_spicfg = {
NULL,
0,
0,
- SPC5_MCR_PCSIS0, /* MCR. */
SPC5_CTAR_CSSCK_DIV2 | SPC5_CTAR_ASC_DIV2 | SPC5_CTAR_FMSZ(8) |
SPC5_CTAR_PBR_PRE2 | SPC5_CTAR_BR_DIV2, /* CTAR0. */
- SPC5_PUSHR_CONT | SPC5_PUSHR_PCS(0) /* PUSHR. */
+ SPC5_PUSHR_CONT | SPC5_PUSHR_PCS(1) /* PUSHR. */
};
/*
@@ -37,7 +36,6 @@ static const SPIConfig ls_spicfg = {
NULL,
0,
0,
- SPC5_MCR_PCSIS0, /* MCR. */
SPC5_CTAR_CSSCK_DIV64 | SPC5_CTAR_ASC_DIV64 | SPC5_CTAR_FMSZ(8) |
SPC5_CTAR_PBR_PRE2 | SPC5_CTAR_BR_DIV256, /* CTAR0. */
SPC5_PUSHR_CONT | SPC5_PUSHR_PCS(0) /* PUSHR. */
@@ -119,6 +117,7 @@ int main(void) {
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] */
+ SIU.PCR[106].R = PAL_MODE_OUTPUT_ALTERNATE(1); /* PCS[1] */
/* Testing sending and receiving at the same time.*/
spiExchange(&SPID2, 4, txbuf, rxbuf);