move firmware source into source folder

master
Clyne 4 years ago
parent 9b926b81ef
commit d7285a20d9

5
.gitignore vendored

@ -1,6 +1,7 @@
build
**/.* **/.*
gui/stmdspgui
**/*.o **/*.o
**/*.so **/*.so
perf* perf*
build
eagle/*#*
gui/stmdspgui

@ -102,7 +102,7 @@ endif
# Imported source files and paths. # Imported source files and paths.
CHIBIOS := ./ChibiOS_20.3.2 CHIBIOS := ./ChibiOS_20.3.2
CONFDIR := ./cfg CONFDIR := ./source/cfg
BUILDDIR := ./build BUILDDIR := ./build
DEPDIR := ./.dep DEPDIR := ./.dep
@ -121,13 +121,16 @@ ifeq ($(TARGET_PLATFORM),H7)
else else
include $(CHIBIOS)/os/hal/ports/STM32/STM32L4xx/platform.mk include $(CHIBIOS)/os/hal/ports/STM32/STM32L4xx/platform.mk
endif endif
include ./board/board.mk include ./source/board/board.mk
include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk
# RTOS files (optional). # RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Auto-build files in ./source recursively. # Auto-build files in ./source recursively.
include $(CHIBIOS)/tools/mk/autobuild.mk #include $(CHIBIOS)/tools/mk/autobuild.mk
ALLCSRC += $(wildcard source/*.c)
ALLCPPSRC += $(wildcard source/*.cpp)
ALLASMSRC += $(wildcard source/*.s)
# Other files (optional). # Other files (optional).
#include $(CHIBIOS)/test/lib/test.mk #include $(CHIBIOS)/test/lib/test.mk
#include $(CHIBIOS)/test/rt/rt_test.mk #include $(CHIBIOS)/test/rt/rt_test.mk
@ -135,9 +138,9 @@ include $(CHIBIOS)/tools/mk/autobuild.mk
# Define linker script file here # Define linker script file here
ifeq ($(TARGET_PLATFORM),H7) ifeq ($(TARGET_PLATFORM),H7)
LDSCRIPT = STM32H723xG.ld LDSCRIPT = source/ld/STM32H723xG.ld
else else
LDSCRIPT = STM32L476xG.ld LDSCRIPT = source/ld/STM32L476xG.ld
endif endif
# C sources that can be compiled in ARM or THUMB mode depending on the global # C sources that can be compiled in ARM or THUMB mode depending on the global

@ -1,15 +1,15 @@
# List of all the board related files. # List of all the board related files.
ifeq ($(TARGET_PLATFORM),H7) ifeq ($(TARGET_PLATFORM),H7)
BOARDSRC = ./board/board_h7.c BOARDSRC = ./source/board/board_h7.c
else else
BOARDSRC = ./board/board_l4.c BOARDSRC = ./source/board/board_l4.c
endif endif
# Required include directories # Required include directories
ifeq ($(TARGET_PLATFORM),H7) ifeq ($(TARGET_PLATFORM),H7)
BOARDINC = ./board/h7 BOARDINC = ./source/board/h7
else else
BOARDINC = ./board/l4 BOARDINC = ./source/board/l4
endif endif
# Shared variables # Shared variables
Loading…
Cancel
Save