Skip to content

Commit

Permalink
[H7] Add UART support
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalentity committed Aug 2, 2020
1 parent b3d7e00 commit 6dc3ca0
Show file tree
Hide file tree
Showing 8 changed files with 506 additions and 13 deletions.
6 changes: 3 additions & 3 deletions make/mcu/STM32H7.mk
Original file line number Diff line number Diff line change
Expand Up @@ -183,16 +183,16 @@ MCU_COMMON_SRC = \
drivers/timer.c \
drivers/timer_stm32h7xx.c \
drivers/timer_impl_hal.c \
drivers/serial_uart_stm32h7xx.c \
drivers/serial_softserial.c \
drivers/serial_uart_hal.c \
# drivers/accgyro/accgyro.c \
# drivers/accgyro/accgyro_mpu.c \
# drivers/adc_stm32h7xx.c \
# drivers/bus_i2c_hal.c \
# drivers/dma_stm32h7xx.c \
# drivers/bus_spi_hal.c \
# drivers/uart_inverter.c \
# drivers/serial_uart_stm32h7xx.c \
# drivers/serial_softserial.c \
# drivers/serial_uart_hal.c \
# drivers/sdcard/sdmmc_sdio_h7xx.c

MCU_EXCLUDES = \
Expand Down
1 change: 1 addition & 0 deletions src/main/drivers/light_led.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include "platform.h"

#include "build/debug.h"
#include "drivers/io.h"
#include "io_impl.h"

Expand Down
2 changes: 1 addition & 1 deletion src/main/drivers/rcc.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

#include "build/debug.h"
#include "platform.h"
#include "rcc.h"

Expand Down
1 change: 0 additions & 1 deletion src/main/drivers/serial_uart_stm32f7xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ typedef struct uartDevice_s {
uint32_t irqPriority;
} uartDevice_t;

//static uartPort_t uartPort[MAX_UARTS];
#ifdef USE_UART1
static uartDevice_t uart1 =
{
Expand Down
Loading

0 comments on commit 6dc3ca0

Please sign in to comment.