typedef enum GPIOPullType {
PullDisable = 0,
- PullEnable,
- GPIONormal, //PullEnable, please do not use it
- GPIOPullUp, //PullEnable, please do not use it
- GPIOPullDown,//PullEnable, please do not use it
- GPIONOInit,//PullEnable, please do not use it
+ PullEnable = 1,
+ GPIONormal = PullDisable,
+ GPIOPullUp = 1,
+ GPIOPullDown = 2,
}eGPIOPullType_t;
typedef enum GPIOIntType {
typedef enum GPIOPullType {
PullDisable = 0,
- PullEnable,
- GPIONormal, //PullEnable, please do not use it
- GPIOPullUp, //PullEnable, please do not use it
- GPIOPullDown,//PullEnable, please do not use it
- GPIONOInit,//PullEnable, please do not use it
+ PullEnable = 1,
+ GPIONormal = PullDisable,
+ GPIOPullUp = 1,
+ GPIOPullDown = 2,
}eGPIOPullType_t;
typedef enum GPIOIntType {
}
}
status = chip->pull_updown(chip, gpio,value);
- if (status == 0)
- clear_bit(FLAG_IS_OUT, &desc->flags);
lose:
return status;