Skip to content
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

WIP: Register derivedFrom and svd updates #256

Closed
wants to merge 10 commits into from
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ either = "1.0.3"
error-chain = "0.11.0"
inflections = "1.1.0"
quote = "0.3.15"
svd-parser = "0.6"
svd-parser = "0.7.0"
syn = "0.11.11"
5 changes: 2 additions & 3 deletions src/generate/device.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use quote::Tokens;
use crate::svd::Device;
use quote::Tokens;
use syn::Ident;

use crate::errors::*;
Expand Down Expand Up @@ -107,8 +107,7 @@ pub fn render(

let core_peripherals: &[_] = if fpu_present {
&[
"CBP", "CPUID", "DCB", "DWT", "FPB", "FPU", "ITM", "MPU", "NVIC", "SCB", "SYST",
"TPIU",
"CBP", "CPUID", "DCB", "DWT", "FPB", "FPU", "ITM", "MPU", "NVIC", "SCB", "SYST", "TPIU",
]
} else {
&[
Expand Down
2 changes: 1 addition & 1 deletion src/generate/interrupt.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use std::collections::HashMap;
use std::fmt::Write;

use crate::svd::Peripheral;
use cast::u64;
use quote::Tokens;
use crate::svd::Peripheral;
use syn::Ident;

use crate::errors::*;
Expand Down
Loading