Is there anyway to get access to GPIO input value in boot loader_start.c?
Posted: Tue May 29, 2018 7:25 pm
I'm trying to get a value from a GPIO during the boot stage to decide which partition I would like to jump into.
I've tried to include driver/gpio.h and link driver/gpio.c but it compiled failed with cannot find GPIO in gpio.o
so I've checked rom/gpio.h and find there are a not documented function GPIO_INPUT_GET which I can use.
but I can only get 1 from this function no matter how I tried.
So is there any way I can get a valid value from a GPIO here(in application I use it with input mode and pulldown set to true).
I've tried to include driver/gpio.h and link driver/gpio.c but it compiled failed with cannot find GPIO in gpio.o
so I've checked rom/gpio.h and find there are a not documented function GPIO_INPUT_GET which I can use.
but I can only get 1 from this function no matter how I tried.
So is there any way I can get a valid value from a GPIO here(in application I use it with input mode and pulldown set to true).