rust-embedded / svd2rust

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

generic safe/unsafe W::bits #788

Closed burrbull closed 4 months ago

burrbull commented 6 months ago

breaking change mark Writable register with Safety marker.

makes W::bits always unsafe and always present

add safe W::set (other name?) synonym for W::bits.

burrbull commented 6 months ago

cc @rust-embedded/tools what do you think?

Emilgardis commented 6 months ago

/ci diff pr

github-actions[bot] commented 6 months ago

Diff for comment

burrbull commented 4 months ago

@Emilgardis let's merge this.