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

Function uart_disable

src/phys/uart.rs:357–362  ·  view source on GitHub ↗
(device: Device)

Source from the content-addressed store, hash-verified

355}
356
357pub fn uart_disable(device: Device) {
358 let addr = get_addr(device) + 0x18;
359 let baseline = read_word(addr);
360 assign(addr, baseline & !((0x1 << 19) | (0x1 << 18)));
361 unsafe { asm!("nop"); }
362}
363
364pub fn uart_write_fifo(device: Device, byte: u8) {
365 let addr = get_addr(device) + 0x1C;

Callers 2

initializeMethod · 0.85
uart_baud_rateFunction · 0.85

Calls 3

read_wordFunction · 0.85
assignFunction · 0.85
get_addrFunction · 0.70

Tested by

no test coverage detected