-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (40 loc) · 919 Bytes
/
Makefile
File metadata and controls
48 lines (40 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
CSRC = $(shell find src -name "*.c")
INCDIR = ./include
MODULE_SEARCH_DIRS = modules
USE_PROCESS_STACKSIZE = 2048
USE_EXCEPTIONS_STACKSIZE = 2048
MODULES_ENABLED = \
chibios_sys_init \
chibios_hal_init \
boot_msg \
timing \
system \
pubsub \
worker_thread \
flash \
param \
uavcan_param_interface \
can_driver_stm32 \
can \
can_autobaud \
uavcan \
uavcan_nodestatus_publisher \
uavcan_allocatee \
spi_device \
driver_profiLED \
uavcan_timesync \
uavcan_debug
MESSAGES_ENABLED = \
uavcan.protocol.GetNodeInfo \
uavcan.protocol.file.BeginFirmwareUpdate \
uavcan.protocol.file.Read \
uavcan.protocol.RestartNode \
uavcan.equipment.indication.LightsCommand \
com.hex.file.FileStreamStart \
com.hex.file.FileStreamChunk
DSDL_NAMESPACE_DIRS += dsdl/com
LOAD_REGION = bl
UDEFS += -DTARGET_BOOTLOADER
include ../include.mk
upload: build/$(BOARD)/$(PROJECT).elf
openocd -f openocd.cfg -c "program $< verify reset exit"