DirectSPI test program

Dependencies:   DirectSPI mbed

Revision:
5:691576127698
Child:
7:84a0a208ebb2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile	Fri Feb 24 22:21:51 2017 +0900
@@ -0,0 +1,53 @@
+# 
+# Super light weight command line compile script using mbed-sdk sources.
+# 2017/02 made by dinau
+#
+
+##########################
+# Defalut setting. These are must be changed according to your environment.
+##########################
+TARGET		?= NUCLEO_F030R8
+
+# GCC_ARM or uARM or ARM
+TC			?= GCC_ARM
+
+# Specify mbed flash drive
+MBED_DRIVE	= /g
+
+# Specify mbed root folder
+MBED_ROOT	= ../../mbed-sdk
+
+# Specify [ "default" or "debug" or "small" ]
+PROFILE		= small
+
+# Verbose display
+#VERBOSE		= -v
+
+##########################
+# Fixed setting.
+##########################
+# Specify "id". This is a fixed constant, don't change it.
+PROG		= MBED_A1
+
+#RTOS		= -rtos
+MACROS		= "-D NDEBUG=1"
+#CFLAGS		= "--cflags NDEBUG=1"
+BUILD_DIR	= .build/${TARGET}/${TC}
+COMFLAG		= --color -m ${TARGET} -t ${TC} ${VERBOSE} --profile ${PROFILE}
+PROG_NAME	= -n ${PROG}
+
+all:
+	python ${MBED_ROOT}/tools/build.py -j4 ${COMFLAG} ${RTOS}
+	python ${MBED_ROOT}/tools/make.py  ${COMFLAG} ${PROG_NAME} --build ${BUILD_DIR} --source .
+
+.PHONY: c f
+# clean and make
+c:
+	rm -fr ${BUILD_DIR}
+	python ${MBED_ROOT}/tools/build.py -j4 ${COMFLAG} ${RTOS} -c
+	python ${MBED_ROOT}/tools/make.py  ${COMFLAG} ${PROG_NAME} --build ${BUILD_DIR} --source . -c
+
+# copy to mbed drive
+f: all
+	cp ${BUILD_DIR}/${notdir ${CURDIR}}.bin ${MBED_DRIVE}
+