aboutsummaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorsprhawk <hongbo@yang.me>2014-09-01 10:13:33 +0800
committersprhawk <hongbo@yang.me>2014-09-01 10:13:33 +0800
commit536c2d68a92b6925dd2890139b069eac4858856e (patch)
tree40cdfe564bd95de5b52777e1b42da0e22f01a8c4 /Makefile.common
parent78a4fc1767960b45e3d93506aadccdfebb4fec9e (diff)
downloadnrf51822-posix-build-scripts-536c2d68a92b6925dd2890139b069eac4858856e.tar.gz
nrf51822-posix-build-scripts-536c2d68a92b6925dd2890139b069eac4858856e.tar.bz2
nrf51822-posix-build-scripts-536c2d68a92b6925dd2890139b069eac4858856e.tar.xz
nrf51822-posix-build-scripts-536c2d68a92b6925dd2890139b069eac4858856e.zip
added bluetooth macro and pin-reset make target
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile.common b/Makefile.common
index 7f8615a..424a4d1 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -248,4 +248,15 @@ qc \n\
flash: $(OUTPUT_BINARY_DIRECTORY)/flash.jlink
$(JLINK) -CommanderScript $(OUTPUT_BINARY_DIRECTORY)/flash.jlink; [ "$$?" -eq 1 ]
-.PHONY: erase_all flash_softdevice flash
+$(OUTPUT_BINARY_DIRECTORY)/pinreset.jlink: $(BUILD_DIRECTORIES)
+ echo "\n\
+ r \n\
+ h \n\
+ w4 4001e504 2 \n\
+ w4 40000544 1 \n\
+ r \n\
+ qc \n\
+ " > $(OUTPUT_BINARY_DIRECTORY)/pinreset.jlink
+
+pin-reset: $(OUTPUT_BINARY_DIRECTORY)/pinreset.jlink
+ $(JLINK) -CommanderScript $(OUTPUT_BINARY_DIRECTORY)/pinreset.jlink; [ "$$?" -eq 1 ]