writel readl

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/huabiaochen/article/details/85095662
writel() 往内存映射的 I/O 空间上写数据,wirtel()   I/O 上写入 32 位数据 (4字节)。
 原型:

引用
#include <asm/io.h> 

void writel (unsigned char data , unsigned short addr )

readl() 从内存映射的 I/O 空间读取数据,readl 从 I/O 读取 32 位数据 ( 4 字节 )。
原型:
#include <asm/io.h> 

unsigned char readl (unsigned int addr )

注:变量addr是I/O地址。

返回值 : 从 I/O 空间读取的数值。

猜你喜欢

转载自blog.csdn.net/huabiaochen/article/details/85095662