Closed vkottler closed 1 year ago
This is next up for the most part but we probably need to figure out how to start a new firmware project, to get up and running..
Where we can get some sample data: https://github.com/vkottler/xmc/issues/7.
This is getting implemented on: https://github.com/vkottler/ifgen/pull/28.
Resources:
Current tasks:
package://ifgen/
syntax to load, otherwise accept a fileNow that we're done with the SVD parsing + modeling, time to start building struct (and enum) definitions.
We've pushed generation very far! So far we've discovered one instance of a register "cluster" that we need https://github.com/vkottler/ifgen/issues/31 for (do that next).
Once that's complete, we can resume getting data plugged into the generated configuration!
As we're refining that, we should add a unit test to generate sources based on the generated configs.
Arrays are now supported.
One technical challenge that seems to exist here is the need to check for padding bytes.
I suspect a lot of these struct definitions require them
We might need to knock this out: https://github.com/vkottler/ifgen/issues/33.
That example shows how we might want to put some address info on some of these?
edit: adding the byte offset to the description would probably be helpful
Probably need to knock out:
as well. We also still need to generate enums and do bit fields...
Noting that in addition to padding we also need to fix unions/aliases:
Another one to implement: https://github.com/vkottler/ifgen/issues/39.
Just these two things left:
This gets fully implemented on https://github.com/vkottler/ifgen/pull/43.
Probably makes sense to implement this after https://github.com/vkottler/ifgen/issues/23.
With something like this, we could go from SVD directly to HAL layer.