aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/SPC563Mxx/SPI/main.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-03-27 11:54:40 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-03-27 11:54:40 +0000
commit72fee26a32402aea500c0a925021694f0bb18776 (patch)
tree20428ee873abf4e3ab9c2804a63d3fb012bded26 /testhal/SPC563Mxx/SPI/main.c
parent0fc403c55a7aa76ef509dffd614ba99785010d1e (diff)
downloadChibiOS-72fee26a32402aea500c0a925021694f0bb18776.tar.gz
ChibiOS-72fee26a32402aea500c0a925021694f0bb18776.tar.bz2
ChibiOS-72fee26a32402aea500c0a925021694f0bb18776.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5507 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/SPC563Mxx/SPI/main.c')
-rw-r--r--testhal/SPC563Mxx/SPI/main.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/testhal/SPC563Mxx/SPI/main.c b/testhal/SPC563Mxx/SPI/main.c
index cd36b2ad1..9ddb9761a 100644
--- a/testhal/SPC563Mxx/SPI/main.c
+++ b/testhal/SPC563Mxx/SPI/main.c
@@ -25,14 +25,24 @@
* Maximum speed SPI configuration (21MHz, CPHA=0, CPOL=0, MSb first).
*/
static const SPIConfig hs_spicfg = {
- NULL
+ NULL,
+ 0,
+ 0,
+ 0, /* MCR. */
+ SPC5_CTAR_FMSZ(8) | SPC5_CTAR_PBR_PRE2 | SPC5_CTAR_BR_DIV2, /* CTAR0. */
+ 0 /* PUSHR. */
};
/*
* Low speed SPI configuration (328.125kHz, CPHA=0, CPOL=0, MSb first).
*/
static const SPIConfig ls_spicfg = {
- NULL
+ NULL,
+ 0,
+ 0,
+ 0, /* MCR. */
+ SPC5_CTAR_FMSZ(8) | SPC5_CTAR_PBR_PRE2 | SPC5_CTAR_BR_DIV256, /* CTAR0. */
+ 0 /* PUSHR. */
};
/*