drivers.c

来自「采用MAX485 芯片 使用ARM 系统硬件的UART 编程实现RS485 通信」· C语言 代码 · 共 36 行

C
36
字号
/***************************************************************************\
	Copyright (c) 2004-2007 threewater@up-tech.com, All rights reserved.
	by threewter	2004.4.26
\***************************************************************************/
	

/***************************************************************************\
    #说明: 驱动程序定义
	----------------------------------  Bug  --------------------------------------

	----------------------------------  TODO list  --------------------------------------

	----------------------------------修正--------------------------------------
	2004-4-26	添加串口驱动程序s3c2410_serialx_driver

\***************************************************************************/

#include "../inc/macro.h"
#include "../inc/drivers.h"
//#include "../inc/sys/sysdrv.h"
#include "uhal/uart.h"

/***************************************************************************\
	for serial drivers
\***************************************************************************/
extern serial_driver_t s3c2410_serial0_driver, s3c2410_serial1_driver, 
		s3c2410_serial2_driver;
serial_driver_t* serial_drv[]={&s3c2410_serial0_driver, &s3c2410_serial1_driver, 
		&s3c2410_serial2_driver};
int NumberOfUartDrv=NumberOfArray(serial_drv);
//struct_Uart_Buffer	Uart_Buffer[NumberOfArray(serial_drv)];




⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?