diff options
| author | Bernhard Guillon <Bernhard.Guillon@begu.org> | 2024-12-22 20:12:21 +0100 |
|---|---|---|
| committer | Bernhard Guillon <Bernhard.Guillon@begu.org> | 2024-12-22 20:12:21 +0100 |
| commit | 7754ef7204e873aa33d55ebe5002257e3941e942 (patch) | |
| tree | 873dc17f83c61f56e452330c2d1d2d0343305f67 /patch/ble.c.patch | |
| download | wb3s-ble-nebula-galaxy-7754ef7204e873aa33d55ebe5002257e3941e942.tar.gz wb3s-ble-nebula-galaxy-7754ef7204e873aa33d55ebe5002257e3941e942.zip | |
Import bk_ble from elektroda forum
https://www.elektroda.com/rtvforum/topic3989434.html\#20742145
Diffstat (limited to 'patch/ble.c.patch')
| -rw-r--r-- | patch/ble.c.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/patch/ble.c.patch b/patch/ble.c.patch new file mode 100644 index 0000000..ec58cd4 --- /dev/null +++ b/patch/ble.c.patch @@ -0,0 +1,39 @@ +--- sdk/driver/ble/ble.c 2021-08-16 11:59:34.000000000 -0500 ++++ ../sdk/driver/ble/ble.c 2023-07-12 06:15:17.728550439 -0500 +@@ -237,7 +237,7 @@ + { + uint32_t fiq_status; + +- hal_machw_disable_int(); ++ //hal_machw_disable_int(); + nxmac_tx_rx_int_ack_clear(0xffffffff); + nxmac_gen_int_ack_clear(0xffffffff); + fiq_status = sddev_control(ICU_DEV_NAME, CMD_GET_INTR_STATUS, 0); +@@ -252,14 +252,14 @@ + + GLOBAL_INT_DECLARATION(); + GLOBAL_INT_DISABLE(); +- ++#if 0 // wifi stack is not used so this should never be active + if (txl_cntrl_pck_get() && ble_switch_skip_cnt < MAX_SKIP_CNT) + { + ble_switch_skip_cnt++; + GLOBAL_INT_RESTORE(); + return; + } +- ++#endif + if (ps_get_sleep_prevent() & 0x37) + { + GLOBAL_INT_RESTORE(); +@@ -316,8 +316,8 @@ + PS_WPRT("idle rec\r\n"); + bk_printf("idle rec\r\n"); + //long time wait idle interrupt,recover! +- hal_machw_disable_int(); +- rwnxl_reset_handle(0); ++ //hal_machw_disable_int(); ++ //rwnxl_reset_handle(0); + PS_WPRT("idle rec over\r\n"); + nxmac_next_state_setf(HW_IDLE); + } |
