drivers/cyw43: Use board-defined BLE UART secondary baudrate.
The secondary baudrate was defined by boards but never used in this driver.
This commit is contained in:
parent
7c6a9856ea
commit
e9335e4dea
|
@ -159,8 +159,8 @@ STATIC int cywbt_download_firmware(const uint8_t *firmware) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mp_bluetooth_hci_uart_set_baudrate(115200);
|
mp_bluetooth_hci_uart_set_baudrate(115200);
|
||||||
cywbt_set_baudrate(3000000);
|
cywbt_set_baudrate(MICROPY_HW_BLE_UART_BAUDRATE_SECONDARY);
|
||||||
mp_bluetooth_hci_uart_set_baudrate(3000000);
|
mp_bluetooth_hci_uart_set_baudrate(MICROPY_HW_BLE_UART_BAUDRATE_SECONDARY);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -192,8 +192,8 @@ int mp_bluetooth_hci_controller_init(void) {
|
||||||
cywbt_hci_cmd(0x03, 0x0003, 0, NULL);
|
cywbt_hci_cmd(0x03, 0x0003, 0, NULL);
|
||||||
|
|
||||||
// Change baudrate
|
// Change baudrate
|
||||||
cywbt_set_baudrate(3000000);
|
cywbt_set_baudrate(MICROPY_HW_BLE_UART_BAUDRATE_SECONDARY);
|
||||||
mp_bluetooth_hci_uart_set_baudrate(3000000);
|
mp_bluetooth_hci_uart_set_baudrate(MICROPY_HW_BLE_UART_BAUDRATE_SECONDARY);
|
||||||
|
|
||||||
cywbt_download_firmware((const uint8_t*)CYWBT_FW_ADDR);
|
cywbt_download_firmware((const uint8_t*)CYWBT_FW_ADDR);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue