[uart] uart4 and 6 on stm32f4, generic set function (used on uart1)

This commit is contained in:
Gautier Hattenberger
2013-04-09 16:11:01 +02:00
committed by Felix Ruess
parent e1bfef64c6
commit 60c78127f8
5 changed files with 182 additions and 13 deletions
+4 -1
View File
@@ -37,7 +37,7 @@
#include "subsystems/radio_control.h"
#endif
#endif
#if defined USE_UART0 || defined USE_UART1 || defined USE_UART2 || defined USE_UART3 || defined USE_UART4 || defined USE_UART5
#if defined USE_UART0 || defined USE_UART1 || defined USE_UART2 || defined USE_UART3 || defined USE_UART4 || defined USE_UART5 || defined USE_UART6
#include "mcu_periph/uart.h"
#endif
#if defined USE_I2C0 || defined USE_I2C1 || defined USE_I2C2
@@ -88,6 +88,9 @@ void mcu_init(void) {
#ifdef USE_UART5
uart5_init();
#endif
#ifdef USE_UART6
uart6_init();
#endif
#ifdef USE_I2C0
i2c0_init();
#endif