From c46634d324e3b2f4abcd6332b06a4545fa74f428 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 18 Dec 2009 13:46:06 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1431 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/serial_lld.c | 3 --- os/hal/platforms/STM32/spi_lld.c | 2 -- 2 files changed, 5 deletions(-) (limited to 'os') diff --git a/os/hal/platforms/STM32/serial_lld.c b/os/hal/platforms/STM32/serial_lld.c index 38a06b266..5d2aea67a 100644 --- a/os/hal/platforms/STM32/serial_lld.c +++ b/os/hal/platforms/STM32/serial_lld.c @@ -212,17 +212,14 @@ void sd_lld_init(void) { #if USE_STM32_USART1 sdObjectInit(&SD1, NULL, notify1); - GPIOA->CRH = (GPIOA->CRH & 0xFFFFF00F) | 0x000004B0; #endif #if USE_STM32_USART2 sdObjectInit(&SD2, NULL, notify2); - GPIOA->CRL = (GPIOA->CRL & 0xFFFF00FF) | 0x00004B00; #endif #if USE_STM32_USART3 sdObjectInit(&SD3, NULL, notify3); - GPIOB->CRH = (GPIOB->CRH & 0xFFFF00FF) | 0x00004B00; #endif } diff --git a/os/hal/platforms/STM32/spi_lld.c b/os/hal/platforms/STM32/spi_lld.c index 0a3876464..64343c8d7 100644 --- a/os/hal/platforms/STM32/spi_lld.c +++ b/os/hal/platforms/STM32/spi_lld.c @@ -192,7 +192,6 @@ void spi_lld_init(void) { SPID1.spd_dmarx = DMA1_Channel2; SPID1.spd_dmatx = DMA1_Channel3; SPID1.spd_dmaprio = STM32_SPI1_DMA_PRIORITY << 12; - GPIOA->CRL = (GPIOA->CRL & 0x000FFFFF) | 0xB4B00000; #endif #if USE_STM32_SPI2 @@ -204,7 +203,6 @@ void spi_lld_init(void) { SPID2.spd_dmarx = DMA1_Channel4; SPID2.spd_dmatx = DMA1_Channel5; SPID2.spd_dmaprio = STM32_SPI2_DMA_PRIORITY << 12; - GPIOB->CRH = (GPIOB->CRH & 0x000FFFFF) | 0xB4B00000; #endif } -- cgit v1.2.3