博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
IMX6Q GPIO定义
阅读量:4551 次
发布时间:2019-06-08

本文共 555 字,大约阅读时间需要 1 分钟。

ret = gpio_request_array(mx6q_sabresd_flexcan_gpios,
                        ARRAY_SIZE(mx6q_sabresd_flexcan_gpios));
static struct gpio mx6q_sabresd_flexcan_gpios[] = {
        { SABRESD_CAN1_STBY, GPIOF_OUT_INIT_LOW, "flexcan1-stby" },
};
#define SABRESD_CAN1_STBY                IMX_GPIO_NR(4, 5)
/* There's a off-by-one betweem the gpio bank number and the gpiochip */
/* range e.g. GPIO_1_5 is gpio 5 under linux */
#define IMX_GPIO_NR(bank, nr)                (((bank) - 1) * 32 + (nr))
以下的bank ,nr是什么意思? 
#define IMX_GPIO_NR(bank, nr)                (((bank) - 1) * 32 + (nr))

转载于:https://www.cnblogs.com/Ph-one/p/9056198.html

你可能感兴趣的文章
C teaching
查看>>
分隔指定内容,提取章节数
查看>>
this point
查看>>
leetcode 30 Substring with Concatenation of All Words
查看>>
验证登录信息是否合法
查看>>
线程池
查看>>
git版本控制器的基本使用
查看>>
Redis 笔记与总结4 set 和 zset 类型
查看>>
jQuery Ajax 回调函数中调用$(this)的问题 [ 转 ]
查看>>
thymeleaf:字符串拼接+输出单引号
查看>>
springboot:集成fastjson(教训)
查看>>
网络流 Edmons-Karp 算法讲解
查看>>
「NOIP2018模拟9.10」公约数 - 找规律 - gcd
查看>>
使用java理解程序逻辑(15)
查看>>
bzoj 1879 状压dp
查看>>
python 一些特殊用法和坑
查看>>
WIFI密码破解全攻略
查看>>
c++string各种函数
查看>>
errno.h含义
查看>>
字典树(模型体)
查看>>