Showing changes from revision #1 to #2:
Added | Removed | Changed
int HAL_USBPortIRQ(int port, int mode)
Entry | |
---|---|
port | Port number to query |
mode | Operation to perform; see below |
Exit | |
---|---|
- | Return value is dependent upon mode |
This is an internal call for OS use only and should not be used by user software.
Used to query the port overcurrent IRQ number, and to service the interrupt. mode behaves as follows:
mode | Operation | Return value |
---|---|---|
0 | Disable IRQ source | Returns IRQ device number |
1 | Enable IRQ source and acknowledge the IRQ | Unknown |
2 | Read IRQ status and acknowledge the IRQ | 0: Port overcurrent IRQ did not occur |
1: Port overcurrent IRQ did occur |