summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriabdalkader <i.abdalkader@gmail.com>2023-09-06 12:33:55 +0200
committerDamien George <damien@micropython.org>2023-09-29 23:09:35 +1000
commit361ca7d5ee8d661b72af749a02d988d580b89bc2 (patch)
tree189bc4d9524c3eafcc704b9773fabce43117c200
parent552b0bbe12a1e8a015d287e31f9cc615afa0a3b2 (diff)
mimxrt/mpbthciport: Enable flow control for BT HCI UART.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
-rw-r--r--ports/mimxrt/mpbthciport.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ports/mimxrt/mpbthciport.c b/ports/mimxrt/mpbthciport.c
index d8b384136..2540abca4 100644
--- a/ports/mimxrt/mpbthciport.c
+++ b/ports/mimxrt/mpbthciport.c
@@ -85,13 +85,14 @@ int mp_bluetooth_hci_uart_init(uint32_t port, uint32_t baudrate) {
mp_obj_t args[] = {
MP_OBJ_NEW_SMALL_INT(port),
MP_OBJ_NEW_QSTR(MP_QSTR_baudrate), MP_OBJ_NEW_SMALL_INT(baudrate),
+ MP_OBJ_NEW_QSTR(MP_QSTR_flow), MP_OBJ_NEW_SMALL_INT(3),
MP_OBJ_NEW_QSTR(MP_QSTR_timeout), MP_OBJ_NEW_SMALL_INT(200),
MP_OBJ_NEW_QSTR(MP_QSTR_timeout_char), MP_OBJ_NEW_SMALL_INT(200),
MP_OBJ_NEW_QSTR(MP_QSTR_txbuf), MP_OBJ_NEW_SMALL_INT(768),
MP_OBJ_NEW_QSTR(MP_QSTR_rxbuf), MP_OBJ_NEW_SMALL_INT(768),
};
- mp_bthci_uart = MP_OBJ_TYPE_GET_SLOT(&machine_uart_type, make_new)((mp_obj_t)&machine_uart_type, 1, 5, args);
+ mp_bthci_uart = MP_OBJ_TYPE_GET_SLOT(&machine_uart_type, make_new)((mp_obj_t)&machine_uart_type, 1, 6, args);
MP_STATE_PORT(mp_bthci_uart) = mp_bthci_uart;
// Start the HCI polling to process any initial events/packets.