On Fri, Jan 22, 2021, 3:54 PM Matias N. <mat...@imap.cc> wrote: > > > Is there any easy way to get all of the register definition header files > > in place (with Apache 2 headers)? > > If there's an SVD file somewhere, you can use this: > > https://gitlab.com/nuttx_projects/svdgen > > I've used it many times and requires minimal tweaking afterwards. >
I also used this with some Apache SVDs and modified the script around the naming scheme used in the file (and handle some bad entries) and found it saved a lot of time. Some SVDs like to duplicate the register name with the register field name which makes super long defines if you don't clean them up. I also made some changes like not including the chip name at the start of the field which I think also aligned better with the style. But it is so much nicer than manually typing out everything and I think less error prone. --Brennan >