esp32: Add initial support for ESP32S2 SoCs.

Builds against IDF v4.3-beta2.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2021-02-18 21:24:34 +11:00
parent 8459f538eb
commit 66a86a0615
18 changed files with 125 additions and 20 deletions

View File

@@ -307,10 +307,12 @@ STATIC mp_obj_t machine_uart_make_new(const mp_obj_type_t *type, size_t n_args,
self->rx = 9;
self->tx = 10;
break;
#if SOC_UART_NUM > 2
case UART_NUM_2:
self->rx = 16;
self->tx = 17;
break;
#endif
}
// Remove any existing configuration