Accessing gpio 25-39 (as input) from wake stub
Posted: Mon Mar 12, 2018 2:11 pm
In one of my projects I'm using wake stub to check the state of some pins and take some action.
Everythig works fine (as expected) for all the gpios up to 25.
Checking the gpios 25-39 with GPIO_INPUT_GET(gpio) always returns 0.
This is acctualy expected, as those gpios have input disabled after reset.
My question is: how I can enable the input on gpio 25-39 from wake stub ? There is no function in rom for that (or I can't find one).
Setting the gpio direction and enabling as input only from the main application does not help.
Everythig works fine (as expected) for all the gpios up to 25.
Checking the gpios 25-39 with GPIO_INPUT_GET(gpio) always returns 0.
This is acctualy expected, as those gpios have input disabled after reset.
My question is: how I can enable the input on gpio 25-39 from wake stub ? There is no function in rom for that (or I can't find one).
Setting the gpio direction and enabling as input only from the main application does not help.