serial.h
来自「嵌入式系统设计与实例开发实验教材二源码 多线程应用程序设计 串行端口程序设计」· C头文件 代码 · 共 45 行
H
45 行
/* * include/asm-arm/arch-s3c2410/serial.h * * All this is intended to be used with a 16550-like UART on the PCMCIA bus. * It has nothing to do with the SA1100's internal serial ports. * This is included by serial.c -- serial_s3c2410.c makes no use of it. *//* * This assumes you have a 1.8432 MHz clock for your UART. * * It'd be nice if someone built a serial card with a 24.576 MHz * clock, since the 16550A is capable of handling a top speed of 1.5 * megabits/second; but this requires the faster clock. */#define BASE_BAUD ( 1843200 / 16 )/* Standard COM flags */#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)/* * Rather empty table... * Hardwired serial ports should be defined here. * PCMCIA will fill it dynamically. */#if defined(CONFIG_SMDK_THREEWATER1)#define RS_TABLE_SIZE 1#define STD_SERIAL_PORT_DEFNS \ /* UART CLK PORT IRQ FLAGS */ \ { 0, BASE_BAUD, CX06883_BASE, IRQ_16550A, ASYNC_BOOT_AUTOCONF} \#define EXTRA_SERIAL_PORT_DEFNS #else#define RS_TABLE_SIZE 4#define STD_SERIAL_PORT_DEFNS \ /* UART CLK PORT IRQ FLAGS */ \ { 0, BASE_BAUD, 0, 0, STD_COM_FLAGS }, \ { 0, BASE_BAUD, 0, 0, STD_COM_FLAGS }, \ { 0, BASE_BAUD, 0, 0, STD_COM_FLAGS }, \ { 0, BASE_BAUD, 0, 0, STD_COM_FLAGS }#define EXTRA_SERIAL_PORT_DEFNS#endif /*defined(CONFIG_SMDK_THREEWATER1)*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?