git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7829 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
a03316cd01
commit
a4cef8ba42
|
@ -30,7 +30,7 @@ endif
|
||||||
|
|
||||||
# Enable this if you want link time optimizations (LTO)
|
# Enable this if you want link time optimizations (LTO)
|
||||||
ifeq ($(USE_LTO),)
|
ifeq ($(USE_LTO),)
|
||||||
USE_LTO = no
|
USE_LTO = yes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# If enabled, this option allows to compile the application in THUMB mode.
|
# If enabled, this option allows to compile the application in THUMB mode.
|
||||||
|
@ -105,26 +105,32 @@ PROJECT = ch
|
||||||
|
|
||||||
# Imported source files and paths
|
# Imported source files and paths
|
||||||
CHIBIOS = ../../..
|
CHIBIOS = ../../..
|
||||||
|
# Startup files.
|
||||||
|
include $(CHIBIOS)/os/common/ports/ARM/compilers/GCC/mk/startup_lpc214x.mk
|
||||||
|
# HAL-OSAL files (optional).
|
||||||
include $(CHIBIOS)/os/hal/hal.mk
|
include $(CHIBIOS)/os/hal/hal.mk
|
||||||
include $(CHIBIOS)/os/hal/boards/OLIMEX_LPC_P2148/board.mk
|
|
||||||
include $(CHIBIOS)/os/hal/ports/LPC/LPC214x/platform.mk
|
include $(CHIBIOS)/os/hal/ports/LPC/LPC214x/platform.mk
|
||||||
|
include $(CHIBIOS)/os/hal/boards/OLIMEX_LPC_P2148/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
|
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
|
||||||
|
# RTOS files (optional).
|
||||||
include $(CHIBIOS)/os/rt/rt.mk
|
include $(CHIBIOS)/os/rt/rt.mk
|
||||||
include $(CHIBIOS)/os/rt/ports/ARM/compilers/GCC/mk/port_lpc214x.mk
|
include $(CHIBIOS)/os/rt/ports/ARM/compilers/GCC/mk/port_generic.mk
|
||||||
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/test/rt/test.mk
|
include $(CHIBIOS)/test/rt/test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT = $(PORTLD)/LPC2148.ld
|
LDSCRIPT= $(STARTUPLD)/LPC2148.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.
|
||||||
CSRC = $(PORTSRC) \
|
CSRC = $(STARTUPSRC) \
|
||||||
$(KERNSRC) \
|
$(KERNSRC) \
|
||||||
$(TESTSRC) \
|
$(PORTSRC) \
|
||||||
$(HALSRC) \
|
|
||||||
$(OSALSRC) \
|
$(OSALSRC) \
|
||||||
|
$(HALSRC) \
|
||||||
$(PLATFORMSRC) \
|
$(PLATFORMSRC) \
|
||||||
$(BOARDSRC) \
|
$(BOARDSRC) \
|
||||||
|
$(TESTSRC) \
|
||||||
main.c
|
main.c
|
||||||
|
|
||||||
# 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
|
||||||
|
@ -152,10 +158,10 @@ TCSRC =
|
||||||
TCPPSRC =
|
TCPPSRC =
|
||||||
|
|
||||||
# List ASM source files here
|
# List ASM source files here
|
||||||
ASMSRC = $(PORTASM)
|
ASMSRC = $(STARTUPASM) $(PORTASM) $(OSALASM)
|
||||||
|
|
||||||
INCDIR = $(PORTINC) $(KERNINC) $(TESTINC) \
|
INCDIR = $(STARTUPINC) $(KERNINC) $(PORTINC) $(OSALINC) \
|
||||||
$(HALINC) $(OSALINC) $(PLATFORMINC) $(BOARDINC) \
|
$(HALINC) $(PLATFORMINC) $(BOARDINC) $(TESTINC) \
|
||||||
$(CHIBIOS)/os/various
|
$(CHIBIOS)/os/various
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -35,7 +35,7 @@ endif
|
||||||
|
|
||||||
# If enabled, this option allows to compile the application in THUMB mode.
|
# If enabled, this option allows to compile the application in THUMB mode.
|
||||||
ifeq ($(USE_THUMB),)
|
ifeq ($(USE_THUMB),)
|
||||||
USE_THUMB = yes
|
USE_THUMB = no
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Enable this if you want to see the full log while compiling.
|
# Enable this if you want to see the full log while compiling.
|
||||||
|
@ -105,16 +105,32 @@ PROJECT = ch
|
||||||
|
|
||||||
# Imported source files and paths
|
# Imported source files and paths
|
||||||
CHIBIOS = ../../..
|
CHIBIOS = ../../..
|
||||||
|
# Startup files.
|
||||||
|
include $(CHIBIOS)/os/common/ports/ARM/compilers/GCC/mk/startup_lpc214x.mk
|
||||||
|
# HAL-OSAL files (optional).
|
||||||
|
#include $(CHIBIOS)/os/hal/hal.mk
|
||||||
|
#include $(CHIBIOS)/os/hal/ports/LPC/LPC214x/platform.mk
|
||||||
|
#include $(CHIBIOS)/os/hal/boards/OLIMEX_LPC_P2148/board.mk
|
||||||
|
#include $(CHIBIOS)/os/hal/osal/rt/osal.mk
|
||||||
|
# RTOS files (optional).
|
||||||
include $(CHIBIOS)/os/rt/rt.mk
|
include $(CHIBIOS)/os/rt/rt.mk
|
||||||
include $(CHIBIOS)/os/rt/ports/ARM/compilers/GCC/mk/port_generic.mk
|
include $(CHIBIOS)/os/rt/ports/ARM/compilers/GCC/mk/port_generic.mk
|
||||||
|
# Other files (optional).
|
||||||
|
#include $(CHIBIOS)/test/rt/test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= ch.ld
|
LDSCRIPT= $(STARTUPLD)/LPC2148.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.
|
||||||
CSRC = $(PORTSRC) \
|
CSRC = $(STARTUPSRC) \
|
||||||
$(KERNSRC) \
|
$(KERNSRC) \
|
||||||
|
$(PORTSRC) \
|
||||||
|
$(OSALSRC) \
|
||||||
|
$(HALSRC) \
|
||||||
|
$(PLATFORMSRC) \
|
||||||
|
$(BOARDSRC) \
|
||||||
|
$(TESTSRC) \
|
||||||
main.c
|
main.c
|
||||||
|
|
||||||
# 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
|
||||||
|
@ -142,13 +158,11 @@ TCSRC =
|
||||||
TCPPSRC =
|
TCPPSRC =
|
||||||
|
|
||||||
# List ASM source files here
|
# List ASM source files here
|
||||||
ASMSRC = $(PORTASM)
|
ASMSRC = $(STARTUPASM) $(PORTASM) $(OSALASM)
|
||||||
|
|
||||||
# List of the standard inclusion directories.
|
INCDIR = $(STARTUPINC) $(KERNINC) $(PORTINC) $(OSALINC) \
|
||||||
INCDIR = $(PORTINC) $(KERNINC)
|
$(HALINC) $(PLATFORMINC) $(BOARDINC) $(TESTINC) \
|
||||||
|
$(CHIBIOS)/os/various
|
||||||
# Make this point to your armparams.h header.
|
|
||||||
INCDIR += $(CHIBIOS)/os/common/ports/ARM/devices/LPC214x
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Project, sources and paths
|
# Project, sources and paths
|
||||||
|
|
|
@ -1,43 +0,0 @@
|
||||||
/*
|
|
||||||
ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* LPC2148 memory setup.
|
|
||||||
*/
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
flash : org = 0x00000000, len = 512k - 12k
|
|
||||||
ram0 : org = 0x40000200, len = 32k - 0x200 - 288
|
|
||||||
ram1 : org = 0x00000000, len = 0
|
|
||||||
ram2 : org = 0x00000000, len = 0
|
|
||||||
ram3 : org = 0x00000000, len = 0
|
|
||||||
ram4 : org = 0x00000000, len = 0
|
|
||||||
ram5 : org = 0x00000000, len = 0
|
|
||||||
ram6 : org = 0x00000000, len = 0
|
|
||||||
ram7 : org = 0x00000000, len = 0
|
|
||||||
}
|
|
||||||
|
|
||||||
/* RAM region to be used for stacks. This stack accommodates the processing
|
|
||||||
of all exceptions and interrupts*/
|
|
||||||
REGION_ALIAS("STACKS_RAM", ram0);
|
|
||||||
|
|
||||||
/* RAM region to be used for data segment.*/
|
|
||||||
REGION_ALIAS("DATA_RAM", ram0);
|
|
||||||
|
|
||||||
/* RAM region to be used for BSS segment.*/
|
|
||||||
REGION_ALIAS("BSS_RAM", ram0);
|
|
||||||
|
|
||||||
INCLUDE rules.ld
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
# List of the ChibiOS generic LPC214x file.
|
||||||
|
STARTUPSRC =
|
||||||
|
|
||||||
|
STARTUPASM = $(CHIBIOS)/os/common/ports/ARM/compilers/GCC/vectors.s \
|
||||||
|
$(CHIBIOS)/os/common/ports/ARM/compilers/GCC/crt0.s
|
||||||
|
|
||||||
|
STARTUPINC = ${CHIBIOS}/os/common/ports/ARM/devices/LPC214x
|
||||||
|
|
||||||
|
STARTUPLD = ${CHIBIOS}/os/common/ports/ARM/compilers/GCC/ld
|
|
@ -1,9 +1,7 @@
|
||||||
# List of the ChibiOS/RT ARM generic port files.
|
# List of the ChibiOS/RT ARM generic port files.
|
||||||
PORTSRC = ${CHIBIOS}/os/rt/ports/ARM/chcore.c
|
PORTSRC = ${CHIBIOS}/os/rt/ports/ARM/chcore.c
|
||||||
|
|
||||||
PORTASM = $(CHIBIOS)/os/common/ports/ARM/compilers/GCC/vectors.s \
|
PORTASM = $(CHIBIOS)/os/rt/ports/ARM/compilers/GCC/chcoreasm.s
|
||||||
$(CHIBIOS)/os/common/ports/ARM/compilers/GCC/crt0.s \
|
|
||||||
$(CHIBIOS)/os/rt/ports/ARM/compilers/GCC/chcoreasm.s
|
|
||||||
|
|
||||||
PORTINC = ${CHIBIOS}/os/rt/ports/ARM \
|
PORTINC = ${CHIBIOS}/os/rt/ports/ARM \
|
||||||
${CHIBIOS}/os/rt/ports/ARM/compilers/GCC
|
${CHIBIOS}/os/rt/ports/ARM/compilers/GCC
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
# List of the ChibiOS/RT ARM LPC214x port files.
|
|
||||||
PORTSRC = ${CHIBIOS}/os/rt/ports/ARM/chcore.c
|
|
||||||
|
|
||||||
PORTASM = $(CHIBIOS)/os/common/ports/ARM/compilers/GCC/vectors.s \
|
|
||||||
$(CHIBIOS)/os/common/ports/ARM/compilers/GCC/crt0.s \
|
|
||||||
$(CHIBIOS)/os/rt/ports/ARM/compilers/GCC/chcoreasm.s
|
|
||||||
|
|
||||||
PORTINC = ${CHIBIOS}/os/common/ports/ARM/devices/LPC214x \
|
|
||||||
${CHIBIOS}/os/rt/ports/ARM \
|
|
||||||
${CHIBIOS}/os/rt/ports/ARM/compilers/GCC
|
|
||||||
|
|
||||||
PORTLD = ${CHIBIOS}/os/common/ports/ARM/compilers/GCC/ld
|
|
|
@ -65,7 +65,7 @@ endif
|
||||||
|
|
||||||
# Enables the use of FPU on Cortex-M4 (no, softfp, hard).
|
# Enables the use of FPU on Cortex-M4 (no, softfp, hard).
|
||||||
ifeq ($(USE_FPU),)
|
ifeq ($(USE_FPU),)
|
||||||
USE_FPU = hard
|
USE_FPU = no
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -81,25 +81,32 @@ PROJECT = ch
|
||||||
|
|
||||||
# Imported source files and paths
|
# Imported source files and paths
|
||||||
CHIBIOS = ../../..
|
CHIBIOS = ../../..
|
||||||
|
# Startup files.
|
||||||
|
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk
|
||||||
|
# HAL-OSAL files (optional).
|
||||||
include $(CHIBIOS)/os/hal/hal.mk
|
include $(CHIBIOS)/os/hal/hal.mk
|
||||||
include $(CHIBIOS)/os/hal/templates/platform.mk
|
include $(CHIBIOS)/os/hal/templates/platform.mk
|
||||||
|
#include $(CHIBIOS)/os/hal/boards/xxxxxxx/board.mk
|
||||||
include $(CHIBIOS)/os/hal/templates/osal/osal.mk
|
include $(CHIBIOS)/os/hal/templates/osal/osal.mk
|
||||||
|
# RTOS files (optional).
|
||||||
|
#include $(CHIBIOS)/os/rt/rt.mk
|
||||||
|
#include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
||||||
|
# Other files (optional).
|
||||||
|
#include $(CHIBIOS)/test/rt/test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
PORTLD = ${CHIBIOS}/os/common/ports/ARMCMx/compilers/GCC/ld
|
LDSCRIPT= $(STARTUPLD)/STM32F407xG.ld
|
||||||
LDSCRIPT= $(PORTLD)/STM32F407xG.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.
|
||||||
PORTSRC = $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/crt0.c \
|
CSRC = $(STARTUPSRC) \
|
||||||
$(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/vectors.c
|
|
||||||
CSRC = $(PORTSRC) \
|
|
||||||
$(KERNSRC) \
|
$(KERNSRC) \
|
||||||
$(TESTSRC) \
|
$(PORTSRC) \
|
||||||
$(HALSRC) \
|
|
||||||
$(OSALSRC) \
|
$(OSALSRC) \
|
||||||
|
$(HALSRC) \
|
||||||
$(PLATFORMSRC) \
|
$(PLATFORMSRC) \
|
||||||
$(BOARDSRC) \
|
$(BOARDSRC) \
|
||||||
|
$(TESTSRC) \
|
||||||
main.c
|
main.c
|
||||||
|
|
||||||
# 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
|
||||||
|
@ -127,14 +134,10 @@ TCSRC =
|
||||||
TCPPSRC =
|
TCPPSRC =
|
||||||
|
|
||||||
# List ASM source files here
|
# List ASM source files here
|
||||||
PORTASM = $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/crt0_v7m.s
|
ASMSRC = $(STARTUPASM) $(PORTASM) $(OSALASM)
|
||||||
ASMSRC = $(PORTASM)
|
|
||||||
|
|
||||||
PORTINC = ${CHIBIOS}/os/ext/CMSIS/include \
|
INCDIR = $(STARTUPINC) $(KERNINC) $(PORTINC) $(OSALINC) \
|
||||||
${CHIBIOS}/os/ext/CMSIS/ST \
|
$(HALINC) $(PLATFORMINC) $(BOARDINC) $(TESTINC) \
|
||||||
${CHIBIOS}/os/common/ports/ARMCMx/devices/STM32F4xx
|
|
||||||
INCDIR = $(PORTINC) $(KERNINC) $(TESTINC) \
|
|
||||||
$(HALINC) $(OSALINC) $(PLATFORMINC) $(BOARDINC) \
|
|
||||||
$(CHIBIOS)/os/various
|
$(CHIBIOS)/os/various
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -65,7 +65,7 @@ endif
|
||||||
|
|
||||||
# Enables the use of FPU on Cortex-M4 (no, softfp, hard).
|
# Enables the use of FPU on Cortex-M4 (no, softfp, hard).
|
||||||
ifeq ($(USE_FPU),)
|
ifeq ($(USE_FPU),)
|
||||||
USE_FPU = hard
|
USE_FPU = no
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -81,26 +81,32 @@ PROJECT = ch
|
||||||
|
|
||||||
# Imported source files and paths
|
# Imported source files and paths
|
||||||
CHIBIOS = ../../..
|
CHIBIOS = ../../..
|
||||||
|
# Startup files.
|
||||||
|
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/startup_stm32f3xx.mk
|
||||||
|
# HAL-OSAL files (optional).
|
||||||
|
#include $(CHIBIOS)/os/hal/hal.mk
|
||||||
|
#include $(CHIBIOS)/os/hal/ports/STM32/STM32F3xx/platform.mk
|
||||||
|
#include $(CHIBIOS)/os/hal/boards/ST_STM32F3_DISCOVERY/board.mk
|
||||||
|
#include $(CHIBIOS)/os/hal/osal/nil/osal.mk
|
||||||
|
# RTOS files (optional).
|
||||||
include $(CHIBIOS)/os/nil/nil.mk
|
include $(CHIBIOS)/os/nil/nil.mk
|
||||||
include $(CHIBIOS)/os/nil/ports/ARMCMx/compilers/GCC/mk/port_generic_cm4.mk
|
include $(CHIBIOS)/os/nil/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/nil/osal.mk
|
# Other files (optional).
|
||||||
|
#include $(CHIBIOS)/test/nil/test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
PORTLD = ${CHIBIOS}/os/common/ports/ARMCMx/compilers/GCC/ld
|
LDSCRIPT= $(STARTUPLD)/STM32F303xC.ld
|
||||||
LDSCRIPT= $(PORTLD)/STM32F407xG.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.
|
||||||
PORTSRC = $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/crt0.c \
|
CSRC = $(STARTUPSRC) \
|
||||||
$(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/vectors.c \
|
|
||||||
$(CHIBIOS)/os/nil/templates/nilcore.c
|
|
||||||
CSRC = $(PORTSRC) \
|
|
||||||
$(KERNSRC) \
|
$(KERNSRC) \
|
||||||
$(TESTSRC) \
|
$(PORTSRC) \
|
||||||
$(HALSRC) \
|
|
||||||
$(OSALSRC) \
|
$(OSALSRC) \
|
||||||
|
$(HALSRC) \
|
||||||
$(PLATFORMSRC) \
|
$(PLATFORMSRC) \
|
||||||
$(BOARDSRC) \
|
$(BOARDSRC) \
|
||||||
|
$(TESTSRC) \
|
||||||
main.c
|
main.c
|
||||||
|
|
||||||
# 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
|
||||||
|
@ -128,14 +134,11 @@ TCSRC =
|
||||||
TCPPSRC =
|
TCPPSRC =
|
||||||
|
|
||||||
# List ASM source files here
|
# List ASM source files here
|
||||||
PORTASM = $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/crt0_v7m.s
|
ASMSRC = $(STARTUPASM) $(PORTASM) $(OSALASM)
|
||||||
ASMSRC = $(PORTASM)
|
|
||||||
|
|
||||||
PORTINC = ${CHIBIOS}/os/ext/CMSIS/include \
|
INCDIR = $(STARTUPINC) $(KERNINC) $(PORTINC) $(OSALINC) \
|
||||||
${CHIBIOS}/os/ext/CMSIS/ST \
|
$(HALINC) $(PLATFORMINC) $(BOARDINC) $(TESTINC) \
|
||||||
${CHIBIOS}/os/common/ports/ARMCMx/devices/STM32F4xx \
|
$(CHIBIOS)/os/various
|
||||||
$(CHIBIOS)/os/nil/templates
|
|
||||||
INCDIR = $(PORTINC) $(KERNINC)
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Project, sources and paths
|
# Project, sources and paths
|
||||||
|
@ -185,7 +188,7 @@ CPPWARN = -Wall -Wextra
|
||||||
#
|
#
|
||||||
|
|
||||||
# List all user C define here, like -D_DEBUG=1
|
# List all user C define here, like -D_DEBUG=1
|
||||||
UDEFS = -DSTM32F407xx
|
UDEFS = -DSTM32F303xC
|
||||||
|
|
||||||
# Define ASM defines here
|
# Define ASM defines here
|
||||||
UADEFS =
|
UADEFS =
|
||||||
|
|
Loading…
Reference in New Issue