首页 / AMD-FPGA / 帖子

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

作者 卢新硕 2019-09-22 11308 次浏览 3 条回复 论坛存档
卢
卢新硕
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.
$ F- K. p- y2 V& T7 C1 G */
typedef struct {
        UINTPTR BaseAddress;        /* Device base address */
) L3 p; M6 Z2 i5 ^. E, L3 p        u32 IsReady;                /* Device is initialized and ready */
5 P5 u7 @, a- c/ m( z) z; I+ i2 o        int InterruptPresent;        /* Are interrupts supported in h/w */
9 ^7 W0 V3 r( z9 x: j% k$ Y        int IsDual;[/color]                /* Are 2 channels supported in h/w */
} XGpio;请问这个IsDual是什么呢?是指的该IO是输入输出双向的吗?
卢
卢新硕
2019-09-22
#1

额.........抱歉,我又看了看框图,是GPIO使能了一个通道,没有使能GPIO2

uisrc
uisrc
2019-09-22
#2

加油{:1_144:}

单
单读如晤
2019-09-22
#3

加油,小伙伴

这是论坛时期的原帖存档,只读。新的讨论请到 提问, 沉淀下来的内容会进 知识库 和 方案库。