RTEMS 7.0-rc1
Loading...
Searching...
No Matches
Macros | Functions | Variables
uart.c File Reference

console driver for S3C2400 UARTs More...

#include <bsp.h>
#include <rtems/libio.h>
#include <termios.h>
#include <rtems/bspIo.h>
#include <s3c24xx.h>
#include <libchip/serial.h>
#include <libchip/sersupp.h>

Macros

#define NUM_DEVS   1
 

Functions

int uart_poll_read (int minor)
 

Variables

int dbg_dly
 
unsigned long Console_Configuration_Count = NUM_DEVS
 
const console_fns uart_fns
 
console_tbl Console_Configuration_Ports []
 
BSP_output_char_function_type BSP_output_char = _BSP_put_char
 This function pointer references the kernel character output implementation.
 
BSP_polling_getchar_function_type BSP_poll_char = _BSP_get_char
 This function pointer may reference the kernel character input implementation.
 

Detailed Description

console driver for S3C2400 UARTs

This driver uses the shared console driver in bsps/shared/dev/serial/legacy-console.c

If you want the driver to be interrupt driven, you need to write the ISR, and in the ISR insert the chars into termios's queue.

Variable Documentation

◆ Console_Configuration_Count

unsigned long Console_Configuration_Count = NUM_DEVS

The number of serial ports defined in Console_Configuration_Ports

◆ Console_Configuration_Ports

console_tbl Console_Configuration_Ports[]
Initial value:
= {
{
"/dev/com0",
SERIAL_CUSTOM,
&uart_fns,
NULL,
NULL,
0,
0,
NULL,
0,
0,
0,
NULL,
NULL,
NULL,
NULL,
0,
0
}
}

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

◆ uart_fns

const console_fns uart_fns
Initial value:
=
{
libchip_serial_default_probe,
uart_first_open,
uart_last_close,
uart_read,
uart_write,
uart_init,
uart_write_polled,
uart_set_attributes,
FALSE
}