MCPcopy Create free account
hub / github.com/SharpCoder/teensycore / serial_init

Function serial_init

src/serio.rs:398–401  ·  view source on GitHub ↗

Initializes the serial device. This configures and muxes the relevant pins, sets baud rate, enables peripheral device, and generally wakes up the uart.

(device: SerioDevice)

Source from the content-addressed store, hash-verified

396/// enables peripheral device, and generally
397/// wakes up the uart.
398pub fn serial_init(device: SerioDevice) {
399 let uart = get_uart_interface(device);
400 uart.initialize();
401}
402
403/// Retuns the current buffer of data the serial interface
404/// has accumulated.

Callers

nothing calls this directly

Calls 2

get_uart_interfaceFunction · 0.85
initializeMethod · 0.80

Tested by

no test coverage detected