六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 95|回复: 0

硬件驱动

[复制链接]

升级  61.33%

116

主题

116

主题

116

主题

举人

Rank: 3Rank: 3

积分
384
 楼主| 发表于 2013-1-15 02:04:37 | 显示全部楼层 |阅读模式
按照一定的顺序操作控制寄存器组(芯片内的人机交互),前后台系统中驱动和应用程序合为一体(驱动的概念比较模糊),宏内核Linux则将两者实现了分类,微内核uC/OS介于两者之间。

(转自TI)The Stellaris Peripheral Driver Library provides support for two programming models: the direct register access model and the software driver model. Each programming model can be used independently or combined, based on the needs of the application or the programming environment desired by the developer. The direct register access model includes header files for each specific Stellaris MCU and will generally result in smaller and more efficient code in a software development environment familiar to most deeply embedded firmware engineers and to engineers used to working with 8- and 16-bit MCUs. The software driver model insulates the software engineer from hardware details including the operation of each register, bit field, their interactions, and sequencing required for the proper operation of the peripheral, generally requiring less time to develop applications

编写驱动程序模块应满足以下主要功能:① 对设备初始化;② 把数据从内核传送到硬件和从硬件读取数据;③ 读取应用程序传送给设备的数据和回送应用程序请求的数据;④ 监测和处理设备出现的异常。
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表