資源簡介
海思貌似不支持標準的sys/class/gpio這個節點,也就是內核里的gpiolib.c沒有生效,編譯的話會很多錯誤,所以只能放棄,用比較傻的ioctl來實現了,不知道誰有好辦法可以留言給我
代碼片段和文件信息
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?“gpio_driver.h“
#define?GPIO00_base?(0x20140000)
#define?GPIO01_base?(0x20150000)
#define?GPIO02_base?(0x20160000)
#define?GPIO03_base?(0x20170000)
#define?GPIO04_base?(0x20180000)
#define?GPIO05_base?(0x20190000)
#define?GPIO06_base?(0x201A0000)
#define?GPIO07_base?(0x201B0000)
#define?GPIO08_base?(0x201C0000)
#define?GPIO09_base?(0x201D0000)
#define?GPIO10_base?(0x201E0000)
#define?GPIO11_base?(0x201F0000)
unsigned?int?GPIO_REG[]=
{
????GPIO00_base
????GPIO01_base
????GPIO02_base
????GPIO03_base
????GPIO04_base
????GPIO05_base
????GPIO06_base
????GPIO07_base
????GPIO08_base
????GPIO09_base
????GPIO10_base
????GPIO11_
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A..H.???????781??2017-09-18?14:01??3516a_gpio_driver\ko\.gpio_driver.ko.cmd
????..A..H.?????19164??2017-09-18?14:01??3516a_gpio_driver\ko\.gpio_driver.mod.o.cmd
????..A..H.?????23229??2017-09-18?14:01??3516a_gpio_driver\ko\.gpio_driver.o.cmd
?????文件????????263??2017-09-18?14:01??3516a_gpio_driver\ko\.tmp_versions\gpio_driver.mod
?????文件???????7281??2015-07-14?12:24??3516a_gpio_driver\ko\gpio_driver.c
?????文件????????563??2014-11-20?11:17??3516a_gpio_driver\ko\gpio_driver.h
?????文件???????3999??2017-09-18?14:01??3516a_gpio_driver\ko\gpio_driver.ko
?????文件????????444??2017-09-18?14:01??3516a_gpio_driver\ko\gpio_driver.mod.c
?????文件???????1580??2017-09-18?14:01??3516a_gpio_driver\ko\gpio_driver.mod.o
?????文件???????3144??2017-09-18?14:01??3516a_gpio_driver\ko\gpio_driver.o
?????文件????????342??2017-09-18?14:01??3516a_gpio_driver\ko\Makefile
?????文件????????342??2017-09-18?14:01??3516a_gpio_driver\ko\Makefile~
?????文件??????????0??2017-09-18?14:01??3516a_gpio_driver\ko\Module.symvers
?????文件????????139??2017-09-18?14:01??3516a_gpio_driver\ko\modules.order
?????文件????????238??2015-02-05?15:11??3516a_gpio_driver\ko\readme.txt
?????文件????????563??2015-03-20?21:17??3516a_gpio_driver\src\include\gpio_driver.h
?????文件???????1350??2015-03-20?21:17??3516a_gpio_driver\src\include\hiGpioReg.h
?????文件????????563??2015-03-20?21:17??3516a_gpio_driver\src\src\gpio_driver.h
?????文件???????2639??2017-09-18?14:18??3516a_gpio_driver\src\src\hiGpioReg.c
?????文件???????2637??2017-09-18?14:17??3516a_gpio_driver\src\src\hiGpioReg.c~
?????文件???????1350??2015-03-20?21:17??3516a_gpio_driver\src\src\hiGpioReg.h
?????文件???????6420??2017-09-18?14:18??3516a_gpio_driver\src\src\testgpio
????...D.H.?????????0??2017-09-18?14:20??3516a_gpio_driver\ko\.tmp_versions
?????目錄??????????0??2017-09-18?14:20??3516a_gpio_driver\src\include
?????目錄??????????0??2017-09-18?14:20??3516a_gpio_driver\src\src
?????目錄??????????0??2017-09-18?14:20??3516a_gpio_driver\ko
?????目錄??????????0??2017-09-18?14:20??3516a_gpio_driver\src
?????目錄??????????0??2017-09-18?14:20??3516a_gpio_driver
-----------?---------??----------?-----??----
????????????????77031????????????????????28
............此處省略1個文件信息
- 上一篇:完整cmm解釋器構造實踐 四 :語義分析與代碼生成
- 下一篇:echart統計圖表
評論
共有 條評論