Skip to content

Commit 1c110b8

Browse files
damien0x0023andriy-bilynskyy
authored andcommitted
hal: telink: b95: Reset Radio APIs
- Power RF module off in BT controller Init and De-init for b95 - Replace B95 BLE lib Signed-off-by: Damien Ji <yinghao.ji@telink-semi.com>
1 parent e42cb25 commit 1c110b8

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

tlsr9/ble/vendor/controller/b9x_bt.c

+4
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,10 @@ int b9x_bt_controller_init()
216216
#endif /* CONFIG_PM && CONFIG_SOC_SERIES_RISCV_TELINK_B9X_RETENTION */
217217

218218
/* Reset Radio */
219+
#if CONFIG_SOC_RISCV_TELINK_B91 || CONFIG_SOC_RISCV_TELINK_B92
219220
rf_radio_reset();
220221
rf_reset_dma();
222+
#endif
221223
rf_baseband_reset();
222224

223225
/* Init RF driver */
@@ -283,8 +285,10 @@ void b9x_bt_controller_deinit()
283285
plic_interrupt_disable(IRQ_ZB_RT);
284286

285287
/* Reset Radio */
288+
#if CONFIG_SOC_RISCV_TELINK_B91 || CONFIG_SOC_RISCV_TELINK_B92
286289
rf_radio_reset();
287290
rf_reset_dma();
291+
#endif
288292
rf_baseband_reset();
289293

290294
#if CONFIG_PM && CONFIG_SOC_SERIES_RISCV_TELINK_B9X_RETENTION

zephyr/module.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@ blobs:
88
type: lib
99
version: 'V4.0.1.1_patch_002'
1010
license-path: tlsr9/ble/license.txt
11-
url: https://github.com/telink-semi/zephyr_hal_telink_b91_ble_lib/raw/4d8f04facb0433cca6c0ca274797ed1ab07f98e8/liblt_9518_zephyr.a
11+
url: https://github.com/telink-semi/zephyr_hal_telink_b91_ble_lib/raw/49bcada9aae1eaae83aee4aa437244403aaf2162/liblt_9518_zephyr.a
1212
description: "Binary libraries supporting Telink B91 series BLE subsystems"
13-
doc-url: https://github.com/telink-semi/zephyr_hal_telink_b91_ble_lib/blob/4d8f04facb0433cca6c0ca274797ed1ab07f98e8/README.md
13+
doc-url: https://github.com/telink-semi/zephyr_hal_telink_b91_ble_lib/blob/49bcada9aae1eaae83aee4aa437244403aaf2162/README.md
1414

1515
- path: liblt_9528_zephyr.a
1616
sha256: 8fdffe459bbf62ddb972be3f57f2eb3ab7df3db6fe764d9eff24466a46884725
1717
type: lib
1818
version: 'V4.0.2.0_ER_patch_003'
1919
license-path: tlsr9/ble/license.txt
20-
url: https://github.com/telink-semi/zephyr_hal_telink_b91_ble_lib/raw/4d8f04facb0433cca6c0ca274797ed1ab07f98e8/liblt_9528_zephyr.a
20+
url: https://github.com/telink-semi/zephyr_hal_telink_b91_ble_lib/raw/49bcada9aae1eaae83aee4aa437244403aaf2162/liblt_9528_zephyr.a
2121
description: "Binary libraries supporting Telink B92 series BLE subsystems"
22-
doc-url: https://github.com/telink-semi/zephyr_hal_telink_b91_ble_lib/blob/4d8f04facb0433cca6c0ca274797ed1ab07f98e8/README.md
22+
doc-url: https://github.com/telink-semi/zephyr_hal_telink_b91_ble_lib/blob/49bcada9aae1eaae83aee4aa437244403aaf2162/README.md
2323

2424
- path: liblt_9258_zephyr.a
25-
sha256: d29e33cdf126791d0f10f3534cf5eaa8989fe85b1657bbfdc89e591484e4af32
25+
sha256: a2cbf53891657afd1a07b59f1d66c8ed676138217243c4881d20968fbfe854f2
2626
type: lib
2727
version: 'TBD'
2828
license-path: tlsr9/ble/license.txt
29-
url: https://github.com/telink-semi/zephyr_hal_telink_b91_ble_lib/raw/4d8f04facb0433cca6c0ca274797ed1ab07f98e8/liblt_9258_zephyr.a
29+
url: https://github.com/telink-semi/zephyr_hal_telink_b91_ble_lib/raw/49bcada9aae1eaae83aee4aa437244403aaf2162/liblt_9258_zephyr.a
3030
description: "Binary libraries supporting Telink B95 series BLE subsystems"
31-
doc-url: https://github.com/telink-semi/zephyr_hal_telink_b91_ble_lib/blob/4d8f04facb0433cca6c0ca274797ed1ab07f98e8/README.md
31+
doc-url: https://github.com/telink-semi/zephyr_hal_telink_b91_ble_lib/blob/49bcada9aae1eaae83aee4aa437244403aaf2162/README.md

0 commit comments

Comments
 (0)