diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-05-28 09:51:52 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-05-28 09:51:52 +0000 |
commit | 036f60f497d109038765567bad5b9dbe503e8326 (patch) | |
tree | 3aaf9e89e9c2ef4bb44283ec7a5eaa98877c5e1b /testhal | |
parent | c16062e326d35c438abf719e2371a3a55f868b71 (diff) | |
download | ChibiOS-036f60f497d109038765567bad5b9dbe503e8326.tar.gz ChibiOS-036f60f497d109038765567bad5b9dbe503e8326.tar.bz2 ChibiOS-036f60f497d109038765567bad5b9dbe503e8326.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5765 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal')
-rw-r--r-- | testhal/SPC563Mxx/SPI/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/testhal/SPC563Mxx/SPI/main.c b/testhal/SPC563Mxx/SPI/main.c index 77b6369d0..b0cbe773b 100644 --- a/testhal/SPC563Mxx/SPI/main.c +++ b/testhal/SPC563Mxx/SPI/main.c @@ -25,7 +25,8 @@ static const SPIConfig hs_spicfg = { 0,
0,
SPC5_MCR_PCSIS0, /* MCR. */
- SPC5_CTAR_FMSZ(8) | SPC5_CTAR_PBR_PRE2 | SPC5_CTAR_BR_DIV128, /* CTAR0. */
+ SPC5_CTAR_CSSCK_DIV64 | SPC5_CTAR_ASC_DIV64 | SPC5_CTAR_FMSZ(8) |
+ SPC5_CTAR_PBR_PRE2 | SPC5_CTAR_BR_DIV128, /* CTAR0. */
SPC5_PUSHR_CONT | SPC5_PUSHR_PCS(0) /* PUSHR. */
};
@@ -125,6 +126,7 @@ int main(void) { spiExchange(&SPID2, 4, txbuf, rxbuf);
spiExchange(&SPID2, 4, txbuf, rxbuf);
spiExchange(&SPID2, 4, txbuf, rxbuf);
+ spiExchange(&SPID2, 32, txbuf, rxbuf);
spiExchange(&SPID2, 512, txbuf, rxbuf);
#if 0
/*
|