File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,7 @@ extern struct _spi_bdev_t spi_bdev2;
185
185
// Bluetooth config
186
186
#define MICROPY_HW_BLE_UART_ID (PYB_UART_6)
187
187
#define MICROPY_HW_BLE_UART_BAUDRATE (115200)
188
+ #define MICROPY_HW_BLE_UART_BAUDRATE_SECONDARY (3000000)
188
189
189
190
/******************************************************************************/
190
191
// Bootloader configuration
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ uint32_t hal_time_ms(void) {
58
58
STATIC const hci_transport_config_uart_t hci_transport_config_uart = {
59
59
HCI_TRANSPORT_CONFIG_UART ,
60
60
MICROPY_HW_BLE_UART_BAUDRATE ,
61
- 3000000 ,
61
+ MICROPY_HW_BLE_UART_BAUDRATE_SECONDARY ,
62
62
0 ,
63
63
NULL ,
64
64
};
@@ -90,9 +90,9 @@ void mp_bluetooth_btstack_port_init(void) {
90
90
const hci_transport_t * transport = hci_transport_h4_instance (& mp_bluetooth_btstack_hci_uart_block );
91
91
hci_init (transport , & hci_transport_config_uart );
92
92
93
- // TODO: Probably not necessary for BCM (we have our own firmware loader in the cyw43 driver),
94
- // but might be worth investigating for other controllers in the future.
95
- // hci_set_chipset(btstack_chipset_bcm_instance());
93
+ #ifdef MICROPY_HW_BLE_BTSTACK_CHIPSET_INSTANCE
94
+ hci_set_chipset ( MICROPY_HW_BLE_BTSTACK_CHIPSET_INSTANCE );
95
+ #endif
96
96
}
97
97
98
98
void mp_bluetooth_btstack_port_deinit (void ) {
You can’t perform that action at this time.
0 commit comments