Showing changes from revision #1 to #2:
Added | Removed | Changed
int HAL_UARTInterruptEnable(int port, int eor, int mask)
Entry | |
---|---|
port | Port number to modify |
eor | EOR mask |
mask | AND mask |
Exit | |
---|---|
- | Returns previous interrupt state |
This is an internal call for use by the DualSerial module and should not be used by user code. Instead of calling the HAL directly, user code should interact with the Serial* entries that DualSerial creates in DeviceFS.
Enables/disables interrupts for the specified port. Interrupts are modified in the following manner:
new_state = (old_state AND mask) EOR eor
The meaning of each interrupt bit is as follows:
Bit | Meaning |
---|---|
0 | Receiver Data Available (and Character Timeout) |
1 | Transmitter Holding Register Empty |
2 | Received Line Status |
3 | Modem Status |