There was an error while loading. Please reload this page.
1 parent 9bcdb0a commit d32417cCopy full SHA for d32417c
ports/stm32/uart.c
@@ -241,6 +241,16 @@ STATIC bool uart_init2(pyb_uart_obj_t *uart_obj) {
241
irqn = USART6_IRQn;
242
pins[0] = &MICROPY_HW_UART6_TX;
243
pins[1] = &MICROPY_HW_UART6_RX;
244
+ #if defined(MICROPY_HW_UART6_RTS)
245
+ if (uart_obj->uart.Init.HwFlowCtl & UART_HWCONTROL_RTS) {
246
+ pins[2] = &MICROPY_HW_UART6_RTS;
247
+ }
248
+ #endif
249
+ #if defined(MICROPY_HW_UART6_CTS)
250
+ if (uart_obj->uart.Init.HwFlowCtl & UART_HWCONTROL_CTS) {
251
+ pins[3] = &MICROPY_HW_UART6_CTS;
252
253
254
__USART6_CLK_ENABLE();
255
break;
256
#endif
0 commit comments