mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-30 11:37:06 +08:00
[uart] uart4 and 6 on stm32f4, generic set function (used on uart1)
This commit is contained in:
committed by
Felix Ruess
parent
e1bfef64c6
commit
60c78127f8
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user