一个GPIO输出高低电平的驱动源代码
2012-11-03 19
一个GPIO的驱动,输出高低电平驱动源代码:GPIO_DRIVER.C#include < linux / fs.h > //#include <linux/iobuf.h> #include <linux/major.h> #include <linux/blkdev.h> #include <linux/capability.h> #include <linux/smp_lock.h> #include <asm/uaccess.h> #include <asm/hardware.h& .. [查看全文]
Linux头文件中s3c2410 GPIO的宏
2012-06-02 6
一、GPIO寄存器定义 1.#define GPCON(x)__REG2(0x56000000, (x) * 0x10) 这句是定义2410的GPIO的控制寄存器,注意:__REG2的参数是寄存器的物理地址,这个物理地址经_REG2宏转换为虚拟地址,对照2410的手册可以得到一下对应关系: GPCON(1) ------ PORT A0x56000000 GPCON(2) ------ PORT B0 .. [查看全文]

本站简介 | 意见建议 | 免责声明 | 版权声明 | 联系我们
CopyRight@2024-2039 嵌入式资源网
蜀ICP备2021025729号