Skip to content

Commit

Permalink
Create chibios.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaxin96 committed Jul 15, 2021
1 parent b9183ce commit 0c625e7
Showing 1 changed file with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
PROTOCOL_DIR = protocol
CHIBIOS_DIR = $(PROTOCOL_DIR)/chibios


SRC += $(CHIBIOS_DIR)/usb_main.c
SRC += $(CHIBIOS_DIR)/main.c
SRC += usb_descriptor.c
SRC += $(CHIBIOS_DIR)/usb_driver.c
SRC += $(LIBSRC)

VPATH += $(TMK_PATH)/$(PROTOCOL_DIR)
VPATH += $(TMK_PATH)/$(CHIBIOS_DIR)
VPATH += $(TMK_PATH)/$(CHIBIOS_DIR)/lufa_utils

OPT_DEFS += -DFIXED_CONTROL_ENDPOINT_SIZE=64
OPT_DEFS += -DFIXED_NUM_CONFIGURATIONS=1


ifeq ($(strip $(MIDI_ENABLE)), yes)
include $(TMK_PATH)/protocol/midi.mk
endif


ifeq ($(strip $(BIU_BLE5_ENABLE)), yes)
SRC += uart.c
SRC += analog.c
SRC += outputselect.c
SRC += biu_nrf52.cpp
SRC += biu_ble_common.cpp
OPT_DEFS += -DBIU_BLE5_ENABLE
OPT_DEFS += -DNO_USB_STARTUP_CHECK
endif

0 comments on commit 0c625e7

Please sign in to comment.