git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13018 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
764ff2ab16
commit
75d0dbad44
|
@ -27,7 +27,7 @@
|
||||||
<link>
|
<link>
|
||||||
<name>board</name>
|
<name>board</name>
|
||||||
<type>2</type>
|
<type>2</type>
|
||||||
<locationURI>CHIBIOS/os/hal/boards/ST_NUCLEO64_G747RE</locationURI>
|
<locationURI>CHIBIOS/os/hal/boards/ST_NUCLEO64_G474RE</locationURI>
|
||||||
</link>
|
</link>
|
||||||
<link>
|
<link>
|
||||||
<name>os</name>
|
<name>os</name>
|
||||||
|
|
|
@ -99,13 +99,13 @@ include $(CHIBIOS)/os/license/license.mk
|
||||||
# Startup files.
|
# Startup files.
|
||||||
include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32g4xx.mk
|
include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32g4xx.mk
|
||||||
# HAL-OSAL files (optional).
|
# HAL-OSAL files (optional).
|
||||||
#include $(CHIBIOS)/os/hal/hal.mk
|
include $(CHIBIOS)/os/hal/hal.mk
|
||||||
#include $(CHIBIOS)/os/hal/ports/STM32/STM32G0xx/platform.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/STM32G4xx/platform.mk
|
||||||
#include $(CHIBIOS)/os/hal/boards/ST_NUCLEO64_G071RB/board.mk
|
include $(CHIBIOS)/os/hal/boards/ST_NUCLEO64_G474RE/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_v6m.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
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
|
@ -114,7 +114,7 @@ include $(CHIBIOS)/tools/mk/autobuild.mk
|
||||||
#include $(CHIBIOS)/test/oslib/oslib_test.mk
|
#include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(STARTUPLD)/STM32G071xB.ld
|
LDSCRIPT= $(STARTUPLD)/STM32G474xE.ld
|
||||||
|
|
||||||
# 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
|
||||||
# setting.
|
# setting.
|
||||||
|
@ -150,10 +150,10 @@ CPPWARN = -Wall -Wextra -Wundef
|
||||||
#
|
#
|
||||||
|
|
||||||
# List all user C define here, like -D_DEBUG=1
|
# List all user C define here, like -D_DEBUG=1
|
||||||
UDEFS = -DSTM32G474xx
|
UDEFS =
|
||||||
|
|
||||||
# Define ASM defines here
|
# Define ASM defines here
|
||||||
UADEFS = -DSTM32G474xx
|
UADEFS =
|
||||||
|
|
||||||
# List all user directories here
|
# List all user directories here
|
||||||
UINCDIR =
|
UINCDIR =
|
||||||
|
|
|
@ -0,0 +1,42 @@
|
||||||
|
# Required platform files.
|
||||||
|
PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
|
||||||
|
$(CHIBIOS)/os/hal/ports/STM32/STM32G4xx/stm32_isr.c \
|
||||||
|
$(CHIBIOS)/os/hal/ports/STM32/STM32G4xx/hal_lld.c
|
||||||
|
|
||||||
|
# Required include directories.
|
||||||
|
PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
|
||||||
|
$(CHIBIOS)/os/hal/ports/STM32/STM32G4xx
|
||||||
|
|
||||||
|
# Optional platform files.
|
||||||
|
ifeq ($(USE_SMART_BUILD),yes)
|
||||||
|
|
||||||
|
# Configuration files directory
|
||||||
|
ifeq ($(HALCONFDIR),)
|
||||||
|
ifeq ($(CONFDIR),)
|
||||||
|
HALCONFDIR = .
|
||||||
|
else
|
||||||
|
HALCONFDIR := $(CONFDIR)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
HALCONF := $(strip $(shell cat $(HALCONFDIR)/halconf.h | egrep -e "\#define"))
|
||||||
|
|
||||||
|
else
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Drivers compatible with the platform.
|
||||||
|
#include $(CHIBIOS)/os/hal/ports/STM32/LLD/ADCv1/driver.mk
|
||||||
|
#include $(CHIBIOS)/os/hal/ports/STM32/LLD/DACv1/driver.mk
|
||||||
|
#include $(CHIBIOS)/os/hal/ports/STM32/LLD/DMAv1/driver.mk
|
||||||
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/EXTIv1/driver.mk
|
||||||
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/GPIOv2/driver.mk
|
||||||
|
#include $(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv2/driver.mk
|
||||||
|
#include $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv2/driver.mk
|
||||||
|
#include $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2/driver.mk
|
||||||
|
#include $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/driver.mk
|
||||||
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/driver.mk
|
||||||
|
#include $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/driver.mk
|
||||||
|
|
||||||
|
# Shared variables
|
||||||
|
ALLCSRC += $(PLATFORMSRC)
|
||||||
|
ALLINC += $(PLATFORMINC)
|
Loading…
Reference in New Issue