This repository was archived by the owner on Jul 6, 2019. It is now read-only.
This repository was archived by the owner on Jul 6, 2019. It is now read-only.
Consider utilizing yasha for ioreg generation from SVD #341
Open
Description
I have been developing code generator with SVD to ioreg case in mind. I know that you already have some tooling to generate ioreg macros from SVD, but I though that you would still be interested in to see what I have made.
The example project can be found here: https://github.com/kblomqvist/nrf51.rs
nrf51.rs.jinja
is a template file for the generatednrf51.rs
nrf51.jinja-ext
contains the SVD parser and few template filters. The core of the SvdFile parser is placed incmsis.py
.- From template you can also easily enable/disable whether you want to have register fields and/or enumerated values generated, or descriptions printed.
The parser also supports cluster elements, which aren't addressed by the current tooling.