diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-05-29 00:00:05 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-05-29 00:00:05 +0200 |
commit | 6d7141db0c73af34fd887fda9723c77aaaf1e349 (patch) | |
tree | ef8d2ebf816e70a4a63073700b9097b8467f2380 /Makefile | |
download | phone_remote_nrf51-6d7141db0c73af34fd887fda9723c77aaaf1e349.tar.gz phone_remote_nrf51-6d7141db0c73af34fd887fda9723c77aaaf1e349.tar.bz2 phone_remote_nrf51-6d7141db0c73af34fd887fda9723c77aaaf1e349.tar.xz phone_remote_nrf51-6d7141db0c73af34fd887fda9723c77aaaf1e349.zip |
o Initial import of Phone Remote firmware, forked from the old soil moisture project.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 61 |
1 files changed, 61 insertions, 0 deletions
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 |