#include <oskit/x86/pc/com_cons.h>void com_cons_enable_receive_interrupt(int port);
Special function to enable receive character interrupts on a serial port.Since the base COM console operates by polling, there is no need to handle serial interrupts in order to do basic I/O. However, if you want to be notified up when a character is received, call this function immediately after com_cons_init, and make sure the appropriate IDT entry is initialized properly.
For example, the serial debugging code for the PC COM port uses this so that the program can be woken up when the user presses the interrupt character (Ĉ) from the remote debugger.
- port
- COM port to enable receive interrupts on. Must be 1, 2, 3 or 4.
- inb
- 10.3.7