00001 /* 00002 * "Copyright (c) 2008 Robert B. Reese, Bryan A. Jones, J. W. Bruce ("AUTHORS")" 00003 * All rights reserved. 00004 * (R. Reese, reese_AT_ece.msstate.edu, Mississippi State University) 00005 * (B. A. Jones, bjones_AT_ece.msstate.edu, Mississippi State University) 00006 * (J. W. Bruce, jwbruce_AT_ece.msstate.edu, Mississippi State University) 00007 * 00008 * Permission to use, copy, modify, and distribute this software and its 00009 * documentation for any purpose, without fee, and without written agreement is 00010 * hereby granted, provided that the above copyright notice, the following 00011 * two paragraphs and the authors appear in all copies of this software. 00012 * 00013 * IN NO EVENT SHALL THE "AUTHORS" BE LIABLE TO ANY PARTY FOR 00014 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT 00015 * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE "AUTHORS" 00016 * HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00017 * 00018 * THE "AUTHORS" SPECIFICALLY DISCLAIMS ANY WARRANTIES, 00019 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 00020 * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS 00021 * ON AN "AS IS" BASIS, AND THE "AUTHORS" HAS NO OBLIGATION TO 00022 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS." 00023 * 00024 * Please maintain this header in its entirety when copying/modifying 00025 * these files. 00026 * 00027 * 00028 */ 00029 00030 #ifndef _ESOS_PC_STDIO_H 00031 #define _ESOS_PC_STDIO_H 00032 00033 /* I N C L U D E S **********************************************************/ 00034 #include "esos.h" 00035 #include "esos_comm.h" 00036 #include "esos_pc.h" 00037 00038 /* D E F I N I T I O N S ****************************************************/ 00039 00040 /* E X T E R N S ************************************************************/ 00041 extern struct termios stored_settings; 00042 00043 /* M A C R O S **************************************************************/ 00044 00045 /* P U B L I C P R O T O T Y P E S *****************************************/ 00046 void __esos_hw_signal_start_tx(void); 00047 void __esos_hw_signal_stop_tx(void); 00048 uint8 kbhit(void); 00049 void set_keypress(void); 00050 00051 // Documentation for this file. If the \file tag isn't present, 00052 // this file won't be documented. 00053 /* 00054 * This file contains routines which configure and 00055 * use STDIO on the PC for communications. 00056 */ 00057 00058 // communications commands used outside of ESOS tasks (like user_init routine) 00059 // these routines/macros should almost never be used. 00060 void __esos_hw_PutUint8(uint8 u8_c); 00061 void __esos_hw_PutString(uint8* psz_in); 00062 uint8 __esos_hw_GetUint8(void); 00063 00064 void __esos_hw_InitCommSystem(void); 00065 00066 #endif // end ESOS_PC_STDIO_H