aboutsummaryrefslogtreecommitdiff
path: root/Makefile.template
diff options
context:
space:
mode:
authorsprhawk <hongbo@yang.me>2014-08-29 01:48:19 +0800
committersprhawk <hongbo@yang.me>2014-08-29 01:48:19 +0800
commit214951cc8d485e826ec52a381b8e50f0e75aafa1 (patch)
treee86687a76367eae29bd6fe1328a12eea937d7054 /Makefile.template
downloadnrf51822-posix-build-scripts-214951cc8d485e826ec52a381b8e50f0e75aafa1.tar.gz
nrf51822-posix-build-scripts-214951cc8d485e826ec52a381b8e50f0e75aafa1.tar.bz2
nrf51822-posix-build-scripts-214951cc8d485e826ec52a381b8e50f0e75aafa1.tar.xz
nrf51822-posix-build-scripts-214951cc8d485e826ec52a381b8e50f0e75aafa1.zip
modified from nordic nRF51 SDK
Diffstat (limited to 'Makefile.template')
-rw-r--r--Makefile.template22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile.template b/Makefile.template
new file mode 100644
index 0000000..32bb590
--- /dev/null
+++ b/Makefile.template
@@ -0,0 +1,22 @@
+TARGET_CHIP := NRF51822_QFAA_CA
+BOARD := BOARD_PCA10001
+
+#Uncomment correct line if you have s110 programmed on the chip.
+DEVICE_VARIANT := xxaa
+#DEVICE_VARIANT := xxab
+
+USE_SOFTDEVICE := s110
+#USE_SOFTDEVICE := s210
+
+HOME = /Users/hongbo.yang/
+SDK_PATH = $(HOME)Developer/prjs/embeded/nrf/nrf51_sdk_v6_0_0_43681/nrf51822/
+SOFTDEVICE_BIN_PATH = $(HOME)Developer/prjs/embeded/nrf/s110_nrf51822_7.0.0/s110_nrf51822_7.0.0_softdevice.hex
+BUILD_SCRIPTS_PATH = $(HOME)Developer/prjs/embeded/prjs/nrf51822/build_scripts/
+TEMPLATE_PATH = $(BUILD_SCRIPTS_PATH)
+
+C_SOURCE_FILES += main.c
+
+OUTPUT_FILENAME := main
+
+include $(TEMPLATE_PATH)Makefile.common
+