This is crate with implementation of HAL traits from embedded-hal for following families of Atmel/MicroChip 32-bit MCUs:
For example, to use ATSAMS70Q21 To your Cargo.toml
add:
toml
[dependencies]
atsamx7x-hal = { version = "0.1.0", features = ["sams70q21b"] }
or to use with cortex-m-rt
startup additions:
toml
[dependencies]
atsamx7x-hal = { version = "0.1.0", features = ["sams70q21b-rt"] }
At the moment this HAL crate supports only revision B of SVD files and future removal of PAC crates for pre-B revisions are now considered. Discrepancies between both type in terms of register structure support is too significant to maintain completely different code for them.