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

Function usb_timer_oneshot

src/usb_serial.rs:50–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50fn usb_timer_oneshot() {
51 let timer_val = read_word(USB + 0x84) & 0xFFDFFF;
52 if timer_val == 0 {
53 assign(USB + 0x84, (1 << 31) | (1 << 30));
54 }
55}
56
57fn handle_irq(irq_status: u32) {
58 if (irq_status & TI0) > 0 {

Callers 2

tx_callbackFunction · 0.85
usb_serial_writeFunction · 0.85

Calls 2

read_wordFunction · 0.85
assignFunction · 0.85

Tested by

no test coverage detected