Before the USB arrived, we used Serial port to communicate with devices.
NAME recv - receive data from a serial port SYNOPSIS int recv(int port, void* data, unsigned int len) DESCRIPTION recv() receives len bytes from port and stores them at the address pointed by data. RETURN VALUE recv() returns the number of bytes received or -1 if an error occured.
- Handle IRQ-4
- Write recv
Possible bug causes
- You may want to check your event manager.
- You may want to check if you have correctly enabled interrupts.