You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get the latest configuration of the pin, and if it is already configured with the settings that I want to set, i do not need to set it again. So I can pass configuring the pin step.
Here is the explanation of gpio_pin_get_config:
* @retval 0 If successful.
* @retval -ENOSYS if getting the current pin configuration is not implemented
* by the driver.
* @retval -EINVAL Invalid argument.
* @retval -EIO I/O error when accessing an external GPIO chip.
* @retval -EWOULDBLOCK if operation would block.
here is a sample of the codes I am running after boot up:
ret2 and flag return: ret2: 0 flg2: 393216 ( bit 17 and 18 are set 1) It means: GPIO_OUTPUT_LOW. so this shows me the pin already configured during boot up. No need to re-configure the pin, I just wanted to set the high and low the pin.
The issue at this point, unless you re-configure the pin you cannot set/reset the pin.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to get the latest configuration of the pin, and if it is already configured with the settings that I want to set, i do not need to set it again. So I can pass configuring the pin step.
Here is the explanation of gpio_pin_get_config:
here is a sample of the codes I am running after boot up:
ret2 and flag return:
ret2: 0 flg2: 393216
( bit 17 and 18 are set 1) It means: GPIO_OUTPUT_LOW. so this shows me the pin already configured during boot up. No need to re-configure the pin, I just wanted to set the high and low the pin.The issue at this point, unless you re-configure the pin you cannot set/reset the pin.
Is this a bug? or Am I missing a point?
I have configs
Beta Was this translation helpful? Give feedback.
All reactions