I have been using the following with no problems on ESP-IDF 4.4.1.
GPIO.out_w1tc = ((uint32_t)1 << pin);
GPIO.out1_w1tc.val = ((uint32_t)1 << (pin - 32));
I recently installed the master branch, and I now get an error stating:
error: 'GPIO' undeclared (first use in this function)
Any ideas why this is ?
ESP32-S3 GPIO.out_w1ts error Master Branch
Re: ESP32-S3 GPIO.out_w1ts error Master Branch
It is likely that previously the header file where GPIO structure is defined was included through some other header file. Please try adding #include "soc/gpio_struct.h" to your source file.
Who is online
Users browsing this forum: No registered users and 83 guests