File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/lgfx/v1/platforms/esp32 Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,13 @@ Original Source:
156
156
#endif
157
157
158
158
159
+
160
+ #if defined (CONFIG_IDF_TARGET_ESP32C6) || defined (CONFIG_IDF_TARGET_ESP32P4) || ( defined (CONFIG_IDF_TARGET_ESP32C3) && ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 2) )
161
+ #define LGFX_GPIO_IN_SEL_CFG_REG
162
+ #endif
163
+
164
+
165
+
159
166
namespace lgfx
160
167
{
161
168
inline namespace v1
@@ -169,7 +176,7 @@ namespace lgfx
169
176
170
177
static int search_pin_number (int peripheral_sig)
171
178
{
172
- #if defined (CONFIG_IDF_TARGET_ESP32C6) || defined (CONFIG_IDF_TARGET_ESP32P4)
179
+ #if defined LGFX_GPIO_IN_SEL_CFG_REG
173
180
uint32_t result = GPIO.func_in_sel_cfg [peripheral_sig].in_sel ;
174
181
#else
175
182
uint32_t result = GPIO.func_in_sel_cfg [peripheral_sig].func_sel ;
@@ -382,7 +389,7 @@ namespace lgfx
382
389
*gpio_en_reg = 1u << (pin & 31 );
383
390
384
391
385
- #if defined (CONFIG_IDF_TARGET_ESP32C6) || defined (CONFIG_IDF_TARGET_ESP32P4)
392
+ #if defined LGFX_GPIO_IN_SEL_CFG_REG
386
393
GPIO.func_out_sel_cfg [pin].out_sel = SIG_GPIO_OUT_IDX;
387
394
#else
388
395
GPIO.func_out_sel_cfg [pin].func_sel = SIG_GPIO_OUT_IDX;
You can’t perform that action at this time.
0 commit comments