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

Function usb_serial_init

src/usb_serial.rs:40–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38const CDC_TX_ENDPOINT: u8 = 4;
39
40pub fn usb_serial_init() {
41 setup_cdc_descriptors();
42
43 // Hook in the various callbacks
44 usb_attach_setup_callback(usb_serial_configure);
45
46 // Attach irq handler
47 usb_attach_irq_handler(handle_irq);
48}
49
50fn usb_timer_oneshot() {
51 let timer_val = read_word(USB + 0x84) & 0xFFDFFF;

Callers

nothing calls this directly

Calls 3

setup_cdc_descriptorsFunction · 0.85
usb_attach_irq_handlerFunction · 0.85

Tested by

no test coverage detected