File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -182,8 +182,8 @@ where
182182
183183 /// Enables interrupt for specified event.
184184 #[ inline( always) ]
185- pub fn enable_interrupt ( & self , command : SpisEvent ) -> & Self {
186- self . spis . intenset . modify ( |_r, w| match command {
185+ pub fn enable_interrupt ( & self , event : SpisEvent ) -> & Self {
186+ self . spis . intenset . modify ( |_r, w| match event {
187187 SpisEvent :: Acquired => w. acquired ( ) . set_bit ( ) ,
188188 SpisEvent :: End => w. end ( ) . set_bit ( ) ,
189189 SpisEvent :: EndRx => w. endrx ( ) . set_bit ( ) ,
@@ -193,8 +193,8 @@ where
193193
194194 /// Disables interrupt for specified event.
195195 #[ inline( always) ]
196- pub fn disable_interrupt ( & self , command : SpisEvent ) -> & Self {
197- self . spis . intenclr . write ( |w| match command {
196+ pub fn disable_interrupt ( & self , event : SpisEvent ) -> & Self {
197+ self . spis . intenclr . write ( |w| match event {
198198 SpisEvent :: Acquired => w. acquired ( ) . set_bit ( ) ,
199199 SpisEvent :: End => w. end ( ) . set_bit ( ) ,
200200 SpisEvent :: EndRx => w. endrx ( ) . set_bit ( ) ,
You can’t perform that action at this time.
0 commit comments