ch32-rs / wchisp

WCH ISP Tool in Rust
https://ch32-rs.github.io/wchisp/
GNU General Public License v2.0
166 stars 28 forks source link

Need for ways to express different config_registers definition for variants #11

Closed elfmimi closed 1 year ago

elfmimi commented 2 years ago

for example, config_registers definition in 0x11-CH55x.yaml is currently correct only for CH559.

andelf commented 2 years ago

Yes. This needs to be fixed.

A hack I use is https://github.com/ch32-rs/wchisp/blob/main/devices/0x12-CH54x.yaml

https://github.com/ch32-rs/wchisp/blob/aedf69aa685f57db1d623d828920f06277471505/devices/0x12-CH54x.yaml#L10

andelf commented 1 year ago

Close this. To see how to express different config_registers definitions for variants: https://github.com/ch32-rs/wchisp/blob/main/devices/0x13-CH57x.yaml