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
182
182
183
183
/// Enables interrupt for specified event.
184
184
#[ 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 {
187
187
SpisEvent :: Acquired => w. acquired ( ) . set_bit ( ) ,
188
188
SpisEvent :: End => w. end ( ) . set_bit ( ) ,
189
189
SpisEvent :: EndRx => w. endrx ( ) . set_bit ( ) ,
@@ -193,8 +193,8 @@ where
193
193
194
194
/// Disables interrupt for specified event.
195
195
#[ 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 {
198
198
SpisEvent :: Acquired => w. acquired ( ) . set_bit ( ) ,
199
199
SpisEvent :: End => w. end ( ) . set_bit ( ) ,
200
200
SpisEvent :: EndRx => w. endrx ( ) . set_bit ( ) ,
You can’t perform that action at this time.
0 commit comments