mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-04 12:24:11 +01:00
b4a4ada1b0
Conflicts: flight/PiOS/Common/Libraries/FreeRTOS/Source/croutine.c flight/PiOS/Common/Libraries/FreeRTOS/Source/include/FreeRTOS.h flight/PiOS/Common/Libraries/FreeRTOS/Source/include/StackMacros.h flight/PiOS/Common/Libraries/FreeRTOS/Source/include/croutine.h flight/PiOS/Common/Libraries/FreeRTOS/Source/include/list.h flight/PiOS/Common/Libraries/FreeRTOS/Source/include/mpu_wrappers.h flight/PiOS/Common/Libraries/FreeRTOS/Source/include/portable.h flight/PiOS/Common/Libraries/FreeRTOS/Source/include/projdefs.h flight/PiOS/Common/Libraries/FreeRTOS/Source/include/queue.h flight/PiOS/Common/Libraries/FreeRTOS/Source/include/semphr.h flight/PiOS/Common/Libraries/FreeRTOS/Source/include/task.h flight/PiOS/Common/Libraries/FreeRTOS/Source/include/timers.h flight/PiOS/Common/Libraries/FreeRTOS/Source/list.c flight/PiOS/Common/Libraries/FreeRTOS/Source/queue.c flight/PiOS/Common/Libraries/FreeRTOS/Source/tasks.c flight/PiOS/Common/Libraries/FreeRTOS/Source/timers.c flight/PiOS/STM32F10x/Libraries/FreeRTOS/Source/portable/GCC/ARM_CM3/port.c flight/PiOS/STM32F10x/Libraries/FreeRTOS/Source/portable/GCC/ARM_CM3/portmacro.h flight/PiOS/STM32F10x/Libraries/FreeRTOS/Source/portable/MemMang/heap_1.c flight/PiOS/STM32F10x/Libraries/FreeRTOS/Source/portable/MemMang/heap_2.c flight/PiOS/STM32F10x/Libraries/FreeRTOS/Source/portable/MemMang/heap_3.c flight/PiOS/STM32F10x/library.mk flight/PiOS/STM32F4xx/Libraries/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c flight/PiOS/STM32F4xx/Libraries/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h flight/PiOS/posix/Libraries/FreeRTOS/Source/include/FreeRTOS.h flight/PiOS/posix/Libraries/FreeRTOS/Source/include/StackMacros.h flight/PiOS/posix/Libraries/FreeRTOS/Source/include/croutine.h flight/PiOS/posix/Libraries/FreeRTOS/Source/include/list.h flight/PiOS/posix/Libraries/FreeRTOS/Source/include/mpu_wrappers.h flight/PiOS/posix/Libraries/FreeRTOS/Source/include/portable.h flight/PiOS/posix/Libraries/FreeRTOS/Source/include/projdefs.h flight/PiOS/posix/Libraries/FreeRTOS/Source/include/queue.h flight/PiOS/posix/Libraries/FreeRTOS/Source/include/semphr.h flight/PiOS/posix/Libraries/FreeRTOS/Source/include/task.h flight/PiOS/posix/Libraries/FreeRTOS/Source/list.c flight/PiOS/posix/Libraries/FreeRTOS/Source/queue.c
52 lines
1.6 KiB
Makefile
52 lines
1.6 KiB
Makefile
#
|
|
# Rules to (help) build the F10x device support.
|
|
#
|
|
|
|
# Directory containing this makefile
|
|
PIOS_DEVLIB := $(dir $(lastword $(MAKEFILE_LIST)))
|
|
|
|
# Linker scripts path (contains board-specific scripts)
|
|
LINKER_SCRIPTS_PATH = $(PIOS_DEVLIB)
|
|
|
|
# Compiler options implied by the F10x
|
|
CDEFS += -DSTM32F10X -DSTM32F10X_$(MODEL)
|
|
CDEFS += -DUSE_STDPERIPH_DRIVER
|
|
CDEFS += -DARM_MATH_CM3
|
|
ARCHFLAGS += -mcpu=cortex-m3 --specs=nano.specs
|
|
|
|
# Board-specific startup files
|
|
ASRC += $(PIOS_DEVLIB)startup_stm32f10x_$(MODEL)$(MODEL_SUFFIX).S
|
|
|
|
# PIOS device library source and includes
|
|
SRC += $(sort $(wildcard $(PIOS_DEVLIB)*.c))
|
|
|
|
# CMSIS for the F1
|
|
include $(PIOS)/Common/Libraries/CMSIS2/library.mk
|
|
CMSIS_DIR = $(PIOS_DEVLIB)Libraries/CMSIS/Core/CM3
|
|
SRC += $(CMSIS_DIR)/core_cm3.c
|
|
SRC += $(CMSIS_DIR)/system_stm32f10x.c
|
|
EXTRAINCDIRS += $(CMSIS_DIR)
|
|
|
|
# ST Peripheral library
|
|
PERIPHLIB = $(PIOS_DEVLIB)Libraries/STM32F10x_StdPeriph_Driver
|
|
SRC += $(sort $(wildcard $(PERIPHLIB)/src/*.c))
|
|
EXTRAINCDIRS += $(PERIPHLIB)/inc
|
|
|
|
# ST USB Device library
|
|
USBDEVLIB = $(PIOS_DEVLIB)Libraries/STM32_USB-FS-Device_Driver
|
|
SRC += $(sort $(wildcard $(USBDEVLIB)/src/*.c))
|
|
EXTRAINCDIRS += $(USBDEVLIB)/inc
|
|
|
|
#
|
|
# FreeRTOS
|
|
#
|
|
# If the application has included the generic FreeRTOS support, then add in
|
|
# the device-specific pieces of the code.
|
|
#
|
|
ifneq ($(FREERTOS_DIR),)
|
|
FREERTOS_PORTDIR := $(PIOS_DEVLIB)Libraries/FreeRTOS/Source
|
|
SRC += $(sort $(wildcard $(FREERTOS_PORTDIR)/portable/GCC/ARM_CM3/*.c))
|
|
SRC += $(sort $(wildcard $(FREERTOS_DIR)/portable/MemMang/heap_1.c))
|
|
EXTRAINCDIRS += $(FREERTOS_PORTDIR)/portable/GCC/ARM_CM3
|
|
endif
|