aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/SPC563Mxx
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/SPC563Mxx')
-rw-r--r--testhal/SPC563Mxx/SPI/main.c11
-rw-r--r--testhal/SPC563Mxx/SPI/mcuconf.h2
2 files changed, 2 insertions, 11 deletions
diff --git a/testhal/SPC563Mxx/SPI/main.c b/testhal/SPC563Mxx/SPI/main.c
index ad38d01a6..b3a5eb524 100644
--- a/testhal/SPC563Mxx/SPI/main.c
+++ b/testhal/SPC563Mxx/SPI/main.c
@@ -100,17 +100,8 @@ int main(void) {
chSysInit();
/*
- * SPI2 I/O pins setup.
+ * SPI1 I/O pins setup.
*/
- palSetPadMode(GPIOB, 13, PAL_MODE_ALTERNATE(5) |
- PAL_STM32_OSPEED_HIGHEST); /* New SCK. */
- palSetPadMode(GPIOB, 14, PAL_MODE_ALTERNATE(5) |
- PAL_STM32_OSPEED_HIGHEST); /* New MISO. */
- palSetPadMode(GPIOB, 15, PAL_MODE_ALTERNATE(5) |
- PAL_STM32_OSPEED_HIGHEST); /* New MOSI. */
- palSetPadMode(GPIOB, 12, PAL_MODE_OUTPUT_PUSHPULL |
- PAL_STM32_OSPEED_HIGHEST); /* New CS. */
- palSetPad(GPIOB, 12);
/*
* Prepare transmit pattern.
diff --git a/testhal/SPC563Mxx/SPI/mcuconf.h b/testhal/SPC563Mxx/SPI/mcuconf.h
index 45501882b..eee35f514 100644
--- a/testhal/SPC563Mxx/SPI/mcuconf.h
+++ b/testhal/SPC563Mxx/SPI/mcuconf.h
@@ -84,4 +84,4 @@
/*
* SPI driver system settings.
*/
-#define SPC5_SPI_USE_DSPI1 FALSE
+#define SPC5_SPI_USE_DSPI1 TRUE