From 22ab4ecfe73c406a715cdc44a379a944a1a951ae Mon Sep 17 00:00:00 2001 From: alirezainallo Date: Wed, 2 Aug 2023 16:38:38 +0330 Subject: [PATCH] bypass gpio map for serial1-3 --- cores/arduino/UARTClass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cores/arduino/UARTClass.cpp b/cores/arduino/UARTClass.cpp index 4eb70d6..776dbca 100644 --- a/cores/arduino/UARTClass.cpp +++ b/cores/arduino/UARTClass.cpp @@ -72,8 +72,8 @@ UARTClass::begin(uint32_t dwBaudRate) void UARTClass::begin(uint32_t dwBaudRate, uint8_t _rx, uint8_t _tx) { - fpioa_set_function((int)MD_PIN_MAP(_rx), this->_rxfunc); - fpioa_set_function((int)MD_PIN_MAP(_tx), this->_txfunc); + fpioa_set_function(_rx, this->_rxfunc); + fpioa_set_function(_tx, this->_txfunc); uart_init(this->_uart); uart_configure(this->_uart, dwBaudRate, UART_BITWIDTH_8BIT, UART_STOP_1, UART_PARITY_NONE); this->_buff = new RingBuffer();