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

Function usb_attach_irq_handler

src/phys/usb.rs:77–81  ·  view source on GitHub ↗

Attach a callback to be invoked every time an interrupt is handled.

(callback: IrqFn)

Source from the content-addressed store, hash-verified

75/// Attach a callback to be invoked every time an
76/// interrupt is handled.
77pub fn usb_attach_irq_handler(callback: IrqFn) {
78 unsafe {
79 IRQ_CALLBACKS.push(callback);
80 }
81}
82
83/// Configure the VendorID and ProductID
84/// of the peripheral.

Callers 1

usb_serial_initFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected