@@ -50,7 +50,7 @@ pub fn render(
5050 #[ doc = #desc]
5151 pub type R = crate :: R <#rty, super :: #name_pc>;
5252 } ) ;
53- methods. push ( "` read` " ) ;
53+ methods. push ( "read" ) ;
5454 }
5555
5656 if can_write {
@@ -66,18 +66,19 @@ pub fn render(
6666 #[ doc = #desc]
6767 pub type W = crate :: W <#rty, super :: #name_pc>;
6868 #[ doc = #doc]
69- impl crate :: ResetValue <#rty> for super :: #name_pc {
69+ impl crate :: ResetValue for super :: #name_pc {
70+ type Size = #rty;
7071 #[ inline( always) ]
71- fn reset_value( ) -> #rty { #rv }
72+ fn reset_value( ) -> Self :: Size { #rv }
7273 }
7374 } ) ;
74- methods. push ( "` reset` " ) ;
75- methods. push ( "` write` " ) ;
76- methods. push ( "` write_with_zero` " ) ;
75+ methods. push ( "reset" ) ;
76+ methods. push ( "write" ) ;
77+ methods. push ( "write_with_zero" ) ;
7778 }
7879
7980 if can_read && can_write {
80- methods. push ( "` modify` " ) ;
81+ methods. push ( "modify" ) ;
8182 }
8283
8384 if let Some ( cur_fields) = register. fields . as_ref ( ) {
@@ -141,6 +142,7 @@ pub fn render(
141142 }
142143
143144 let mut out = vec ! [ ] ;
145+ let methods = methods. iter ( ) . map ( |s| format ! ( "[`{0}`](crate::generic::Reg::{0})" , s) ) . collect :: < Vec < _ > > ( ) ;
144146 let mut doc = format ! ( "{}\n \n This register you can {}. See [API](https://docs.rs/svd2rust/#read--modify--write-api)." ,
145147 & description, methods. join( ", " ) ) ;
146148
0 commit comments