Attach a callback to be invoked every time an interrupt is handled.
(callback: IrqFn)
| 75 | /// Attach a callback to be invoked every time an |
| 76 | /// interrupt is handled. |
| 77 | pub 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. |