From 6d7141db0c73af34fd887fda9723c77aaaf1e349 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 29 May 2015 00:00:05 +0200 Subject: o Initial import of Phone Remote firmware, forked from the old soil moisture project. --- Makefile | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..47155d4 --- /dev/null +++ b/Makefile @@ -0,0 +1,61 @@ +FLASHER ?= jlink +BOARD := BOARD_PCA10028 + +#TARGET_CHIP := NRF51822_QFAA_CA +#TARGET_CHIP := NRF51422_QFAC_AB +# nrf51442 - qfac +#DEVICE_VARIANT := xxac +USE_SOFTDEVICE = S110 + +ifeq ($(BOARD),BOARD_PCA10028) +TARGET_CHIP := NRF51422_QFAC_AB +DEVICE_VARIANT := xxac +else ifeq ($(BOARD),BOARD_PCA10031) +TARGET_CHIP := NRF51422_QFAC_AB +DEVICE_VARIANT := xxac +endif + +CFLAGS += -DBLE_STACK_SUPPORT_REQD +CFLAGS += -DSOFTDEVICE_PRESENT + +CFLAGS += -D$(USE_SOFTDEVICE) + +debug: CFLAGS += -DSM_DEBUG +debug: CFLAGS += -DENABLE_DEBUG_LOG_SUPPORT +debug: CFLAGS += -DDM_DISABLE_LOGS + +C_SOURCE_FILES += main.c +C_SOURCE_FILES += phone_remote.c +C_SOURCE_FILES += LiquidCrystal.c + +C_SOURCE_FILES += nrf_assert.c +C_SOURCE_FILES += nrf_delay.c +C_SOURCE_FILES += retarget.c +C_SOURCE_FILES += ble_sensorsim.c +C_SOURCE_FILES += bsp.c +C_SOURCE_FILES += app_button.c +C_SOURCE_FILES += app_error.c +C_SOURCE_FILES += app_timer.c +C_SOURCE_FILES += app_gpiote.c +#C_SOURCE_FILES += app_scheduler.c +C_SOURCE_FILES += app_trace.c +C_SOURCE_FILES += app_fifo.c +C_SOURCE_FILES += app_uart_fifo.c +C_SOURCE_FILES += pstorage.c +#C_SOURCE_FILES += ble_hrs.c +#C_SOURCE_FILES += ble_dis.c +#C_SOURCE_FILES += ble_bas.c +C_SOURCE_FILES += ble_conn_params.c +C_SOURCE_FILES += ble_advdata.c +C_SOURCE_FILES += ble_srv_common.c +C_SOURCE_FILES += device_manager_peripheral.c +C_SOURCE_FILES += softdevice_handler.c + +PROJECT_NAME := phone_remote_nrf51 +SDK_SOURCE_PATH = $(SDK_PATH)/components +SOFTDEVICE_HEX_PATH = $(HOME)/opt/nrf-sdk/s110/s110_nrf51822_7.1.0_softdevice.hex + +all: debug + +include ~/.nrf51822-posix-build-scripts.mk +include $(TEMPLATE_PATH)/Makefile.common -- cgit v1.2.3