STM32L0 - Cortex M0+ Support

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

User avatar
cruz_91
Posts: 16
Joined: Tue Dec 25, 2012 10:00 pm

Re: STM32L0 - Cortex M0+ Support

Post 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
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32L0 - Cortex M0+ Support

Post by Giovanni »

Hi,

Fixed in repository, thanks.

Giovanni
Post Reply