RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Macros | Functions | Variables
erc32_console.c File Reference

Driver for serial ports on the ERC32. More...

#include <unistd.h>
#include <termios.h>
#include <stdlib.h>
#include <rtems.h>
#include <rtems/libio.h>
#include <rtems/console.h>
#include <rtems/termiostypes.h>
#include <libchip/serial.h>
#include <libchip/sersupp.h>
#include <bsp.h>
#include <bspopts.h>

Macros

#define CONSOLE_BUF_SIZE   (16)
 
#define CONSOLE_UART_A_TRAP   ERC32_TRAP_TYPE(ERC32_INTERRUPT_UART_A_RX_TX)
 
#define CONSOLE_UART_B_TRAP   ERC32_TRAP_TYPE(ERC32_INTERRUPT_UART_B_RX_TX)
 
#define ERC32_UART_COUNT   (2)
 

Functions

int console_inbyte_nonblocking (int port)
 
void console_outbyte_polled (int port, unsigned char ch)
 

Variables

const console_fns erc32_fns
 
console_tbl Console_Configuration_Ports []
 
unsigned long Console_Configuration_Count = ERC32_UART_COUNT
 

Detailed Description

Driver for serial ports on the ERC32.

Function Documentation

◆ console_inbyte_nonblocking()

int console_inbyte_nonblocking ( int  port)

This method polls the specified port for an input character. console port.

Parameters
[in]portis the input port
Returns
This method returns the character read of -1 if there is no data.

Variable Documentation

◆ Console_Configuration_Count

unsigned long Console_Configuration_Count = ERC32_UART_COUNT

The number of serial ports defined in Console_Configuration_Ports

◆ Console_Configuration_Ports

console_tbl Console_Configuration_Ports[]

The statically configured serial port information tables which are used to initially populate the dynamic tables.

◆ erc32_fns

const console_fns erc32_fns
Initial value:
= {
libchip_serial_default_probe,
erc32_console_first_open,
NULL,
erc32_console_write_support_polled,
erc32_console_initialize,
NULL,
NULL,
false
}
int console_inbyte_nonblocking(int port)
Definition: console-io.c:88