Automatically convert .svd files to Go source files

This commit is contained in:
Ayke van Laethem
2018-05-05 19:02:43 +02:00
parent 3b4621c215
commit 8c426b406d
4 changed files with 257 additions and 1 deletions
+6 -1
View File
@@ -3,7 +3,7 @@
all: tgo
tgo: build/tgo
.PHONY: all tgo run-hello run-blinky flash-blinky clean
.PHONY: all tgo run-hello run-blinky flash-blinky clean gen-device gen-device-nrf
# Custom LLVM toolchain.
LLVM =
@@ -54,6 +54,11 @@ flash-blinky: build/blinky.hex
clean:
@rm -rf build
gen-device: gen-device-nrf
gen-device-nrf:
./gen-device.py lib/nrfx/mdk/ src/device/nrf/
go fmt ./src/device/nrf
# Build the Go compiler.