[X]关闭

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

文档创建者:卢新硕
浏览次数:4313
最后更新:2019-09-22
/**
* 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 | 显示全部楼层

加油,小伙伴
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则