Skip to content

Commit

Permalink
Emit SVD schema information
Browse files Browse the repository at this point in the history
Fixes the following SVDConv error:

    *** WARNING M306: attiny85.svd
      Schema Version not set for <device>.

Ref: #27 (comment)
  • Loading branch information
Rahix committed Jul 5, 2021
1 parent 01459a7 commit fbb8b71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/svd/chip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ use crate::ElementExt;
pub fn generate(c: &chip::Chip) -> crate::Result<xmltree::Element> {
let mut el = xmltree::Element::new("device");

el.attributes.insert("schemaVersion".to_string(), "1.1".to_string());
el.attributes.insert("xmlns:xs".to_string(), "http://www.w3.org/2001/XMLSchema-instance".to_string());
el.attributes.insert("xs:noNamespaceSchemaLocation".to_string(), "CMSIS-SVD.xsd".to_string());

let defaults = [
("vendor", "Atmel"),
("name", c.name.as_ref()),
Expand Down

0 comments on commit fbb8b71

Please sign in to comment.