Skip to content

Commit 77fcc6f

Browse files
committed
use CONFIG_ESP_CONSOLE_UART_{TX,RX}_GPIO instead of deprecated CONFIG_CONSOLE_UART_*_GPIO
1 parent a01d360 commit 77fcc6f

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

ports/espressif/supervisor/port.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,12 @@ safe_mode_t port_init(void) {
251251
#define pin_GPIOn(n) pin_GPIO##n
252252
#define pin_GPIOn_EXPAND(x) pin_GPIOn(x)
253253

254-
#ifdef CONFIG_CONSOLE_UART_TX_GPIO
255-
common_hal_never_reset_pin(&pin_GPIOn_EXPAND(CONFIG_CONSOLE_UART_TX_GPIO));
254+
#ifdef CONFIG_ESP_CONSOLE_UART_TX_GPIO
255+
common_hal_never_reset_pin(&pin_GPIOn_EXPAND(CONFIG_ESP_CONSOLE_UART_TX_GPIO));
256256
#endif
257257

258-
#ifdef CONFIG_CONSOLE_UART_RX_GPIO
259-
common_hal_never_reset_pin(&pin_GPIOn_EXPAND(CONFIG_CONSOLE_UART_RX_GPIO));
258+
#ifdef CONFIG_ESP_CONSOLE_UART_RX_GPIO
259+
common_hal_never_reset_pin(&pin_GPIOn_EXPAND(CONFIG_ESP_CONSOLE_UART_RX_GPIO));
260260
#endif
261261

262262
#ifndef ENABLE_JTAG

py/mpconfig.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2205,6 +2205,12 @@ typedef double mp_float_t;
22052205
#define MP_INLINE inline MP_NO_INSTRUMENT
22062206
#endif
22072207

2208+
// CIRCUITPY-CHANGE
2209+
// Modifier for functions whose return value should not be ignored
2210+
#ifndef MP_WARN_UNUSED_RESULT
2211+
#define MP_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
2212+
#endif
2213+
22082214
// Modifier for functions which should be never inlined
22092215
#ifndef MP_NOINLINE
22102216
#define MP_NOINLINE __attribute__((noinline))

0 commit comments

Comments
 (0)