Page 3 of 3

Re: STM32L0 - Cortex M0+ Support

Posted: Tue Sep 22, 2015 11:55 pm
by cruz_91
Yes, serial driver works good but there are some compilation problems with uart - missing brackets. There's patch.

Code: Select all

From f028bce10ba4fa6de315d871149623e080d2b7e7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Karol=20Laso=C5=84czyk?= <[email protected]>
Date: Wed, 23 Sep 2015 00:49:29 +0200
Subject: [PATCH] UART compilation fix

---
 os/hal/ports/STM32/STM32L0xx/stm32_registry.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/os/hal/ports/STM32/STM32L0xx/stm32_registry.h b/os/hal/ports/STM32/STM32L0xx/stm32_registry.h
index 27ee038..96bae0e 100644
--- a/os/hal/ports/STM32/STM32L0xx/stm32_registry.h
+++ b/os/hal/ports/STM32/STM32L0xx/stm32_registry.h
@@ -230,7 +230,7 @@
                                              STM32_DMA_STREAM_ID_MSK(1, 6))
 #define STM32_USART2_RX_DMA_CHN             0x00440000
 #define STM32_USART2_TX_DMA_MSK             (STM32_DMA_STREAM_ID_MSK(1, 4) |\
-                                             STM32_DMA_STREAM_ID_MSK(1, 7)
+                                             STM32_DMA_STREAM_ID_MSK(1, 7))
 #define STM32_USART2_TX_DMA_CHN             0x04004000
 
 #define STM32_HAS_USART3                    FALSE
@@ -459,7 +459,7 @@
                                              STM32_DMA_STREAM_ID_MSK(1, 6))
 #define STM32_USART2_RX_DMA_CHN             0x00440000
 #define STM32_USART2_TX_DMA_MSK             (STM32_DMA_STREAM_ID_MSK(1, 4) |\
-                                             STM32_DMA_STREAM_ID_MSK(1, 7)
+                                             STM32_DMA_STREAM_ID_MSK(1, 7))
 #define STM32_USART2_TX_DMA_CHN             0x04004000
 
 #define STM32_HAS_USART3                    FALSE
@@ -694,7 +694,7 @@
                                              STM32_DMA_STREAM_ID_MSK(1, 6))
 #define STM32_USART2_RX_DMA_CHN             0x00440000
 #define STM32_USART2_TX_DMA_MSK             (STM32_DMA_STREAM_ID_MSK(1, 4) |\
-                                             STM32_DMA_STREAM_ID_MSK(1, 7)
+                                             STM32_DMA_STREAM_ID_MSK(1, 7))
 #define STM32_USART2_TX_DMA_CHN             0x04004000
 
 #define STM32_HAS_USART3                    FALSE
--
1.9.1

Re: STM32L0 - Cortex M0+ Support

Posted: Wed Sep 23, 2015 8:55 am
by Giovanni
Hi,

Fixed in repository, thanks.

Giovanni