BSP and Device Driver Development Guide
The pollRead
routine is responsible for reading a single character
from the serial device specified by minor
. If no character is
available, then the routine should return -1.
int pollRead(int minor) { read status of UART if status indicates a character is available return character return -1 }
BSP and Device Driver Development Guide
Copyright © 1988-2007OAR Corporation