summaryrefslogtreecommitdiff
path: root/ports/esp32/uart.c
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2024-11-01 16:32:48 +1100
committerDamien George <damien@micropython.org>2024-12-10 23:21:46 +1100
commit6e5d8d009349a7d7932ab0c93a739a576a3594d3 (patch)
tree7d570af1d673c8b679582bfeefa25cb02934f105 /ports/esp32/uart.c
parent82e382a399b07e0af64516749c12882fc0804a6d (diff)
esp32: Drop support for ESP-IDF below V5.2.0.
Specifically, remove all conditional compilation for these earlier versions and change the idf_component.yml specifiers to require >=5.2.0. Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'ports/esp32/uart.c')
-rw-r--r--ports/esp32/uart.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ports/esp32/uart.c b/ports/esp32/uart.c
index 833626850..491314e04 100644
--- a/ports/esp32/uart.c
+++ b/ports/esp32/uart.c
@@ -51,11 +51,7 @@ static void uart_irq_handler(void *arg);
void uart_stdout_init(void) {
uart_hal_context_t repl_hal = REPL_HAL_DEFN();
- #if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 2, 0)
- uart_sclk_t sclk;
- #else
soc_module_clk_t sclk;
- #endif
uint32_t sclk_freq;
uart_hal_get_sclk(&repl_hal, &sclk); // To restore SCLK after uart_hal_init() resets it