Skip to content

Commit

Permalink
more esp build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Feb 18, 2022
1 parent 4612332 commit e188117
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion hw/bsp/esp32s2/boards/esp32s2.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@
#include "soc/usb_periph.h"

#include "driver/rmt.h"
#include "esp_private/periph_ctrl.h"

#if ESP_IDF_VERSION_MAJOR > 4
#include "esp_private/periph_ctrl.h"
#else
#include "driver/periph_ctrl.h"
#endif

#ifdef NEOPIXEL_PIN
#include "led_strip.h"
Expand Down
7 changes: 6 additions & 1 deletion hw/bsp/esp32s3/boards/esp32s3.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@
#include "soc/usb_periph.h"

#include "driver/rmt.h"
#include "esp_private/periph_ctrl.h"

#if ESP_IDF_VERSION_MAJOR > 4
#include "esp_private/periph_ctrl.h"
#else
#include "driver/periph_ctrl.h"
#endif

#ifdef NEOPIXEL_PIN
#include "led_strip.h"
Expand Down

0 comments on commit e188117

Please sign in to comment.