现在遇到个问题,由于是属于二次开发,不知道具体的底层程序,我想问一下关于IO口的配置问题,我有个理解为浮空输入的函数,/*
* FUNCTION
* oa_gpio_pull_setup
*
* DESCRIPTION
* This function is to enable or disable the pull up/down of the related GPIO pin.
* You can not decide to pull up or down, it is set inside the chip.
* And, the setting is different from pin by pin.
*
* PARAMETERS
* pin : gpio pin number range from 0~54 (MT6219)
* enable: enable the pull up/down
*
* RETURNS
* None
*
* GLOBALS AFFECTED
*
*/
extern void oa_gpio_pull_setup(oa_uint8 pin, oa_bool enable);
当 oa_gpio_pull_setup(gpio 14, 0);时,我可以认为是浮空输入么?
当 oa_gpio_pull_setup(gpio 14, 1);时,我认为是上下拉输入?
|