diff --git a/os/hal/platforms/STM32/serial_lld.c b/os/hal/platforms/STM32/serial_lld.c index fdb99cbc8..a2eefc5db 100644 --- a/os/hal/platforms/STM32/serial_lld.c +++ b/os/hal/platforms/STM32/serial_lld.c @@ -98,17 +98,13 @@ static const SerialConfig default_config = static void usart_init(SerialDriver *sdp, const SerialConfig *config) { USART_TypeDef *u = sdp->usart; - /* - * Baud rate setting. - */ + /* Baud rate setting.*/ if (sdp->usart == USART1) u->BRR = STM32_USART1CLK / config->sc_speed; else u->BRR = STM32_PCLK / config->sc_speed; - /* - * Note that some bits are enforced. - */ + /* Note that some bits are enforced.*/ u->CR1 = config->sc_cr1 | USART_CR1_UE | USART_CR1_PEIE | USART_CR1_RXNEIE | USART_CR1_TE | USART_CR1_RE; @@ -215,9 +211,7 @@ static void serve_interrupt(SerialDriver *sdp) { static void usart_init(SerialDriver *sdp, const SerialConfig *config) { USART_TypeDef *u = sdp->usart; - /* - * Baud rate setting. - */ + /* Baud rate setting.*/ #if STM32_HAS_USART6 if ((sdp->usart == USART1) || (sdp->usart == USART6)) #else @@ -227,9 +221,7 @@ static void usart_init(SerialDriver *sdp, const SerialConfig *config) { else u->BRR = STM32_PCLK1 / config->sc_speed; - /* - * Note that some bits are enforced. - */ + /* Note that some bits are enforced.*/ u->CR1 = config->sc_cr1 | USART_CR1_UE | USART_CR1_PEIE | USART_CR1_RXNEIE | USART_CR1_TE | USART_CR1_RE; diff --git a/os/hal/platforms/STM32F0xx/hal_lld.h b/os/hal/platforms/STM32F0xx/hal_lld.h index 30a46fa79..f5c32a82d 100644 --- a/os/hal/platforms/STM32F0xx/hal_lld.h +++ b/os/hal/platforms/STM32F0xx/hal_lld.h @@ -223,18 +223,15 @@ */ /* ADC attributes.*/ #define STM32_HAS_ADC1 TRUE -#define STM32_ADC1_DMA_DEFAULT STM32_DMA_STREAM_ID(1, 0) #define STM32_ADC1_DMA_MSK (STM32_DMA_STREAM_ID_MSK(1, 0) | \ STM32_DMA_STREAM_ID_MSK(1, 1)) #define STM32_ADC1_DMA_CHN 0x00000000 #define STM32_HAS_ADC2 FALSE -#define STM32_ADC2_DMA_DEFAULT 0 #define STM32_ADC2_DMA_MSK 0x00000000 #define STM32_ADC2_DMA_CHN 0x00000000 #define STM32_HAS_ADC3 FALSE -#define STM32_ADC3_DMA_DEFAULT 0 #define STM32_ADC3_DMA_MSK 0x00000000 #define STM32_ADC3_DMA_CHN 0x00000000