summaryrefslogtreecommitdiff
path: root/ports/esp32/esp32_ulp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/esp32/esp32_ulp.c')
-rw-r--r--ports/esp32/esp32_ulp.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ports/esp32/esp32_ulp.c b/ports/esp32/esp32_ulp.c
index e7962ce1a..439ee3283 100644
--- a/ports/esp32/esp32_ulp.c
+++ b/ports/esp32/esp32_ulp.c
@@ -26,10 +26,15 @@
#include "py/runtime.h"
-
#if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
+#if CONFIG_IDF_TARGET_ESP32
#include "esp32/ulp.h"
+#elif CONFIG_IDF_TARGET_ESP32S2
+#include "esp32s2/ulp.h"
+#elif CONFIG_IDF_TARGET_ESP32S3
+#include "esp32s3/ulp.h"
+#endif
#include "esp_err.h"
typedef struct _esp32_ulp_obj_t {
@@ -106,4 +111,4 @@ MP_DEFINE_CONST_OBJ_TYPE(
locals_dict, &esp32_ulp_locals_dict
);
-#endif // CONFIG_IDF_TARGET_ESP32
+#endif // CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3