ch32-rs / ch32-rs-nightlies

PACs
3 stars 4 forks source link

Patch original SVDs file so that they generate more graceful APIs #1

Open switefaster opened 2 years ago

switefaster commented 2 years ago

As documented in svd2rust, <enumeratedValues> tag is supported to generate enum for enumerative values(e.g. RCC_BDCTLR.RTCSEL and PWR_CTLR.PLS and so forth). It is better for hal-crates creators that they don't need to enumerate the value themselves. I suggest that the svd files should be patched to support enumerative values.

andelf commented 1 year ago

I invited you to the ch32-rs team just now. The original svd files for WCH 32-bit MCUs are very buggy. Check out https://github.com/ch32-rs/ch32-rs/tree/main/svd.

switefaster commented 1 year ago

I invited you to the ch32-rs team just now. The original svd files for WCH 32-bit MCUs are very buggy. Check out https://github.com/ch32-rs/ch32-rs/tree/main/svd.

Thanks for your invitation. I will try patching the original file to support enum while checking for errors with respect to WCH's user manuals. Feel free to tell me if you and other members have had some plans and task assignments.