Direct manipulation of GRIO's 32-39 for ESP32
Posted: Wed May 20, 2020 9:26 am
Hi Folks,
I could not find anywhere how to define GRIO's 32-39 using macros. This is how I thought it could be done:
But apparently it is not the case. In gpio.h file it is defined as:
Definitely I did not understand the idea behind the ESP32 GPIO definition. I would like to know how to define GPIO34 as an input enabling the internal pull down.
Thanks!
Adam
I could not find anywhere how to define GRIO's 32-39 using macros. This is how I thought it could be done:
Code: Select all
REG_WRITE(GPIO_IN1_REG, BIT34);Code: Select all
#define GPIO_SEL_34 ((uint64_t)(((uint64_t)1)<<34))Thanks!
Adam