ch32-rs / ch32x0-hal

Rust HAL crate for CH32X035, CH32X033 MCUs
20 stars 0 forks source link

Refactor: using metapac #3

Closed andelf closed 6 months ago

andelf commented 6 months ago

This is a breaking change.

Marcuss2 commented 6 months ago

So, if I understand correctly, you basically the some STM32 hals and rebuild them for the chip as the peripherals are register compatible.

Not sure if this is the best approach, but it will work for now.

andelf commented 6 months ago

you basically the some STM32 hals and rebuild them for the chip as the peripherals are register compatible.

These YAML files are generated from https://github.com/ch32-rs/ch32-rs/tree/main/svd/fixed . They are using the toolset provided by stm32-data(https://github.com/embassy-rs/stm32-data).

Marcuss2 commented 6 months ago

Ok, it should be fine then. The .modify(|w|) is due to new svd2rust?

andelf commented 6 months ago

The .modify(|w|) is due to new svd2rust?

It's the difference between chiptool and svd2rust. Maybe I can fix this.