Module virtual_uart_rx_test

Source
Expand description

Test reception on the virtualized UART by creating two readers that read in parallel. To add this test, include the line

   virtual_uart_rx_test::run_virtual_uart_receive(mux_uart);

to the nucleo_446re boot sequence, where mux_uart is a capsules_core::virtualizers::virtual_uart::MuxUart. There is a 3-byte and a 7-byte read running in parallel. Test that they are both working by typing and seeing that they both get all characters. If you repeatedly type โ€˜aโ€™, for example (0x61), you should see something like:

Starting receive of length 3
Virtual uart read complete: CommandComplete:
61
61
61
61
61
61
61
Starting receive of length 7
Virtual uart read complete: CommandComplete:
61
61
61
Starting receive of length 3
Virtual uart read complete: CommandComplete:
61
61
61
Starting receive of length 3
Virtual uart read complete: CommandComplete:
61
61
61
61
61
61
61
Starting receive of length 7
Virtual uart read complete: CommandComplete:
61
61
61

Functionsยง

run_virtual_uart_receiveโš 
static_init_test_receive_large ๐Ÿ”’ โš 
static_init_test_receive_small ๐Ÿ”’ โš