RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Macros | Functions | Variables
console-config.c File Reference

Console Configuration. More...

#include <rtems/bspIo.h>
#include <rtems/console.h>
#include <rtems/sysinit.h>
#include <libchip/serial.h>
#include <libfdt.h>
#include <libchip/ns16550.h>
#include <dev/serial/arm-pl011.h>
#include <bspopts.h>
#include <bsp/usart.h>
#include <bsp/raspberrypi.h>
#include <bsp/fbcons.h>
#include <bsp.h>
#include <bsp/console-termios.h>
#include <bsp/fdt.h>
#include <bsp/fatal.h>
#include <bsp/gpio.h>
#include <bsp/rpi-gpio.h>

Macros

#define PL011   "/dev/ttyAMA0"
 
#define MINIUART   "/dev/ttyS0"
 
#define FBCONS   "/dev/fbcons"
 

Functions

void output_char_fb (char c)
 
rtems_status_code console_initialize (rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
 Console initialization entry point.
 
 RTEMS_SYSINIT_ITEM (uart_probe, RTEMS_SYSINIT_BSP_START, RTEMS_SYSINIT_ORDER_LAST_BUT_5)
 

Variables

arm_pl011_context pl011_context
 
ns16550_context mini_uart_context
 
rpi_fb_context fb_context
 
BSP_output_char_function_type BSP_output_char = output_char
 This function pointer references the kernel character output implementation.
 
BSP_polling_getchar_function_type BSP_poll_char = NULL
 This function pointer may reference the kernel character input implementation.
 

Detailed Description

Console Configuration.

Macro Definition Documentation

◆ PL011

#define PL011   "/dev/ttyAMA0"

UART0 - PL011 UART1 - Mini UART

Function Documentation

◆ console_initialize()

rtems_status_code console_initialize ( rtems_device_major_number  major,
rtems_device_minor_number  minor,
void *  arg 
)

Console initialization entry point.

This method initializes the console device driver.

Parameters
[in]majoris the device driver major number.
[in]minoris the device driver minor number.
[in]argis the parameters to this call.
Return values
RTEMS_SUCCESSFULThe device driver is successfully initialized.