mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-28 20:58:31 +00:00
Add rp/usb-w
This commit is contained in:
1 parent
c71c2d5f88
commit
d275b0a460
8 files changed
+384
-8
No files matched your search
@@ -0,0 +1,20 @@
|
||||
PICO_SDK_PATH ?= $(HOME)/src/pico-sdk
|
||||
PICO_BOARD ?= pico2_w
|
||||
BUILD ?= build/$(PICO_BOARD)
|
||||
.PHONY: all build flash clean
|
||||
|
||||
all: build
|
||||
|
||||
build: file_data.c
|
||||
PICO_SDK_PATH=$(PICO_SDK_PATH) cmake -S . -B $(BUILD) -DPICO_BOARD=$(PICO_BOARD) -DCMAKE_BUILD_TYPE=Release
|
||||
cmake --build $(BUILD) -j 4
|
||||
|
||||
flash: build
|
||||
picotool load -f $(BUILD)/firmware.uf2
|
||||
picotool reboot
|
||||
|
||||
file_data.c: dashboard.html
|
||||
node ../../../resources/html2c.js dashboard.html -o $@
|
||||
|
||||
clean:
|
||||
rm -rf build file_data.c
|
||||
Reference in new issue
Block a user