共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 跳转至页
回复
打赏帖 | |
---|---|
C语言函数宏的三种封装方式被打赏50分 | |
【STM32F769】记一次由于开启D-Cache之后DMA数据传输出错的问题查找与解决被打赏35分 | |
嵌入式LinuxC语言程序调试和宏使用技巧被打赏50分 | |
让代码中包含最新的编译时间信息被打赏50分 | |
【分享开发笔记,赚取电动螺丝刀】STM32F769LVGL优化显示被打赏26分 | |
rtthread硬件加密--2crc加密分析被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】STM32F769驱动ST7789以及显示优化被打赏36分 | |
【分享开发笔记,赚取电动螺丝刀】S32K146 PAL模拟I2C驱动适配被打赏23分 | |
我想要一部加热台+电源硬件设计规范被打赏16分 | |
我想要一部加热台+LED背光驱动芯片RT9293知识被打赏18分 |