[RK3399][Android7.1]编写一个安卓的GPIO驱动

 5 E币 
成为会员,免费下载资料
文件大小:155.74 KB 上传者:798253898 时间:2023-01-20 18:36:33 下载量:0
1、在 kernel/drivers 目录下新建 ioctrl 文件夹 # cd kernel/drivers # mkdir ioctrl 在/driver/ioctrl 目录下,新建 ioctrl.c ,ioctrl.h , Kconfig, Makefile 等 4 个文件。 2、在 Kconfig 下添加代码: config IOCTRL tristate "io Control" default y help when system setup,change the io state 在 Makefile 下添加代码: obj-$(CONFIG_IOCTRL) += ioctrl.o 在 ioctrl.c 中添加代码: /* * Driver for pwm demo on Firefly board ioctrl. * * Copyright (C) 2022, Zhongshan T-chip Intelligent Technology Co.,ltd. * Copyright 2006 Sam Chan * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation.
展开
折叠
297
评论
共 0 个
内容存在敏感词
    易百纳技术社区暂无数据
相关资料
关于作者
易百纳技术社区
798253898
贡献资料 1
易百纳技术社区 我上传的资料
登录查看
我赚取的积分
登录查看
我赚取的收益
登录查看
上传资料 赚取积分兑换E币
易百纳技术社区
删除原因
广告/SPAM
恶意灌水
违规内容
文不对题
重复发帖
置顶时间设置
结束时间
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

审核成功

发布时间设置
发布时间:
是否关联周任务-资料模块

审核失败

失败原因
备注
易百纳技术社区