diff options
author | Willian Paixao <willian@ufpa.br> | 2021-12-05 19:35:29 +0100 |
---|---|---|
committer | Willian Paixao <willian@ufpa.br> | 2021-12-05 19:35:29 +0100 |
commit | 54d1981df652d731dfcf3ad05a50a83a90d1a8af (patch) | |
tree | 24cdb983a50ffda8445428a04e8adc34a088c1e5 | |
parent | ac2e205ae9f465c27297ea542c72e8cfe4966f8c (diff) | |
download | Sensor-Watch-54d1981df652d731dfcf3ad05a50a83a90d1a8af.tar.gz Sensor-Watch-54d1981df652d731dfcf3ad05a50a83a90d1a8af.tar.bz2 Sensor-Watch-54d1981df652d731dfcf3ad05a50a83a90d1a8af.zip |
add tinyusb as a git submodule
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | rules.mk | 7 | ||||
m--------- | tinyusb | 0 |
3 files changed, 9 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..89e424a9 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "tinyusb"] + path = tinyusb + url = https://github.com/hathach/tinyusb.git @@ -2,7 +2,9 @@ CFLAGS += $(INCLUDES) $(DEFINES) OBJS = $(addprefix $(BUILD)/, $(notdir %/$(subst .c,.o, $(SRCS)))) -all: directory $(BUILD)/$(BIN).elf $(BUILD)/$(BIN).hex $(BUILD)/$(BIN).bin $(BUILD)/$(BIN).uf2 size +SUBMODULES = tinyusb + +all: directory $(SUBMODULES) $(BUILD)/$(BIN).elf $(BUILD)/$(BIN).hex $(BUILD)/$(BIN).bin $(BUILD)/$(BIN).uf2 size $(BUILD)/$(BIN).elf: $(OBJS) @echo LD $@ @@ -20,6 +22,9 @@ $(BUILD)/$(BIN).uf2: $(BUILD)/$(BIN).bin @echo UF2CONV $@ @$(UF2) $^ -co $@ +$(SUBMODULES): + git submodule update --init --recursive + install: @$(UF2) -D $(BUILD)/$(BIN).uf2 diff --git a/tinyusb b/tinyusb new file mode 160000 +Subproject f8288be03f28ad7b944e6925f49422dfa39202c |