-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interrupts #2
Comments
ImplementationData-Structure ChangesAdd a new list of interrupts to the pub struct Chip {
pub name: String,
// ...
pub peripherals: HashMap<String, Peripheral>,
pub interrupts: HashMap<String, Interrupt>,
} This interrupt type also needs to be defined: pub struct Interrupt {
pub name: String,
pub description: Option<String>,
pub index: usize,
} ParsingThe interrupt list should be filled with the interrupts from the svd-GenerationThe idea is to add all interrupts to the Unfortunately, there is no easy way to access the for peripheral in peripherals.children.iter_mut() {
if let Some("CPU") = peripheral.get_child("name") {
// Add interrupts
peripheral.children.push(...);
break;
}
} |
Signed-off-by: offdroid <filip.skubacz.public@gmail.com>
Implement interrupts as specified in Rahix#2.
This commit makes atdf2svd parse the interrupt list from the source file and adds all interrupts to the CPU peripheral in the generated svd. Fixes Rahix#2 Signed-off-by: offdroid <filip.skubacz.public@gmail.com>
Right now, the interrupt list specified in the
atdf
file is completely ignored.atdf2svd
definitely needs a way to add them to the svd file, but unfortunately, this is not quite trivial: The atdf does not associate interrupts with peripherals like svd does ... I am currently in favor of just adding all interrupts to the CPU peripheral unconditionally, assvd2rust
does not care about this association anyway ...The text was updated successfully, but these errors were encountered: