Skip to content

Commit aa9d1ec

Browse files
committed
revert some changes
1 parent e57274b commit aa9d1ec

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

boards/stm32f3discovery/src/virtual_uart_rx_test.rs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,12 @@ use core::ptr::addr_of_mut;
5252

5353
use capsules_core::test::virtual_uart::TestVirtualUartReceive;
5454
<<<<<<< HEAD
55+
<<<<<<< HEAD
5556
=======
5657
use capsules_core::virtualizers::selection_policy::RoundRobinPolicy;
5758
>>>>>>> c709f59bd (allegedly, round robin is default option)
59+
=======
60+
>>>>>>> 3b3390d03 (revert some changes)
5861
use capsules_core::virtualizers::virtual_uart::{MuxUart, UartDevice};
5962
use kernel::debug;
6063
use kernel::hil::uart::Receive;
@@ -71,19 +74,27 @@ pub unsafe fn run_virtual_uart_receive(mux: &'static MuxUart<'static>) {
7174
unsafe 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+
>>>>>>> 3b3390d03 (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+
>>>>>>> 3b3390d03 (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

93104
unsafe 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

Comments
 (0)