File tree 11 files changed +993
-0
lines changed 11 files changed +993
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "deploy" : [
3
+ " ../deploy_s3.md"
4
+ ],
5
+ "docs" : " " ,
6
+ "features" : [
7
+ " BLE" ,
8
+ " WiFi"
9
+ ],
10
+ "images" : [
11
+ " generic_s3.jpg"
12
+ ],
13
+ "mcu" : " esp32s3" ,
14
+ "product" : " Generic ESP32-S3 (SPIRAM Octal)" ,
15
+ "thumbnail" : " " ,
16
+ "url" : " https://www.espressif.com/en/products/modules" ,
17
+ "vendor" : " Espressif"
18
+ }
Original file line number Diff line number Diff line change
1
+ set (IDF_TARGET esp32s3)
2
+
3
+ set (SDKCONFIG_DEFAULTS
4
+ boards/sdkconfig.base
5
+ boards/sdkconfig.usb
6
+ boards/sdkconfig.ble
7
+ boards/sdkconfig.240mhz
8
+ boards/sdkconfig.gram_oct
9
+ boards/GENERIC_S3_SPIRAM_OCT/sdkconfig.board
10
+ )
Original file line number Diff line number Diff line change
1
+ #define MICROPY_HW_BOARD_NAME "ESP32S3 module (gram octal)"
2
+ #define MICROPY_HW_MCU_NAME "ESP32S3"
3
+
4
+ #define MICROPY_PY_MACHINE_DAC (0)
5
+
6
+ // Enable UART REPL for modules that have an external USB-UART and don't use native USB.
7
+ #define MICROPY_HW_ENABLE_UART_REPL (1)
8
+
9
+ #define MICROPY_HW_I2C0_SCL (9)
10
+ #define MICROPY_HW_I2C0_SDA (8)
Original file line number Diff line number Diff line change
1
+ CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
2
+ CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
3
+ CONFIG_ESPTOOLPY_AFTER_NORESET=y
4
+
5
+ CONFIG_ESPTOOLPY_FLASHSIZE_4MB=
6
+ CONFIG_ESPTOOLPY_FLASHSIZE_8MB=
7
+ CONFIG_ESPTOOLPY_FLASHSIZE_16MB=Y
8
+ CONFIG_PARTITION_TABLE_CUSTOM=y
9
+ CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-16MiB.csv"
Original file line number Diff line number Diff line change 6
6
// Enable UART REPL for modules that have an external USB-UART and don't use native USB.
7
7
#define MICROPY_HW_ENABLE_UART_REPL (1)
8
8
9
+ #define MICROPY_ESP_ENABLE_PSRAM_OCT (1)
10
+
9
11
#define MICROPY_HW_I2C0_SCL (9)
10
12
#define MICROPY_HW_I2C0_SDA (8)
Original file line number Diff line number Diff line change
1
+ # MicroPython on ESP32-S2 and ESP32-PAD1_subscript_3, ESP IDF configuration with SPIRAM support in Octal mode
2
+ CONFIG_SPIRAM_MODE_QUAD=y
3
+ CONFIG_SPIRAM_TYPE_AUTO=y
4
+ CONFIG_SPIRAM_CLK_IO=30
5
+ CONFIG_SPIRAM_CS_IO=26
6
+ # In espidf5.1 the speed can be up to 120M(improve the display effect), TODO.
7
+ # TODO, make other CONFIG which also improve the display effect.
8
+ # But in the 120M speed, espidf say that temperature safety cannot be ensured.
9
+ CONFIG_SPIRAM_SPEED_80M=y
10
+ CONFIG_SPIRAM=y
11
+ CONFIG_SPIRAM_BOOT_INIT=y
12
+ CONFIG_SPIRAM_IGNORE_NOTFOUND=y
13
+ CONFIG_SPIRAM_USE_CAPS_ALLOC=y
14
+ CONFIG_SPIRAM_MODE_QUAD=
15
+ CONFIG_SPIRAM_MODE_OCT=y
Original file line number Diff line number Diff line change 38
38
#include "esp_event.h"
39
39
#include "esp_log.h"
40
40
#include "esp_psram.h"
41
+ #include "esp_heap_caps.h"
41
42
42
43
#include "py/stackctrl.h"
43
44
#include "py/nlr.h"
64
65
#include "modespnow.h"
65
66
#endif
66
67
68
+ #if MICROPY_ESP32S3_LCDCAM
69
+ #include "modesp32s3.h"
70
+ #endif
71
+
67
72
// MicroPython runs as a task under FreeRTOS
68
73
#define MP_TASK_PRIORITY (ESP_TASK_PRIO_MIN + 1)
69
74
#define MP_TASK_STACK_SIZE (16 * 1024)
@@ -160,6 +165,11 @@ void mp_task(void *pvParameter) {
160
165
MP_STATE_PORT (espnow_singleton ) = NULL ;
161
166
#endif
162
167
168
+ #if MICROPY_ESP32S3_LCDCAM
169
+ mp_esp32s3_lcd_cam_global_deinit ();
170
+ MP_STATE_PORT (esp32s3_lcd_cam_singleton ) = NULL ;
171
+ #endif
172
+
163
173
machine_timer_deinit_all ();
164
174
165
175
#if MICROPY_PY_THREAD
Original file line number Diff line number Diff line change @@ -8,4 +8,12 @@ if(NOT MICROPY_PORT_DIR)
8
8
get_filename_component (MICROPY_PORT_DIR ${MICROPY_DIR} /ports/esp32 ABSOLUTE )
9
9
endif ()
10
10
11
+ list (APPEND MICROPY_SOURCE_PORT
12
+ modesp32s3.c
13
+ )
14
+
15
+ list (APPEND IDF_COMPONENTS
16
+ esp_lcd
17
+ )
18
+
11
19
include (${MICROPY_PORT_DIR} /esp32_common.cmake)
You can’t perform that action at this time.
0 commit comments