Skip to content

Commit b01a360

Browse files
authored
Merge branch 'micropython:master' into samd_i2c
2 parents 8bcdd9e + 338df1a commit b01a360

File tree

34 files changed

+276
-123
lines changed

34 files changed

+276
-123
lines changed

ports/esp32/Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,12 @@ BUILD ?= build-$(BOARD)
2929
endif
3030

3131
# Device serial settings.
32-
PORT ?= /dev/ttyUSB0
33-
BAUD ?= 460800
32+
ifneq ($(PORT),)
33+
PORT_ARG := -p $(PORT)
34+
endif
35+
ifneq ($(BAUD),)
36+
BAUD_ARG := -b $(BAUD)
37+
endif
3438

3539
PYTHON ?= python3
3640

@@ -59,7 +63,7 @@ endif
5963
HELP_BUILD_ERROR ?= "See \033[1;31mhttps://github.com/micropython/micropython/wiki/Build-Troubleshooting\033[0m"
6064

6165
define RUN_IDF_PY
62-
idf.py $(IDFPY_FLAGS) -B $(BUILD) -p $(PORT) -b $(BAUD) $(1)
66+
idf.py $(IDFPY_FLAGS) -B $(BUILD) $(PORT_ARG) $(BAUD_ARG) $(1)
6367
endef
6468

6569
all:

ports/esp32/boards/ARDUINO_NANO_ESP32/board_init.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@
3535
#include "double_tap.h"
3636
#include "usb.h"
3737

38-
#include "tinyusb.h"
39-
#include "tusb_cdc_acm.h"
40-
4138
#define LED_RED GPIO_NUM_46
4239
#define LED_GREEN GPIO_NUM_0
4340
#define LED_BLUE GPIO_NUM_45
@@ -87,11 +84,6 @@ void NANO_ESP32_enter_bootloader(void) {
8784
esp_restart();
8885
}
8986

90-
void NANO_ESP32_usb_callback_line_state_changed(int itf, void *event_in) {
91-
cdcacm_event_t *event = event_in;
92-
mp_usbd_line_state_cb(itf, event->line_state_changed_data.dtr, event->line_state_changed_data.rts);
93-
}
94-
9587
void NANO_ESP32_board_startup(void) {
9688
boardctrl_startup();
9789

ports/esp32/boards/ARDUINO_NANO_ESP32/mpconfigboard.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,9 @@
1919
#define MICROPY_HW_SPI2_SCK (18)
2020

2121
#define MICROPY_HW_ENABLE_USBDEV (1)
22-
#define MICROPY_EXCLUDE_SHARED_TINYUSB_USBD_CDC (1)
23-
#define MICROPY_HW_USB_EXTERNAL_TINYUSB (1)
2422
#define MICROPY_HW_USB_CDC_1200BPS_TOUCH (1)
2523
#define MICROPY_SCHEDULER_STATIC_NODES (1)
2624

27-
#define MICROPY_HW_USB_CUSTOM_LINE_STATE_CB NANO_ESP32_usb_callback_line_state_changed
28-
void NANO_ESP32_usb_callback_line_state_changed(int itf, void *event);
29-
3025
#define MICROPY_BOARD_STARTUP NANO_ESP32_board_startup
3126
void NANO_ESP32_board_startup(void);
3227

ports/esp32/boards/ESP32_GENERIC_S3/sdkconfig.board

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
22
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
3-
CONFIG_ESPTOOLPY_AFTER_NORESET=y
43

54
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=
65
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y

ports/esp32/boards/UM_FEATHERS2/sdkconfig.board

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
22
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
3-
CONFIG_ESPTOOLPY_AFTER_NORESET=y
43

54
CONFIG_SPIRAM_MEMTEST=
65

ports/esp32/boards/UM_FEATHERS2NEO/sdkconfig.board

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
22
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
3-
CONFIG_ESPTOOLPY_AFTER_NORESET=y
43

54
# LWIP
65
CONFIG_LWIP_LOCAL_HOSTNAME="UMFeatherS2Neo"

ports/esp32/boards/UM_FEATHERS3/sdkconfig.board

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
22
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
3-
CONFIG_ESPTOOLPY_AFTER_NORESET=y
43

54
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=
65
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=

ports/esp32/boards/UM_NANOS3/sdkconfig.board

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
22
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
3-
CONFIG_ESPTOOLPY_AFTER_NORESET=y
43

54
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=
65
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y

ports/esp32/boards/UM_PROS3/sdkconfig.board

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
22
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
3-
CONFIG_ESPTOOLPY_AFTER_NORESET=y
43

54
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=
65
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=

ports/esp32/boards/UM_TINYS2/sdkconfig.board

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
22
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
3-
CONFIG_ESPTOOLPY_AFTER_NORESET=y
43

54
# LWIP
65
CONFIG_LWIP_LOCAL_HOSTNAME="UMTinyS2"

0 commit comments

Comments
 (0)