File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11#![ feature( const_refs_to_cell) ]
2+ #![ feature( generic_arg_infer) ]
23#![ feature( const_trait_impl) ]
34#![ feature( naked_functions) ]
45#![ feature( const_mut_refs) ]
@@ -558,7 +559,7 @@ const USB_BUF_CAP: usize = 64;
558559/// The queue through which received data is passed from `poll_usb` to
559560/// `usb_in_task_body`
560561static USB_BUF_IN : PrimaskMutex < RefCell < ( [ u8 ; USB_BUF_CAP ] , usize ) > > =
561- PrimaskMutex :: new ( RefCell :: new ( ( [ 0 ; USB_BUF_CAP ] , 0 ) ) ) ;
562+ PrimaskMutex :: new ( RefCell :: new ( ( [ 0 ; _ ] , 0 ) ) ) ;
562563
563564/// USB interrupt handler
564565fn poll_usb ( ) {
@@ -705,7 +706,7 @@ mod queue {
705706 Self {
706707 st : StaticMutex :: define ( )
707708 . init ( || QueueSt {
708- buf : [ T :: INIT ; CAP ] ,
709+ buf : [ T :: INIT ; _ ] ,
709710 read_i : 0 ,
710711 len : 0 ,
711712 waiting_reader : None ,
Original file line number Diff line number Diff line change @@ -100,11 +100,11 @@ static CORE1_VECTOR_TABLE: VectorTable<[unsafe extern "C" fn(); 48]> = {
100100 fn _core1_stack_start ( ) ;
101101 }
102102
103- let mut table = [ unhandled as _ ; 48 ] ;
103+ let mut table = [ unhandled as _ ; _ ] ;
104104
105105 let mut i = 0 ;
106106 let kernel_handler_table = <SystemTraits as r3_kernel:: KernelCfg2 >:: INTERRUPT_HANDLERS ;
107- while i < 48 {
107+ while i < table . len ( ) {
108108 if let Some ( handler) = kernel_handler_table. get ( i) {
109109 table[ i] = handler;
110110 }
Original file line number Diff line number Diff line change 11#![ feature( const_refs_to_cell) ]
2+ #![ feature( generic_arg_infer) ]
23#![ feature( const_trait_impl) ]
34#![ feature( naked_functions) ]
45#![ feature( const_mut_refs) ]
You can’t perform that action at this time.
0 commit comments