diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-03-27 11:54:40 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-03-27 11:54:40 +0000 |
commit | 72fee26a32402aea500c0a925021694f0bb18776 (patch) | |
tree | 20428ee873abf4e3ab9c2804a63d3fb012bded26 /testhal/SPC563Mxx/SPI | |
parent | 0fc403c55a7aa76ef509dffd614ba99785010d1e (diff) | |
download | ChibiOS-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')
-rw-r--r-- | testhal/SPC563Mxx/SPI/main.c | 14 | ||||
-rw-r--r-- | testhal/SPC563Mxx/SPI/mcuconf.h | 1 |
2 files changed, 13 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. */
};
/*
diff --git a/testhal/SPC563Mxx/SPI/mcuconf.h b/testhal/SPC563Mxx/SPI/mcuconf.h index 784a14d47..a7f5046e3 100644 --- a/testhal/SPC563Mxx/SPI/mcuconf.h +++ b/testhal/SPC563Mxx/SPI/mcuconf.h @@ -90,3 +90,4 @@ #define SPC5_SPI_DSPI2_DMA_PRIO 10
#define SPC5_SPI_DSPI1_DMA_IRQ_PRIO 10
#define SPC5_SPI_DSPI2_DMA_IRQ_PRIO 10
+#define SPC5_SPI_DMA_ERROR_HOOK(spip) chSysHalt()
|