Skip to content

Commit 70c0ab9

Browse files
committed
Merge branch 'master' into core-ble
2 parents afaccf2 + e6f0bb2 commit 70c0ab9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

libraries/SoftwareSerial/src/SoftwareSerial.cpp

+7-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,13 @@ void SoftwareSerial::begin(uint32_t baudRate, HardwareSerial_Config_e SSconfig)
122122

123123
pinMode(_rxPin, INPUT);
124124
if (_invertLogic == false)
125-
pinMode(_rxPin, INPUT_PULLUP); //Enable external pullup if using normal logic
125+
{
126+
//Enable external pullup if using normal logic
127+
//On some GPIO the g_AM_HAL_GPIO_INPUT_PULLUP seems to be strong enough
128+
//to cause problems translation buffers like the TXB0104. Limiting
129+
//to 24k fixing issue.
130+
pinMode(_rxPin, g_AM_HAL_GPIO_INPUT_PULLUP_24);
131+
}
126132

127133
#ifdef DEBUG
128134
am_hal_gpio_output_clear(debugPad);

0 commit comments

Comments
 (0)