Files
rtems/bsps/include/bsp/console-polled.h
T
Joel Sherrill 19aee5aaa8 bsps/include/*: Add SPDX for RTEMS legacy license
These may still be relicensed but adding SPDX is needed.

Updates #4805.
2025-08-22 10:14:12 -05:00

46 lines
1.0 KiB
C

/* SPDX-License-Identifier: GPL-2.0+-with-RTEMS-exception */
/**
* @file
*
* @ingroup Console
*
* This file defines the interfaces between the single port
* polled console framework and the BSP.
*/
/*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.org/license/LICENSE.
*/
#ifndef __BSP_CONSOLE_POLLED_h
#define __BSP_CONSOLE_POLLED_h
/**
* This method polls the specified character @a ch to the specified
* console @a port.
*
* @param[in] port is the output port
* @param[in] ch is the character to print
*/
void console_outbyte_polled(int port, char ch);
/**
* This method polls the specified @a port for an input character.
* console @a port.
*
* @param[in] port is the input port
*
* @return This method returns the character read of -1 if there is no data.
*/
int console_inbyte_nonblocking(int port);
/**
* This method is invoked to initialize the console hardware device(s).
*/
void console_initialize_hardware(void);
#endif