Skip to content

Commit 098df08

Browse files
erwangocarlescufi
authored andcommitted
drivers: bluetooth: stm32wba: Configure flash manager
Configure flash manager at BLE init. Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
1 parent c81e2ff commit 098df08

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/bluetooth/hci/hci_stm32wba.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
#include "blestack.h"
2222
#include "app_conf.h"
2323
#include "ll_sys.h"
24-
/* TODO: Enable Flash Manager once available */
25-
/* #include "flash_driver.h" */
24+
#include "flash_driver.h"
2625

2726
#define LOG_LEVEL CONFIG_BT_HCI_DRIVER_LOG_LEVEL
2827
#include <zephyr/logging/log.h>
@@ -360,7 +359,9 @@ static int bt_hci_stm32wba_open(void)
360359
ret = bt_ble_ctlr_init();
361360

362361
/* TODO. Enable Flash manager once available */
363-
/* FD_SetStatus(FD_FLASHACCESS_RFTS_BYPASS, LL_FLASH_DISABLE); */
362+
if (IS_ENABLED(CONFIG_FLASH)) {
363+
FD_SetStatus(FD_FLASHACCESS_RFTS_BYPASS, LL_FLASH_DISABLE);
364+
}
364365

365366
return ret;
366367
}

0 commit comments

Comments
 (0)