Skip to content

Commit 429728b

Browse files
author
eng33
committed
ports/esp32/boards: Add WAVESHARE_ESP32_S3_PICO board configuration.
Signed-off-by: eng33 <[email protected]>
1 parent 18c9abc commit 429728b

File tree

7 files changed

+95
-0
lines changed

7 files changed

+95
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"deploy": [
3+
"../deploy_s3.md"
4+
],
5+
"docs": "",
6+
"features": [
7+
"BLE",
8+
"External Flash",
9+
"External RAM",
10+
"WiFi"
11+
],
12+
"images": [
13+
"generic_s3.jpg"
14+
],
15+
"mcu": "esp32s3",
16+
"product": "Waveshare ESP32-S3-Pico",
17+
"thumbnail": "",
18+
"url": "https://www.waveshare.com/ESP32-S3-Pico.htm",
19+
"vendor": "Waveshare",
20+
"variants": {
21+
"SPIRAM_OCT": "Support for SPIRAM"
22+
}
23+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The following files are firmware for the WAVESHARE_ESP32_S3_PICO.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include("$(PORT_DIR)/boards/manifest.py")
2+
freeze("modules")
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
from micropython import const
3+
4+
D0 = const(11)
5+
D1 = const(12)
6+
D2 = const(13)
7+
D3 = const(14)
8+
D4 = const(15)
9+
D5 = const(16)
10+
D6 = const(17)
11+
D7 = const(18)
12+
D8 = const(33)
13+
D9 = const(34)
14+
D10= const(35)
15+
D11= const(36)
16+
D12= const(37)
17+
D13= const(38)
18+
D14= const(39)
19+
D15= const(40)
20+
D16= const(42)
21+
D17= const(41)
22+
D18= const(1)
23+
D19= const(2)
24+
D20= const(4)
25+
D21= const(5)
26+
D22= const(6)
27+
D26= const(7)
28+
D27= const(8)
29+
D28= const(9)
30+
31+
A1= const(7)
32+
A2= const(8)
33+
A3= const(9)
34+
35+
RGB_PIN= const(21)
36+
USB_ADC= const(3)
37+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
set(IDF_TARGET esp32s3)
2+
3+
set(SDKCONFIG_DEFAULTS
4+
boards/sdkconfig.base
5+
${SDKCONFIG_IDF_VERSION_SPECIFIC}
6+
boards/sdkconfig.usb
7+
boards/sdkconfig.ble
8+
boards/sdkconfig.spiram_sx
9+
${MICROPY_BOARD_DIR}/sdkconfig.board
10+
)
11+
12+
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#ifndef MICROPY_HW_BOARD_NAME
2+
// Can be set by mpconfigboard.cmake.
3+
#define MICROPY_HW_BOARD_NAME "WAVESHARE_ESP32_S3_PICO"
4+
#endif
5+
#define MICROPY_HW_MCU_NAME "ESP32S3"
6+
7+
#define MICROPY_HW_I2C0_SCL (7)
8+
#define MICROPY_HW_I2C0_SDA (6)
9+
10+
// Enable UART REPL for modules that have an external USB-UART and don't use native USB.
11+
#define MICROPY_HW_ENABLE_UART_REPL (1)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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"

0 commit comments

Comments
 (0)