共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 跳转至页
回复
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
【换取逻辑分析仪】自制底板并驱动ArduinoNanoRP2040ConnectLCD扩展板被打赏47分 | |
【分享评测,赢取加热台】RISC-V GCC 内嵌汇编使用被打赏38分 | |
【换取逻辑分析仪】-基于ADI单片机MAX78000的简易MP3音乐播放器被打赏48分 | |
我想要一部加热台+树莓派PICO驱动AHT10被打赏38分 | |
【换取逻辑分析仪】-硬件SPI驱动OLED屏幕被打赏36分 | |
换逻辑分析仪+上下拉与多路选择器被打赏29分 | |
Let'sdo第3期任务合集被打赏50分 | |
换逻辑分析仪+Verilog三态门被打赏27分 | |
换逻辑分析仪+Verilog多输出门被打赏24分 | |
【分享评测,赢取加热台】使用8051单片机驱动WS2812被打赏40分 |