Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion libraries/SoftwareSerial/src/SoftwareSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,13 @@ void SoftwareSerial::begin(uint32_t baudRate, HardwareSerial_Config_e SSconfig)

pinMode(_rxPin, INPUT);
if (_invertLogic == false)
pinMode(_rxPin, INPUT_PULLUP); //Enable external pullup if using normal logic
{
//Enable external pullup if using normal logic
//On some GPIO the g_AM_HAL_GPIO_INPUT_PULLUP seems to be strong enough
//to cause problems translation buffers like the TXB0104. Limiting
//to 24k fixing issue.
pinMode(_rxPin, g_AM_HAL_GPIO_INPUT_PULLUP_24);
}

#ifdef DEBUG
am_hal_gpio_output_clear(debugPad);
Expand Down