问答 店铺
热搜: ZYNQ FPGA discuz

QQ登录

只需一步,快速开始

微信登录

微信扫码,快速开始

微信扫一扫 分享朋友圈

已有 6042 人浏览分享

开启左侧

关于GPIO实例结构中的IsDual是什么?

[复制链接]
6042 3
/**
* The XGpio driver instance data. The user is required to allocate a
* variable of this type for every GPIO device in the system. A pointer
* to a variable of this type is then passed to the driver API functions.
*/
typedef struct {
        UINTPTR BaseAddress;        /* Device base address */
        u32 IsReady;                /* Device is initialized and ready */
        int InterruptPresent;        /* Are interrupts supported in h/w */
        int IsDual;                /* Are 2 channels supported in h/w */
} XGpio;请问这个IsDual是什么呢?是指的该IO是输入输出双向的吗?

评论 3

卢新硕  新手上路  发表于 2019-9-22 20:34:21 | 显示全部楼层
额.........抱歉,我又看了看框图,是GPIO使能了一个通道,没有使能GPIO2
uisrc  管理员  发表于 2019-9-22 20:50:01 | 显示全部楼层
加油
越努力越幸运!加油!

举报 使用道具

回复
单读如晤  新手上路  发表于 2019-9-22 23:29:37 | 显示全部楼层
加油,小伙伴
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

0

关注

1

粉丝

20

主题
精彩推荐
热门资讯
网友晒图
图文推荐

  • 微信公众平台

  • 扫描访问手机版