/w60x2svd

Generate svd file from w60x sdk c header file.

Primary LanguageRust

w60x2svd

A tool for generating SVD files for the w60x.

This tool is required because official SVD files are not available for these devices at this time. The generated SVD files are used for generating the w60xperipheral access crates using svd2rust.

Register definitions from w60x official documents:

Status

  • CLK
  • DMA
  • GPIO
  • RSA
  • Crypto
  • HSPI
  • SDIO
  • Wrapper
  • SPI
  • I2C
  • UART
  • 7816
  • Timer
  • PMU
  • RTC
  • WDG
  • PWM
  • QFLASH

Building

$ git clone https://github.com/tiannian/w60x2svd
$ cd w60x2svd/ && cargo build

For w600

$ cargo run json
$ cargo run svd
$ xmllint -format w600.svd > w600.format.svd

This will create the file w600.svd in the base project directory.

License

Licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.