ch32-rs / wchisp

Rust-based Command Line Tool for WCH MCU USB-ISP Programming
https://ch32-rs.github.io/wchisp/
GNU General Public License v2.0
182 stars 30 forks source link

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

Closed elfmimi closed 2 years 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 2 years 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