/** @file\r
- UART Serial Port library instance with empty functions.\r
+ UART Serial Port library functions\r
\r
- Copyright (c) 2006 - 2008, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
+ Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+ This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
http://opensource.org/licenses/bsd-license.php\r
**/\r
\r
#include <Base.h>\r
-\r
-#include <Library/SerialPortLib.h>\r
#include <Library/IoLib.h>\r
+#include <Library/SerialPortLib.h>\r
\r
//---------------------------------------------\r
// UART Register Offsets\r
\r
Result = NumberOfBytes;\r
\r
- while (NumberOfBytes--) {\r
+ while ((NumberOfBytes--) != 0) {\r
//\r
// Wait for the serail port to be ready.\r
//\r
\r
Result = NumberOfBytes;\r
\r
- while (NumberOfBytes--) {\r
+ while ((NumberOfBytes--) != 0) {\r
//\r
// Wait for the serail port to be ready.\r
//\r