Skip to content

Commit de42dd4

Browse files
committed
ports/mimxrt/cyw43_configport: Update CYW43 config.
Update the CYW43 to work with the new CYW43 BTHCI UART backend. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
1 parent ea88d0a commit de42dd4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

ports/mimxrt/cyw43_configport.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@
3434
#include "extmod/modnetwork.h"
3535
#include "pendsv.h"
3636
#include "sdio.h"
37+
#include "extmod/mpbthci.h"
3738

3839
#define CYW43_USE_SPI (0)
3940
#define CYW43_LWIP (1)
4041
#define CYW43_USE_STATS (0)
42+
#define CYW43_ENABLE_BLUETOOTH_OVER_UART (1)
4143

4244
#ifndef CYW43_CHIPSET_FIRMWARE_INCLUDE_FILE
4345
#define CYW43_CHIPSET_FIRMWARE_INCLUDE_FILE "lib/cyw43-driver/firmware/w4343WA1_7_45_98_50_combined.h"
@@ -47,6 +49,10 @@
4749
#define CYW43_WIFI_NVRAM_INCLUDE_FILE "lib/cyw43-driver/firmware/wifi_nvram_1dx.h"
4850
#endif
4951

52+
#ifndef CYW43_BT_FIRMWARE_INCLUDE_FILE
53+
#define CYW43_BT_FIRMWARE_INCLUDE_FILE "lib/cyw43-driver/firmware/cyw43_btfw_4343A1.h"
54+
#endif
55+
5056
#define CYW43_IOCTL_TIMEOUT_US (1000000)
5157
#define CYW43_SLEEP_MAX (50)
5258
#define CYW43_NETUTILS (1)
@@ -75,6 +81,7 @@
7581
#define CYW43_HAL_PIN_PULL_DOWN MP_HAL_PIN_PULL_DOWN
7682

7783
#define CYW43_HAL_MAC_WLAN0 MP_HAL_MAC_WLAN0
84+
#define CYW43_HAL_MAC_BDADDR MP_HAL_MAC_BDADDR
7885

7986
#define cyw43_hal_ticks_us mp_hal_ticks_us
8087
#define cyw43_hal_ticks_ms mp_hal_ticks_ms
@@ -88,9 +95,19 @@
8895
#define cyw43_hal_get_mac_ascii mp_hal_get_mac_ascii
8996
#define cyw43_hal_generate_laa_mac mp_hal_generate_laa_mac
9097

98+
#define cyw43_hal_uart_set_baudrate mp_bluetooth_hci_uart_set_baudrate
99+
#define cyw43_hal_uart_write mp_bluetooth_hci_uart_write
100+
#define cyw43_hal_uart_readchar mp_bluetooth_hci_uart_readchar
101+
91102
#define cyw43_delay_us mp_hal_delay_us
92103
#define cyw43_delay_ms mp_hal_delay_ms
93104

105+
#define cyw43_bluetooth_controller_init mp_bluetooth_hci_controller_init
106+
#define cyw43_bluetooth_controller_deinit mp_bluetooth_hci_controller_deinit
107+
#define cyw43_bluetooth_controller_woken mp_bluetooth_hci_controller_woken
108+
#define cyw43_bluetooth_controller_wakeup mp_bluetooth_hci_controller_wakeup
109+
#define cyw43_bluetooth_controller_sleep_maybe mp_bluetooth_hci_controller_sleep_maybe
110+
94111
#define CYW43_PIN_WL_REG_ON MICROPY_HW_WL_REG_ON
95112
#define CYW43_PIN_WL_HOST_WAKE MICROPY_HW_WL_HOST_WAKE
96113
#define CYW43_PIN_WL_SDIO_1 MICROPY_HW_SDIO_D1

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy