Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport v3.7-branch] STM32WB55 BLE not working #76686

Merged
merged 2 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/bluetooth/hci/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ config BT_STM32_IPM
depends on DT_HAS_ST_STM32WB_RF_ENABLED
select USE_STM32_HAL_CORTEX
select HAS_STM32LIB
select BT_HCI_SETUP
help
TODO

Expand Down
18 changes: 15 additions & 3 deletions drivers/bluetooth/hci/ipm_stm32wb.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,16 +565,27 @@ static int bt_ipm_open(const struct device *dev, bt_hci_recv_t recv)
K_PRIO_COOP(CONFIG_BT_DRIVER_RX_HIGH_PRIO),
0, K_NO_WAIT);

hci->recv = recv;

LOG_DBG("IPM Channel Open Completed");

return 0;
}

static int bt_ipm_setup(const struct device *dev, const struct bt_hci_setup_params *params)
{
ARG_UNUSED(params);
ARG_UNUSED(dev);
int err;

#ifdef CONFIG_BT_HCI_HOST
err = bt_ipm_ble_init();
if (err) {
return err;
}
#endif /* CONFIG_BT_HCI_HOST */

hci->recv = recv;

LOG_DBG("IPM Channel Open Completed");
LOG_DBG("IPM Channel Setup Completed");

return 0;
}
Expand Down Expand Up @@ -613,6 +624,7 @@ static const struct bt_hci_driver_api drv = {
.close = bt_ipm_close,
#endif
.send = bt_ipm_send,
.setup = bt_ipm_setup,
};

static int _bt_ipm_init(const struct device *dev)
Expand Down