00001 00007 /* Embedded XINU, Copyright (C) 2007. All rights reserved. */ 00008 00009 #include <kernel.h> 00010 #include <uart.h> 00011 #include <device.h> 00012 00017 devcall uartGetChar(device *pdev) 00018 { 00019 unsigned char ch = 0; 00020 uartRead(pdev, &ch, 1); 00021 return ch; 00022 }