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))

最新文章

  1. Centos 6.5安装bugzilla 5.0.2
  2. 修改主机hostname
  3. JavaScript内存优化
  4. js或css文件合并的三种方式推荐
  5. PS------“窗口” -> "扩展功能"使用方法
  6. 使用Timer类的两个实例 动态时钟
  7. CSS3 3D Transform
  8. Asp.net MVC 视图之公用代码
  9. Alljoyn 概述(2)
  10. jQuery 元素移除empty() remove()与detach()的区别?
  11. JavaScript 基础二
  12. 【http转https】其之二:申请Let's Encrypt颁发SSL证书
  13. DCOMP——分散式计算
  14. Reference.svcmap: Could not load file or assembly
  15. SQL优化系列——查询优化器
  16. QT QTransform与QMatrix 有啥区别?
  17. PHP程序执行时间过长,超时了怎么办
  18. javascript 获取iframe里页面中元素值的方法 关于contentWindow和contentDocumen
  19. Android studio及eclipse中的junit单元測试
  20. phpcms利用广告位实现轮播图调用

热门文章

  1. 利用border制作三角形原理
  2. java框架---->zxing框架的使用
  3. devstack screen 详解
  4. 【CSS系列】图像映射
  5. Sass-学习笔记【进阶篇】
  6. go练习2-go的学习资料
  7. rman备份的其它特性
  8. 模拟退火算法(run away poj1379)
  9. 最舒适的路(并查集+枚举)(hdu1598)
  10. 整数快速幂hdu(1852)