RTEMS  5.1
Macros | Variables
console-config.c File Reference

Console configuration. More...

#include <libchip/serial.h>
#include <libchip/ns16550.h>
#include <rtems/bspIo.h>
#include <bsp.h>
#include <bsp/irq.h>
#include <bsp/uart-output-char.h>

Macros

#define CONSOLE_UART_THR   (*(volatile unsigned int *)BSP_CONSOLE_UART_BASE)
 
#define CONSOLE_UART_RHR   (*(volatile unsigned int *)BSP_CONSOLE_UART_BASE)
 
#define CONSOLE_UART_LSR   (*(volatile unsigned int *)(BSP_CONSOLE_UART_BASE+0x14))
 
#define CONSOLE_SYSC   (*(volatile uint32_t *) (BSP_CONSOLE_UART_BASE + 0x54))
 
#define CONSOLE_SYSS   (*(volatile uint32_t *) (BSP_CONSOLE_UART_BASE + 0x58))
 
#define TX_FIFO_E   (1<<5)
 
#define RX_FIFO_E   (1<<0)
 
#define CONSOLE_THR8   (*(volatile uint8_t *) (BSP_CONSOLE_UART_BASE + 0x00))
 

Variables

console_tbl Console_Configuration_Ports []
 
unsigned long Console_Configuration_Count = 1
 
BSP_output_char_function_type BSP_output_char = _BSP_put_char
 
BSP_polling_getchar_function_type BSP_poll_char = _BSP_get_char
 

Detailed Description

Console configuration.

Variable Documentation

◆ BSP_output_char

BSP_output_char_function_type BSP_output_char = _BSP_put_char

This variable points to the BSP provided method to output a character for the purposes of debug output.

It must output only the specific character. It must not perform character translations, e.g. "\n" to "\r\n".

◆ BSP_poll_char

BSP_polling_getchar_function_type BSP_poll_char = _BSP_get_char

This variable points to the BSP provided method to input a character for the purposes of debug input.

◆ Console_Configuration_Count

unsigned long Console_Configuration_Count = 1

The number of serial ports defined in Console_Configuration_Ports

◆ Console_Configuration_Ports

console_tbl Console_Configuration_Ports[]
Initial value:
= {
{
.sDeviceName = "/dev/ttyS0",
.deviceType = SERIAL_NS16550,
.pDeviceFns = &ns16550_fns,
.ulMargin = 16,
.ulHysteresis = 8,
.pDeviceParams = (void *) CONSOLE_BAUD,
.ulCtrlPort1 = BSP_CONSOLE_UART_BASE,
.ulDataPort = BSP_CONSOLE_UART_BASE,
.ulIntVector = BSP_CONSOLE_UART_IRQ,
.getRegister = beagle_uart_get_register,
.setRegister = beagle_uart_set_register,
.ulClock = UART_CLOCK,
},
}

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