Skip to content

Commit 274a101

Browse files
committed
BLE CyH4 - wait for completion of uart transfer
Change needed to make the ble working for portenta h7 with an external 32khz oscillator and considering a uart baud rate of 115200.
1 parent 3a38556 commit 274a101

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

features/FEATURE_BLE/targets/TARGET_STM/TARGET_CYW4343X/CyH4TransportDriver.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ uint16_t CyH4TransportDriver::write(uint8_t type, uint16_t len, uint8_t *pData)
164164
uart.write(&to_write, 1);
165165
++i;
166166
}
167+
while (uart.writeable() == 0);
167168

168169
deassert_bt_dev_wake();
169170
sleep_manager_unlock_deep_sleep();

0 commit comments

Comments
 (0)