esp32/boards: Add support for XIAO ESP32S3 boards.

Signed-off-by: Jiaxuan Weng <1391548050@qq.com>
This commit is contained in:
Jiaxuan Weng
2023-07-19 16:13:10 +08:00
parent 1758dc728b
commit 7035267aad
6 changed files with 89 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
{
"deploy": [
"../deploy_s3.md"
],
"docs": "",
"features": [
"SPIRAM",
"USB-C",
"WiFi",
"BLE"
],
"features_non_filterable": [
],
"id": "xiao",
"images": [
"xiao_esp32s3.jpg"
],
"mcu": "esp32s3",
"product": "XIAO-ESP32S3",
"thumbnail": "",
"url": "https://wiki.seeedstudio.com/xiao_esp32s3_getting_started/",
"vendor": "Seeed Studio"
}

View File

@@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
freeze("modules")

View File

@@ -0,0 +1,22 @@
# XIAO ESP32 S3 MicroPython Helper Library
from micropython import const
from machine import Pin
# Pin Assignments
# SPI
SPI_MOSI = const(9)
SPI_MISO = const(8)
SPI_CLK = const(7)
# I2C
I2C_SDA = const(5)
I2C_SCL = const(6)
# LED
LED = const(21)
# Helper methods for built in sensors
led = Pin(LED, Pin.OUT, value=0)

View File

@@ -0,0 +1,12 @@
set(IDF_TARGET esp32s3)
set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
boards/sdkconfig.usb
boards/sdkconfig.ble
boards/sdkconfig.240mhz
boards/sdkconfig.spiram_sx
boards/XIAO_ESP32S3/sdkconfig.board
)
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)

View File

@@ -0,0 +1,12 @@
#define MICROPY_HW_BOARD_NAME "XIAO-ESP32S3"
#define MICROPY_HW_MCU_NAME "ESP32-S3-FN8"
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "XIAO-ESP32S3"
#define MICROPY_PY_MACHINE_DAC (0)
#define MICROPY_HW_I2C0_SCL (6)
#define MICROPY_HW_I2C0_SDA (5)
#define MICROPY_HW_SPI1_MOSI (9)
#define MICROPY_HW_SPI1_MISO (8)
#define MICROPY_HW_SPI1_SCK (7)

View File

@@ -0,0 +1,18 @@
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
CONFIG_ESPTOOLPY_AFTER_NORESET=y
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-8MiB.csv"
CONFIG_LWIP_LOCAL_HOSTNAME="XIAO-ESP32S3"
CONFIG_TINYUSB_DESC_CUSTOM_VID=0x2886
CONFIG_TINYUSB_DESC_CUSTOM_PID=0x8056
CONFIG_TINYUSB_DESC_BCD_DEVICE=0x0100
CONFIG_TINYUSB_DESC_MANUFACTURER_STRING="Seeed Studio"
CONFIG_TINYUSB_DESC_PRODUCT_STRING="XIAO ESP32S3"
CONFIG_TINYUSB_DESC_SERIAL_STRING="XIAO ESP32S3"