File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -171,11 +171,10 @@ impl NVIC {
171171 {
172172 // note(unsafe) atomic read with no side effects
173173 let nvic = unsafe { Self :: steal ( ) } ;
174- let ipr_index = Self :: ipr_index ( ) ;
175- let iprn_n = nvic
176- . read_ipr ( Self :: ipr_index ( interrupt) )
174+ let ipr_n = nvic
175+ . read_ipr ( Self :: ipr_index ( ) )
177176 . expect ( "unexpected interrupt number" ) ;
178- let prio = ( ( ipr_n >> Self :: ipr_shift ( interrupt) ) & 0x0000_00ff ) as u8 ;
177+ ( ( ipr_n >> Self :: ipr_shift ( interrupt) ) & 0x0000_00ff ) as u8
179178 }
180179 }
181180
@@ -280,7 +279,7 @@ impl NVIC {
280279 {
281280 // NOTE(unsafe) atomic stateless write; IPR doesn't store any state
282281 let nvic = unsafe { Self :: steal ( ) } ;
283- nvic. modify_ipr ( Self :: ipr_index ( interrupt) , |mut val | {
282+ nvic. modify_ipr ( Self :: ipr_index ( interrupt) , |mut value | {
284283 let mask = 0x0000_00ff << Self :: ipr_shift ( interrupt) ;
285284 let prio = u32:: from ( prio) << Self :: ipr_shift ( interrupt) ;
286285
You can’t perform that action at this time.
0 commit comments