共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 跳转至页
回复
打赏帖 | |
---|---|
汽车电子中巡航控制系统的使用被打赏10分 | |
分享汽车电子中巡航控制系统知识被打赏10分 | |
分享安全气囊系统的检修注意事项被打赏10分 | |
分享电子控制安全气囊计算机知识点被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】【OZONE】使用方法总结被打赏20分 | |
【分享开发笔记,赚取电动螺丝刀】【S32K314】芯片启动流程分析被打赏40分 | |
【分享开发笔记,赚取电动螺丝刀】【S32K146】S32DS RTD 驱动环境搭建被打赏12分 | |
【分享开发笔记,赚取电动螺丝刀】【IAR】libc标注库time相关库函数使用被打赏23分 | |
LP‑MSPM0L1306开发版试用结果被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】【LP-MSPM0L1306】适配 RT-Thread Nano被打赏23分 |