mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 18:53:29 +00:00
all: use less magic in memory-mapped IO
Don't store addresses in the values of registers, this leads to problems with char arrays (among others). Instead, do it like it's done in C with raw addresses cast to struct pointers. This commit also splits gen-device.py, as AVR and ARM have very different ideas of what a register is. It's easier to just keep them separate.
This commit is contained in:
@@ -80,11 +80,11 @@ fmt:
|
||||
gen-device: gen-device-nrf
|
||||
|
||||
gen-device-nrf:
|
||||
./gen-device.py lib/nrfx/mdk/ src/device/nrf/
|
||||
./gen-device-svd.py lib/nrfx/mdk/ src/device/nrf/
|
||||
go fmt ./src/device/nrf
|
||||
|
||||
gen-device-avr:
|
||||
./gen-device.py lib/avr/packs/atmega src/device/avr/
|
||||
./gen-device-avr.py lib/avr/packs/atmega src/device/avr/
|
||||
go fmt ./src/device/avr
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user