diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-05-13 12:23:22 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-05-13 12:23:22 +0000 |
commit | b547d645c8200c4a7bf638ef042acc3d1e3f3560 (patch) | |
tree | 33c2240b548c21a90926c31908db135fa5efe429 /demos/STM32 | |
parent | 2dfa69324fd711edc3343ecfa512f257e82ab588 (diff) | |
download | ChibiOS-b547d645c8200c4a7bf638ef042acc3d1e3f3560.tar.gz ChibiOS-b547d645c8200c4a7bf638ef042acc3d1e3f3560.tar.bz2 ChibiOS-b547d645c8200c4a7bf638ef042acc3d1e3f3560.zip |
Updated STM32/RT-STM32L152RE-NUCLEO64/mcuconf.h
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9474 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/STM32')
-rw-r--r-- | demos/STM32/RT-STM32L152RE-NUCLEO64/mcuconf.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/demos/STM32/RT-STM32L152RE-NUCLEO64/mcuconf.h b/demos/STM32/RT-STM32L152RE-NUCLEO64/mcuconf.h index 6e60725aa..e014ee8a8 100644 --- a/demos/STM32/RT-STM32L152RE-NUCLEO64/mcuconf.h +++ b/demos/STM32/RT-STM32L152RE-NUCLEO64/mcuconf.h @@ -157,10 +157,13 @@ #define STM32_SERIAL_USE_USART1 FALSE
#define STM32_SERIAL_USE_USART2 TRUE
#define STM32_SERIAL_USE_USART3 FALSE
+#define STM32_SERIAL_USE_UART3 FALSE
+#define STM32_SERIAL_USE_UART3 FALSE
#define STM32_SERIAL_USART1_PRIORITY 12
#define STM32_SERIAL_USART2_PRIORITY 12
#define STM32_SERIAL_USART3_PRIORITY 12
-
+#define STM32_SERIAL_UART4_PRIORITY 12
+#define STM32_SERIAL_UART5_PRIORITY 12
/*
* SPI driver system settings.
*/
@@ -184,12 +187,22 @@ #define STM32_UART_USE_USART1 FALSE
#define STM32_UART_USE_USART2 FALSE
#define STM32_UART_USE_USART3 FALSE
+#define STM32_UART_USE_UART4 TRUE
+#define STM32_UART_USE_UART5 TRUE
#define STM32_UART_USART1_IRQ_PRIORITY 12
#define STM32_UART_USART2_IRQ_PRIORITY 12
#define STM32_UART_USART3_IRQ_PRIORITY 12
#define STM32_UART_USART1_DMA_PRIORITY 0
#define STM32_UART_USART2_DMA_PRIORITY 0
#define STM32_UART_USART3_DMA_PRIORITY 0
+#define STM32_UART_USART1_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 5)
+#define STM32_UART_USART1_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 4)
+#define STM32_UART_USART2_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 6)
+#define STM32_UART_USART2_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 7)
+#define STM32_UART_UART4_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 3)
+#define STM32_UART_UART4_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 5)
+#define STM32_UART_UART5_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
+#define STM32_UART_UART5_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 1)
#define STM32_UART_DMA_ERROR_HOOK(uartp) osalSysHalt("DMA failure")
/*
|