Generate C code driver templates
Aiirhdl should also generate c code templates to read/write any register.Currently only generates a header file (base address)
9
votes
Rene Van leuken
shared this idea
-
jeinstei commented
I like this idea, but it isn't that straightforward as would this be straight C code with macros, or would it instead be a register "class" and a c++ namespace?
-
AdminGuy Eschemann (Manager, airhdl) commented
Thanks for your suggestion! Do you have an example showing how such a driver could look like? Would it help to provide helper macros to set/extract the value of a given field from a given register, e.g. get_field_<reg>_<field>(), set_field_<reg>_<field>()?
Guy.