File tree Expand file tree Collapse file tree 2 files changed +6
-24
lines changed Expand file tree Collapse file tree 2 files changed +6
-24
lines changed Original file line number Diff line number Diff line change @@ -297,10 +297,14 @@ pub unsafe trait Port: KernelCfg1 {
297
297
fn is_interrupt_context ( ) -> bool ;
298
298
299
299
/// Enable the specified interrupt line.
300
- unsafe fn enable_interrupt_line ( line : InterruptNum ) -> Result < ( ) , EnableInterruptLineError > ;
300
+ unsafe fn enable_interrupt_line ( _line : InterruptNum ) -> Result < ( ) , EnableInterruptLineError > {
301
+ Err ( EnableInterruptLineError :: NotSupported )
302
+ }
301
303
302
304
/// Disable the specified interrupt line.
303
- unsafe fn disable_interrupt_line ( line : InterruptNum ) -> Result < ( ) , EnableInterruptLineError > ;
305
+ unsafe fn disable_interrupt_line ( _line : InterruptNum ) -> Result < ( ) , EnableInterruptLineError > {
306
+ Err ( EnableInterruptLineError :: NotSupported )
307
+ }
304
308
}
305
309
306
310
/// Methods intended to be called by a port.
Original file line number Diff line number Diff line change @@ -307,20 +307,6 @@ impl State {
307
307
pub fn is_interrupt_context ( & self ) -> bool {
308
308
false
309
309
}
310
-
311
- pub fn enable_interrupt_line (
312
- & self ,
313
- _line : InterruptNum ,
314
- ) -> Result < ( ) , EnableInterruptLineError > {
315
- todo ! ( )
316
- }
317
-
318
- pub fn disable_interrupt_line (
319
- & self ,
320
- _line : InterruptNum ,
321
- ) -> Result < ( ) , EnableInterruptLineError > {
322
- todo ! ( )
323
- }
324
310
}
325
311
326
312
#[ macro_export]
@@ -366,14 +352,6 @@ macro_rules! use_port {
366
352
fn is_interrupt_context( ) -> bool {
367
353
PORT_STATE . is_interrupt_context( )
368
354
}
369
-
370
- unsafe fn enable_interrupt_line( line: $crate:: InterruptNum ) -> Result <( ) , $crate:: EnableInterruptLineError > {
371
- PORT_STATE . enable_interrupt_line( line)
372
- }
373
-
374
- unsafe fn disable_interrupt_line( line: $crate:: InterruptNum ) -> Result <( ) , $crate:: EnableInterruptLineError > {
375
- PORT_STATE . disable_interrupt_line( line)
376
- }
377
355
}
378
356
379
357
fn main( ) {
You can’t perform that action at this time.
0 commit comments