@@ -52,9 +52,12 @@ use core::ptr::addr_of_mut;
5252
5353use capsules_core:: test:: virtual_uart:: TestVirtualUartReceive ;
5454<<<<<<< HEAD
55+ <<<<<<< HEAD
5556=======
5657use capsules_core:: virtualizers:: selection_policy:: RoundRobinPolicy ;
5758>>>>>>> c709f59bd ( allegedly , round robin is default option )
59+ =======
60+ >>>>>>> 3 b3390d03 ( revert some changes)
5861use capsules_core:: virtualizers:: virtual_uart:: { MuxUart , UartDevice } ;
5962use kernel:: debug;
6063use kernel:: hil:: uart:: Receive ;
@@ -71,19 +74,27 @@ pub unsafe fn run_virtual_uart_receive(mux: &'static MuxUart<'static>) {
7174unsafe fn static_init_test_receive_small(
7275 mux : & ' static MuxUart < ' static > ,
7376<<<<<<< HEAD
77+ <<<<<<< HEAD
7478) -> & ' static TestVirtualUartReceive {
7579=======
7680) -> & ' static TestVirtualUartReceive < RoundRobinPolicy > {
7781>>>>>>> c709f59bd ( allegedly , round robin is default option )
82+ =======
83+ ) -> & ' static TestVirtualUartReceive {
84+ >>>>>>> 3 b3390d03 ( revert some changes)
7885 static mut SMALL : [ u8 ; 3 ] = [ 0 ; 3 ] ;
7986 let device = static_init ! ( UartDevice <' static >, UartDevice :: new( mux, true ) ) ;
8087 device. setup ( ) ;
8188 let test = static_init ! (
89+ <<<<<<< HEAD
8290<<<<<<< HEAD
8391 TestVirtualUartReceive ,
8492=======
8593 TestVirtualUartReceive <RoundRobinPolicy >,
8694>>>>>>> c709f59bd ( allegedly, round robin is default option)
95+ =======
96+ TestVirtualUartReceive ,
97+ >>>>>>> 3 b3390d03 ( revert some changes)
8798 TestVirtualUartReceive :: new( device, & mut * addr_of_mut!( SMALL ) )
8899 ) ;
89100 device. set_receive_client ( test ) ;
@@ -92,20 +103,12 @@ unsafe fn static_init_test_receive_small(
92103
93104unsafe fn static_init_test_receive_large (
94105 mux : & ' static MuxUart < ' static > ,
95- <<<<<<< HEAD
96106) -> & ' static TestVirtualUartReceive {
97- =======
98- ) -> & ' static TestVirtualUartReceive <RoundRobinPolicy > {
99- >>>>>>> c709f59bd ( allegedly, round robin is default option)
100107 static mut BUFFER : [ u8 ; 7 ] = [ 0 ; 7 ] ;
101108 let device = static_init ! ( UartDevice <' static >, UartDevice :: new( mux, true ) ) ;
102109 device. setup ( ) ;
103110 let test = static_init ! (
104- <<<<<<< HEAD
105111 TestVirtualUartReceive ,
106- =======
107- TestVirtualUartReceive <RoundRobinPolicy >,
108- >>>>>>> c709f59bd ( allegedly, round robin is default option)
109112 TestVirtualUartReceive :: new( device, & mut * addr_of_mut!( BUFFER ) )
110113 ) ;
111114 device. set_receive_client ( test) ;
0 commit comments