Skip to content

Commit 0d086de

Browse files
authored
Merge pull request #6888 from MicroDev1/microdev-micro-c3
Update board MicroDev microC3
2 parents 33a1006 + 36221bd commit 0d086de

File tree

3 files changed

+86
-16
lines changed

3 files changed

+86
-16
lines changed

ports/espressif/boards/microdev_micro_c3/mpconfigboard.h

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,31 @@
2525
*/
2626

2727
// Board setup
28-
#define MICROPY_HW_BOARD_NAME "MicroDev microC3"
29-
#define MICROPY_HW_MCU_NAME "ESP32-C3FN4"
28+
#define MICROPY_HW_BOARD_NAME "MicroDev microC3"
29+
#define MICROPY_HW_MCU_NAME "ESP32-C3FN4"
3030

3131
// Status LEDs
32-
#define MICROPY_HW_NEOPIXEL (&pin_GPIO7)
33-
#define MICROPY_HW_NEOPIXEL_COUNT (2)
32+
#define MICROPY_HW_NEOPIXEL (&pin_GPIO7)
33+
#define MICROPY_HW_NEOPIXEL_COUNT (2)
3434

35-
#define MICROPY_HW_LED_STATUS (&pin_GPIO8)
35+
#define MICROPY_HW_LED_STATUS (&pin_GPIO8)
3636

3737
// Default bus pins
38-
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO4)
39-
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO5)
38+
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO4)
39+
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO5)
4040

41-
#define DEFAULT_SPI_BUS_SCK (&pin_GPIO1)
42-
#define DEFAULT_SPI_BUS_MOSI (&pin_GPIO2)
43-
#define DEFAULT_SPI_BUS_MISO (&pin_GPIO3)
41+
#define DEFAULT_SPI_BUS_SCK (&pin_GPIO1)
42+
#define DEFAULT_SPI_BUS_MOSI (&pin_GPIO2)
43+
#define DEFAULT_SPI_BUS_MISO (&pin_GPIO3)
4444

45-
#define DEFAULT_UART_BUS_RX (&pin_GPIO20)
46-
#define DEFAULT_UART_BUS_TX (&pin_GPIO21)
45+
#define DEFAULT_UART_BUS_RX (&pin_GPIO20)
46+
#define DEFAULT_UART_BUS_TX (&pin_GPIO21)
4747

48-
// Serial over UART
49-
#define CIRCUITPY_CONSOLE_UART_RX DEFAULT_UART_BUS_RX
50-
#define CIRCUITPY_CONSOLE_UART_TX DEFAULT_UART_BUS_TX
48+
// For REPL over built-in USB Serial
49+
#define CIRCUITPY_ESP_USB_SERIAL_JTAG (1)
50+
51+
// For entering safe mode
52+
#define CIRCUITPY_BOOT_BUTTON (&pin_GPIO9)
53+
54+
// Explanation of how a user got into safe mode
55+
#define BOARD_USER_SAFE_MODE_ACTION translate("pressing boot button at start up.\n")

ports/espressif/boards/microdev_micro_c3/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ IDF_TARGET = esp32c3
55

66
INTERNAL_FLASH_FILESYSTEM = 1
77

8-
CIRCUITPY_ESP_FLASH_MODE = qio
8+
CIRCUITPY_ESP_FLASH_MODE = dio
99
CIRCUITPY_ESP_FLASH_FREQ = 80m
1010
CIRCUITPY_ESP_FLASH_SIZE = 4MB
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,70 @@
1+
# Automatically generated file. DO NOT EDIT.
2+
# Espressif IoT Development Framework (ESP-IDF) Project Configuration
3+
#
4+
# Bootloader config
5+
#
6+
CONFIG_BOOTLOADER_LOG_LEVEL_NONE=y
7+
# CONFIG_BOOTLOADER_LOG_LEVEL_INFO is not set
8+
CONFIG_BOOTLOADER_LOG_LEVEL=0
9+
# end of Bootloader config
10+
11+
#
12+
# Serial flasher config
13+
#
14+
# CONFIG_ESPTOOLPY_FLASHFREQ_26M is not set
15+
# end of Serial flasher config
16+
17+
#
18+
# Partition Table
19+
#
20+
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="esp-idf-config/partitions-4MB-no-uf2.csv"
21+
CONFIG_PARTITION_TABLE_FILENAME="esp-idf-config/partitions-4MB-no-uf2.csv"
22+
# end of Partition Table
23+
24+
#
25+
# Compiler options
26+
#
27+
# CONFIG_COMPILER_SAVE_RESTORE_LIBCALLS is not set
28+
# end of Compiler options
29+
30+
#
31+
# Component config
32+
#
33+
#
34+
35+
#
36+
# PHY
37+
#
38+
CONFIG_ESP_PHY_ENABLE_USB=y
39+
# end of PHY
40+
41+
#
42+
# ESP System Settings
43+
#
44+
# CONFIG_ESP_SYSTEM_USE_EH_FRAME is not set
45+
CONFIG_ESP_CONSOLE_SECONDARY_NONE=y
46+
# CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG is not set
47+
# CONFIG_ESP_DEBUG_STUBS_ENABLE is not set
48+
# end of ESP System Settings
49+
150
#
251
# LWIP
352
#
453
CONFIG_LWIP_LOCAL_HOSTNAME="MicroDev-microC3"
554
# end of LWIP
55+
56+
#
57+
# SPI Flash driver
58+
#
59+
# CONFIG_SPI_FLASH_AUTO_SUSPEND is not set
60+
# end of SPI Flash driver
61+
62+
# end of Component config
63+
64+
#
65+
# Deprecated options for backward compatibility
66+
#
67+
# CONFIG_LOG_BOOTLOADER_LEVEL_INFO is not set
68+
CONFIG_LOG_BOOTLOADER_LEVEL=0
69+
# CONFIG_COMPILER_OPTIMIZATION_LEVEL_DEBUG is not set
70+
# end of Deprecated options for backward compatibility

0 commit comments

Comments
 (0)