added drivers

This commit is contained in:
2023-09-25 21:32:15 +02:00
parent 0d74fea761
commit 4829b04024
28 changed files with 6621 additions and 3 deletions

View File

@@ -67,11 +67,22 @@ Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart.c \
Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_uart_ex.c \
Core/Src/system_stm32f3xx.c
C_SOURCES += app/drivers/ad9833/ad9833.c
C_SOURCES += app/drivers/hw_button/hw_button.c
C_SOURCES += app/drivers/led/led.c
C_SOURCES += app/drivers/mcp41x/mcp41x.c
C_SOURCES += app/drivers/st7565/st7565.c
C_SOURCES += app/drivers/utils/printf/printf.c
C_SOURCES += app/drivers/utils/rtt/SEGGER_RTT.c
C_SOURCES += app/drivers/utils/rtt/SEGGER_RTT_printf.c
C_SOURCES += app/drivers/utils/ulog/ulog.c
C_SOURCES += app/display/display_gfx.c
C_SOURCES += app/display/font_gfx.c
# ASM sources
ASM_SOURCES = \
startup_stm32f303xe.s
#######################################
# binaries
#######################################
@@ -128,11 +139,21 @@ C_INCLUDES = \
-IDrivers/CMSIS/Device/ST/STM32F3xx/Include \
-IDrivers/CMSIS/Include
C_INCLUDES += -Iapp/drivers/ad9833
C_INCLUDES += -Iapp/drivers/hw_button
C_INCLUDES += -Iapp/drivers/led
C_INCLUDES += -Iapp/drivers/mcp41x
C_INCLUDES += -Iapp/drivers/st7565
C_INCLUDES += -Iapp/drivers/utils/printf
C_INCLUDES += -Iapp/drivers/utils/rtt
C_INCLUDES += -Iapp/drivers/utils/spi_cs
C_INCLUDES += -Iapp/drivers/utils/ulog
C_INCLUDES += -Iapp/display
# compile gcc flags
ASFLAGS = $(MCU) $(AS_DEFS) $(AS_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections
CFLAGS += $(MCU) $(C_DEFS) $(C_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections
CFLAGS += $(MCU) $(C_DEFS) $(C_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections -Wdouble-promotion
ifeq ($(DEBUG), 1)
CFLAGS += -g -gdwarf-2