diff options
| author | Brian Cully <bjc@kublai.com> | 2019-08-04 14:19:25 -0400 |
|---|---|---|
| committer | Brian Cully <bjc@kublai.com> | 2019-08-04 14:19:25 -0400 |
| commit | e405c474f5e0e94288191223de7ae0f31ae0b15f (patch) | |
| tree | 4ca89a92f0c868eb8feae272513c1e924b834adc /app/Makefile | |
| parent | abd478d9425dd2d4acd5b58202b1a95b73ff217b (diff) | |
| download | samd21-demo-e405c474f5e0e94288191223de7ae0f31ae0b15f.tar.gz samd21-demo-e405c474f5e0e94288191223de7ae0f31ae0b15f.zip | |
Migrate everything over to separate libraries.
* `usb-host` is the crate containing the HAL traits.
* `bootkbd` is a crate for a bare-bones boot protocol keyboard
driver.
* `samd21-host` is a crate with an implementation of `usb-host` for
a SAMD21 platform, with an example for the trinket-m0 which uses
the `bootkbd` driver to print keyboard reports.
Diffstat (limited to 'app/Makefile')
| -rw-r--r-- | app/Makefile | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/app/Makefile b/app/Makefile deleted file mode 100644 index a5ef39f..0000000 --- a/app/Makefile +++ /dev/null @@ -1,38 +0,0 @@ -APP = samd21-demo - -USBVID = 239a -USBPID = '001e|801e' - -BOSSAC = bossac -SERIAL = $(shell ./find-serial-port $(USBVID) $(USBPID) || echo 'cant-find-serial-port') -OFFSET = 0x2000 - -.PHONY: all clean cargo-build - -all: $(APP).uf2 - -clean: - rm -f $(APP).uf2 - rm -f $(APP).bin - cargo clean - -cargo-build: - cargo build - -target/thumbv6m-none-eabi/debug/$(APP): cargo-build - -$(APP).bin: target/thumbv6m-none-eabi/debug/$(APP) - cargo objcopy --bin $(APP) -- -O binary $(APP).bin - -# Requires https://github.com/sajattack/uf2conv-rs.git -%.uf2: %.bin - uf2conv-rs $< --base $(OFFSET) --output $@ - -flash: $(APP).bin $(SERIAL) - $(BOSSAC) -R -e -w -v -o$(OFFSET) -p$(SERIAL) $< - -qemu: target/thumbv6m-none-eabi/debug/$(APP) - qemu-system-arm -d in_asm,int,exec,cpu,guest_errors,unimp -pidfile qemu.pid -cpu cortex-m0 -machine lm3s6965evb -nographic -semihosting-config enable=on,target=native -s -S -kernel $< - -gdb: target/thumbv6m-none-eabi/debug/$(APP) - gdb-multiarch -ex "target remote localhost:1234" -ex "break main" -ex "continue" $< |
