Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:42

0001 /**
0002  * @file
0003  *
0004  * @ingroup Console
0005  *
0006  * This file defines the interfaces between the single port
0007  * polled console framework and the BSP.
0008  */
0009 
0010 /*
0011  *  The license and distribution terms for this file may be
0012  *  found in the file LICENSE in this distribution or at
0013  *  http://www.rtems.org/license/LICENSE.
0014  */
0015 
0016 #ifndef __BSP_CONSOLE_POLLED_h
0017 #define __BSP_CONSOLE_POLLED_h
0018 
0019 /**
0020  * This method polls the specified character @a ch to the specified
0021  * console @a port.
0022  *
0023  * @param[in] port is the output port
0024  * @param[in] ch is the character to print
0025  */
0026 void console_outbyte_polled(int port, char ch);
0027 
0028 /**
0029  * This method polls the specified @a port for an input character.
0030  * console @a port.
0031  *
0032  * @param[in] port is the input port
0033  *
0034  * @return This method returns the character read of -1 if there is no data.
0035  */
0036 int console_inbyte_nonblocking(int port);
0037 
0038 /**
0039  * This method is invoked to initialize the console hardware device(s).
0040  */
0041 void console_initialize_hardware(void);
0042 
0043 #endif