aboutsummaryrefslogtreecommitdiffstats
path: root/testhal
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-01-04 14:14:18 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-01-04 14:14:18 +0000
commitbf6ef89792b3e7eeaad379ed54082126e2ed66ad (patch)
tree7b6775de821016f4170b2e7460ea3a673456db21 /testhal
parent289b799d03dd465ad502d85e614a3be92a1fe407 (diff)
downloadChibiOS-bf6ef89792b3e7eeaad379ed54082126e2ed66ad.tar.gz
ChibiOS-bf6ef89792b3e7eeaad379ed54082126e2ed66ad.tar.bz2
ChibiOS-bf6ef89792b3e7eeaad379ed54082126e2ed66ad.zip
Fixed wrong CS.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11222 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal')
-rw-r--r--testhal/STM32/multi/SPI/cfg-stm32h743_nucleo144/portab.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/testhal/STM32/multi/SPI/cfg-stm32h743_nucleo144/portab.c b/testhal/STM32/multi/SPI/cfg-stm32h743_nucleo144/portab.c
index 1a7538f77..152b669e8 100644
--- a/testhal/STM32/multi/SPI/cfg-stm32h743_nucleo144/portab.c
+++ b/testhal/STM32/multi/SPI/cfg-stm32h743_nucleo144/portab.c
@@ -39,8 +39,8 @@
*/
const SPIConfig hs_spicfg = {
NULL,
- GPIOB,
- 12,
+ GPIOD,
+ GPIOD_SPI1_NSS,
SPI_CFG1_MBR_DIV8 | SPI_CFG1_DSIZE_VALUE(7),
0
};
@@ -50,8 +50,8 @@ const SPIConfig hs_spicfg = {
*/
const SPIConfig ls_spicfg = {
NULL,
- GPIOB,
- 12,
+ GPIOD,
+ GPIOD_SPI1_NSS,
SPI_CFG1_MBR_DIV128 | SPI_CFG1_DSIZE_VALUE(7),
0
};
@@ -80,8 +80,8 @@ void portab_setup(void) {
palSetLineMode(LINE_SPI1_SCK, PAL_MODE_ALTERNATE(5) | PAL_STM32_OSPEED_HIGHEST);
palSetLineMode(LINE_SPI1_MISO, PAL_MODE_ALTERNATE(5) | PAL_STM32_OSPEED_HIGHEST);
palSetLineMode(LINE_SPI1_MOSI, PAL_MODE_ALTERNATE(5) | PAL_STM32_OSPEED_HIGHEST);
- palSetLineMode(LINE_SPI3_NSS, PAL_MODE_OUTPUT_PUSHPULL | PAL_STM32_OSPEED_HIGHEST);
- palSetLine(LINE_SPI3_NSS);
+ palSetLineMode(LINE_SPI1_NSS, PAL_MODE_OUTPUT_PUSHPULL | PAL_STM32_OSPEED_HIGHEST);
+ palSetLine(LINE_SPI1_NSS);
}
/** @} */