Skip to content

Commit 4f477da

Browse files
authored
Merge pull request #505 from artemy/main
#504: Fix build for ESP32P4
2 parents 2bd6cb5 + 107c123 commit 4f477da

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ jobs:
123123
- name: ESP32_GENERIC_S3-SPIRAM_OCT-32_OCTFLASH
124124
run: python3 make.py esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT --flash-size=32 --octal-flash DISPLAY=all INDEV=all EXPANDER=all --ccache --no-scrub
125125

126+
- name: ESP32_GENERIC_P4-4
127+
run: python3 make.py esp32 BOARD=ESP32_GENERIC_P4 --flash-size=4 DISPLAY=all INDEV=all EXPANDER=all --ccache --no-scrub
128+
129+
- name: ESP32_GENERIC_P4-8
130+
run: python3 make.py esp32 BOARD=ESP32_GENERIC_P4 --flash-size=8 DISPLAY=all INDEV=all EXPANDER=all --ccache --no-scrub
131+
126132
# rp2-rel:
127133
# runs-on: ubuntu-latest
128134
# steps:

ext_mod/lcd_bus/esp32_src/i80_bus.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,12 @@
151151
self->bus_config.data_gpio_nums[15] = args[ARG_data15].u_int;
152152

153153
uint8_t i = 0;
154-
for (; i < SOC_LCD_I80_BUS_WIDTH; i++) {
154+
#if CONFIG_IDF_TARGET_ESP32P4
155+
uint8_t bus_width = SOC_LCDCAM_I80_BUS_WIDTH;
156+
#else
157+
uint8_t bus_width = SOC_LCD_I80_BUS_WIDTH;
158+
#endif
159+
for (; i < bus_width; i++) {
155160
if (self->bus_config.data_gpio_nums[i] == -1) {
156161
break;
157162
}

0 commit comments

Comments
 (0)