rust-embedded / svd2rust

Generate Rust register maps (`struct`s) from SVD files
Apache License 2.0
675 stars 147 forks source link

if a field have doc on `read` function, then it should be put it in rust doc #733

Closed eZioPan closed 1 year ago

eZioPan commented 1 year ago

https://github.com/rust-embedded/svd2rust/blob/ef56dd1daeaf0048184567d306ca3d5c9d7c0208/src/generate/register.rs#LL808C89-L808C89

Currently, only doc in write function or the write side of read-write functions has been put into rust #[doc = ...]

burrbull commented 1 year ago

should be easy to fix. Please, create pull request.

eZioPan commented 1 year ago

@burrbull would you please spare some time to check whether my modification is good?