We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
reset
1 parent efe90b0 commit 211e59cCopy full SHA for 211e59c
src/generate.rs
@@ -785,23 +785,21 @@ pub fn register(
785
}
786
});
787
788
+ reg_impl_items.push(quote! {
789
+ /// Writes the reset value to the register
790
+ #[inline]
791
+ pub fn reset(&self) {
792
+ self.write(|w| w)
793
+ }
794
+ })
795
+
796
w_impl_items.push(quote! {
797
/// Reset value of the register
798
#[inline]
799
pub fn reset_value() -> W {
800
W { bits: #rv }
801
802
-
- if access == Access::ReadWrite {
- reg_impl_items.push(quote! {
- /// Writes the reset value to the register
- #[inline]
- pub fn reset(&self) {
- self.write(|w| w)
- }
803
- })
804
805
806
807
0 commit comments