RTEMS 6.1-rc1
Functions | Variables
console-config.c File Reference

This source file contains definitions of BSP_output_char_function_type and :: BSP_output_char and an implementation of console_initialize(). More...

#include <rtems/bspIo.h>
#include <rtems/console.h>
#include <rtems/sysinit.h>
#include <rtems/termiostypes.h>
#include <bsp/fatal.h>
#include <bsp/fdt.h>
#include <bsp/irq.h>
#include <bsp/riscv.h>
#include <dev/serial/htif.h>
#include <libchip/ns16550.h>
#include <libfdt.h>
#include <string.h>

Functions

rtems_status_code console_initialize (rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
 Console initialization entry point. More...
 
 RTEMS_SYSINIT_ITEM (riscv_console_probe, RTEMS_SYSINIT_BSP_START, RTEMS_SYSINIT_ORDER_LAST_BUT_5)
 

Variables

BSP_output_char_function_type BSP_output_char = riscv_output_char_init
 This function pointer references the kernel character output implementation. More...
 
BSP_polling_getchar_function_type BSP_poll_char = NULL
 This function pointer may reference the kernel character input implementation. More...
 

Detailed Description

This source file contains definitions of BSP_output_char_function_type and :: BSP_output_char and an implementation of console_initialize().

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.

Console initialization entry point.

Initialize all serial drivers specified in driver_context_table

Parameters
[in]major
[in]minor
[in]arg
Return values
RTEMS_SUCCESSFULInitialization completed

This routine initializes the console IO driver.

Parameters

Parameters
majormajor number
minorminor number

Output parameters: NONE

Returns
void