aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-11-02 21:18:17 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-11-02 21:18:17 +0000
commitc692c27eabe9e77be1c22dce2e1cb0685d7df429 (patch)
tree974f757afa07cf02049f4cdc7325a326d0cf644e /os
parentc98a36e315b5ec6d1685baedd956926297f7ecba (diff)
downloadChibiOS-c692c27eabe9e77be1c22dce2e1cb0685d7df429.tar.gz
ChibiOS-c692c27eabe9e77be1c22dce2e1cb0685d7df429.tar.bz2
ChibiOS-c692c27eabe9e77be1c22dce2e1cb0685d7df429.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1265 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/io/platforms/STM32/spi_lld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/io/platforms/STM32/spi_lld.c b/os/io/platforms/STM32/spi_lld.c
index 8cd7ba8e1..591ade2aa 100644
--- a/os/io/platforms/STM32/spi_lld.c
+++ b/os/io/platforms/STM32/spi_lld.c
@@ -185,7 +185,7 @@ void spi_lld_init(void) {
SPID1.spd_dmarx = DMA1_Channel2;
SPID1.spd_dmatx = DMA1_Channel3;
SPID1.spd_dmaprio = STM32_SPI1_DMA_PRIORITY << 12;
- GPIOA->CRH = (GPIOA->CRH & 0x000FFFFF) | 0xB4B00000;
+ GPIOA->CRL = (GPIOA->CRL & 0x000FFFFF) | 0xB4B00000;
#endif
#if USE_STM32_SPI2
@@ -195,7 +195,7 @@ void spi_lld_init(void) {
SPID2.spd_dmarx = DMA1_Channel4;
SPID2.spd_dmatx = DMA1_Channel5;
SPID2.spd_dmaprio = STM32_SPI2_DMA_PRIORITY << 12;
- GPIOB->CRL = (GPIOB->CRL & 0x000FFFFF) | 0xB4B00000;
+ GPIOB->CRH = (GPIOB->CRH & 0x000FFFFF) | 0xB4B00000;
#endif
}