共1条
1/1 1 跳转至页
[转帖]16C654 驱动
Hi,
I am trying to integrate Connect Tech's Xtreme/104 to my system. This card uses ST16C654 quad Uart. The problem is that Connect Tech does not provide VxWorks drivers for this card and I do not know how to write my own drivers. Anyone already has the driver for ST16C654?
Thanks
PC/104 boards with multiple UARTs are available from several vendors. VxWorks is designed to support an arbitrary number of serial ports when drivers for the ports are included in the BSP. This is done in the file "sysSerial.c" which is part of Wind River's and third party vendors' BSPs, and contains the following functions:
sysSerialHwInit;
This function performs the specific device initialization. Typically a table with the required information is included in sysSerial.c, and for all configured ports, the initialization code is performed. This typically configures the specific driver for the port, and initializes the SIO structure associated with the port.
sysSerialHwInit2;
This function connects the interrupt handler function with the interrupt subsystem for all ports. If special handling is required for sharing interrupts, it is done here. VxWorks is designed to share several devices on the same interrupt level, so this is typically not required. Some drivers, however, can chain ports so that one interrupt routine can service several ports.
sysSerialChanGet;
This returns an SIO_CHAN structure pointer that points to the specific configuration information and driver routines for an individual port. All SIO compatable drivers will return a structure compatable with this definition.
In order to integrate a diverse set of drivers, the "sysSerial.c" file must be modified to include all driver initialization structures for the various drivers included. There are many drivers included in the VxWorks distribution under the target/src/drv/sio directory, and these can be integrated in a direct fashon. If multiple drivers are used, then the logic in the "sysSerial.c" file
must determine which driver is associated with which port number. There is no general purpose "plug and play" type of configuration, but all configuration code required can be implemented in the "sysSerial.c" file.
This can be easly done by someone familiar with the BSP structure and the SIO driver structure.
关键词: 转帖 16C654 驱动
共1条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
【有奖活动】智能可穿戴设备AR/VR如何引领科技新潮流! | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
【有奖活动】震撼来袭!这场直播将直击工程师的心灵! | |
“我想要一部加热台”活动,不花钱赢取开发好工具!活动开始了哦 | |
【有奖活动】伙伴们:您的“需求”解决了吗? |
打赏帖 | |
---|---|
【换取手持数字示波器】N32G430点亮数码管与串口打印、ADC被打赏40分 | |
老胖子聊电路--分析一个反馈电路被打赏50分 | |
【换取手持数字示波器】+点亮WS2812RGB灯被打赏50分 | |
【换取手持数字示波器】+线性调整器理论知识分享被打赏40分 | |
放大↔震荡被打赏50分 | |
【换取手持数字示波器】RTduino驱动ssd1306+sht31温湿度计被打赏40分 | |
【换取手持数字示波器】称植国产开源TobudOS到雅特力AT32F425被打赏40分 | |
【分享评测,赢取加热台】+Telink-泰凌微电子B91点灯篇被打赏20分 | |
【换取手持数字示波器】+精英板驱动LCD屏被打赏50分 | |
【换取手持数字示波器】+DFR0216全彩灯带WS2812示例分享被打赏50分 |