aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFrançois Cartegnie <281376+fcartegnie@users.noreply.github.com>2024-07-09 08:46:19 +0200
committerGitHub <noreply@github.com>2024-07-09 08:46:19 +0200
commita6c62295e92b3d960700508a445be1fba71a3cc2 (patch)
tree35c825b6551afad7688813d7de510111a67bf007 /Makefile
parent69b530cbbb72ad9e4b9a7a6c4742f29540664d00 (diff)
parent8274cab154f198447f12028e1686bbe2a6de6ebd (diff)
Merge pull request #30 from kienvo/ble-init
feat: Bluetooth LE initial setup
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 35f6b25..289b0ac 100644
--- a/Makefile
+++ b/Makefile
@@ -53,6 +53,10 @@ src/main.c \
src/leddrv.c \
src/button.c \
src/fb.c \
+src/ble/profile/legacy.c \
+src/ble/profile/devinfo.c \
+src/ble/setup.c \
+src/ble/peripheral.c \
# ASM sources
@@ -95,7 +99,7 @@ C_INCLUDES = \
-ICH5xx_ble_firmware_library/StdPeriphDriver/inc \
-ICH5xx_ble_firmware_library/RVMSIS \
-ICH5xx_ble_firmware_library/Core \
--IUser
+-ICH5xx_ble_firmware_library/BLE \
# compile gcc flags
ASFLAGS = $(MCU) $(AS_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections
@@ -118,7 +122,10 @@ CFLAGS += -MMD -MP
LDSCRIPT = CH5xx_ble_firmware_library/Ld/Link.ld
# libraries
-LIBS = -lc -lm -lnosys ./CH5xx_ble_firmware_library/StdPeriphDriver/libISP583.a
+LIBS = -lc -lm -lnosys \
+ ./CH5xx_ble_firmware_library/StdPeriphDriver/libISP583.a \
+ ./CH5xx_ble_firmware_library/BLE/LIBCH58xBLE.a \
+
LIBDIR =
LDFLAGS = $(MCU) -mno-save-restore -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wunused -Wuninitialized -T $(LDSCRIPT) -nostartfiles -Xlinker --gc-sections -Wl,-Map=$(BUILD_DIR)/$(TARGET).map --specs=nano.specs $(LIBS)