guowenxue
2019-06-24 164590e50f7c6a26d7a92d5da6423ec8ce43f811
Rename mqttd modules to hal and add makefile
1 files added
10 files renamed
11 ■■■■■ changed files
mqttd/hal/beep.c patch | view | raw | blame | history
mqttd/hal/beep.h patch | view | raw | blame | history
mqttd/hal/ds18b20.c patch | view | raw | blame | history
mqttd/hal/ds18b20.h patch | view | raw | blame | history
mqttd/hal/led.c patch | view | raw | blame | history
mqttd/hal/led.h patch | view | raw | blame | history
mqttd/hal/makefile 11 ●●●●● patch | view | raw | blame | history
mqttd/hal/relay.c patch | view | raw | blame | history
mqttd/hal/relay.h patch | view | raw | blame | history
mqttd/hal/sht20.c patch | view | raw | blame | history
mqttd/hal/sht20.h patch | view | raw | blame | history
mqttd/hal/beep.c
mqttd/hal/beep.h
mqttd/hal/ds18b20.c
mqttd/hal/ds18b20.h
mqttd/hal/led.c
mqttd/hal/led.h
mqttd/hal/makefile
New file
@@ -0,0 +1,11 @@
LIBNAME=$(shell basename ${PWD} )
all: clean
    ${CROSS_COMPILE}gcc -c *.c
    ${CROSS_COMPILE}ar -rcs  lib${LIBNAME}.a *.o
clean:
    @rm -f *.o
    @rm -f *.a
mqttd/hal/relay.c
mqttd/hal/relay.h
mqttd/hal/sht20.c
mqttd/hal/sht20.h