From 22ab4ecfe73c406a715cdc44a379a944a1a951ae Mon Sep 17 00:00:00 2001 From: alirezainallo Date: Wed, 2 Aug 2023 16:38:38 +0330 Subject: [PATCH 1/2] 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(); From c2f8db6a9f45166a2f952f608443b179a29fcb2c Mon Sep 17 00:00:00 2001 From: alirezainallo Date: Wed, 2 Aug 2023 16:39:04 +0330 Subject: [PATCH 2/2] Fix Rx/Tx define number --- variants/ioxgd4/pins_arduino.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/variants/ioxgd4/pins_arduino.h b/variants/ioxgd4/pins_arduino.h index 3e10e21..08eda38 100644 --- a/variants/ioxgd4/pins_arduino.h +++ b/variants/ioxgd4/pins_arduino.h @@ -59,8 +59,8 @@ extern class UARTClass Serial3; #define RX0 4 #define TX0 5 -#define RX1 6 -#define TX1 7 +#define RX1 7 +#define TX1 6 #define SDA 33 #define SCL 32