From 12a423434352af137bda357001ac824aa23fdf77 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Sun, 20 Nov 2022 00:49:16 +0100 Subject: Tinyusb HID example --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9165390 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +FAMILY ?= rp2040 +PICO_SDK_PATH ?= lib/picosdk + +all: cmake + +clean: + rm -rf .build + +cmake: | $(PICO_SDK_PATH) .build + cmake -B .build -DFAMILY=$(FAMILY) -DPICO_SDK_PATH=$(PICO_SDK_PATH) + make -C .build + +lib/picosdk: + git submodule update --init lib/picosdk + +.build: + mkdir $@ + +upload: + picotool load .build/sxkbd.uf2 + +.PHONY: all clean cmake upload -- cgit v1.2.3-71-gd317