modularize nodemcu-command, add start_baud parameter
This commit is contained in:
parent
b84739dc1b
commit
ea74a6de7d
10
Makefile
10
Makefile
@ -7,6 +7,8 @@ NODEMCU-UPLOADER=../nodemcu-uploader/nodemcu-uploader.py
|
|||||||
PORT=/dev/cu.SLAB_USBtoUART
|
PORT=/dev/cu.SLAB_USBtoUART
|
||||||
SPEED=9600
|
SPEED=9600
|
||||||
|
|
||||||
|
NODEMCU-COMMAND=$(NODEMCU-UPLOADER) -b $(SPEED) --start_baud $(SPEED) -p $(PORT) upload
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# End of user config
|
# End of user config
|
||||||
######################################################################
|
######################################################################
|
||||||
@ -33,17 +35,17 @@ usage:
|
|||||||
|
|
||||||
# Upload one files only
|
# Upload one files only
|
||||||
upload:
|
upload:
|
||||||
@python $(NODEMCU-UPLOADER) -b $(SPEED) -p $(PORT) upload $(FILE)
|
@python $(NODEMCU-COMMAND) $(FILE)
|
||||||
|
|
||||||
# Upload HTTP files only
|
# Upload HTTP files only
|
||||||
upload_http: $(HTTP_FILES)
|
upload_http: $(HTTP_FILES)
|
||||||
@python $(NODEMCU-UPLOADER) -b $(SPEED) -p $(PORT) upload $(foreach f, $^, $(f))
|
@python $(NODEMCU-COMMAND) $(foreach f, $^, $(f))
|
||||||
|
|
||||||
# Upload httpserver lua files (init and server module)
|
# Upload httpserver lua files (init and server module)
|
||||||
upload_server: $(LUA_FILES)
|
upload_server: $(LUA_FILES)
|
||||||
@python $(NODEMCU-UPLOADER) -b $(SPEED) -p $(PORT) upload $(foreach f, $^, $(f))
|
@python $(NODEMCU-COMMAND) $(foreach f, $^, $(f))
|
||||||
|
|
||||||
# Upload all
|
# Upload all
|
||||||
upload_all: $(LUA_FILES) $(HTTP_FILES)
|
upload_all: $(LUA_FILES) $(HTTP_FILES)
|
||||||
@python $(NODEMCU-UPLOADER) -b $(SPEED) -p $(PORT) upload $(foreach f, $^, $(f))
|
@python $(NODEMCU-COMMAND) $(foreach f, $^, $(f))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user