File tree 9 files changed +32
-47
lines changed
ble/stack/ble/B92/controller
9 files changed +32
-47
lines changed Original file line number Diff line number Diff line change 1
- ** /blobs / liblt_9518_zephyr.a
1
+ ** /blobs
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ zephyr_library_sources_ifdef(CONFIG_USB_TELINK_B9X drivers/${SOC}/usbhw.c)
66
66
67
67
#PM driver dependency
68
68
zephyr_library_sources_ifdef(CONFIG_PM drivers/${SOC} /stimer.c)
69
- zephyr_library_sources_ifdef(CONFIG_PM common/${SOC} / sleep.c)
69
+ zephyr_library_sources_ifdef(CONFIG_PM common/sleep.c)
70
70
71
71
# BLE reference sources
72
72
if (CONFIG_BT_B9X)
@@ -89,8 +89,8 @@ zephyr_library_sources(
89
89
endif () # CONFIG_BT_B9X
90
90
91
91
# Retention feature
92
- if (CONFIG_BOARD_TLSR9518ADK80D_RETENTION)
92
+ if (CONFIG_BOARD_TLSR9518ADK80D_RETENTION OR CONFIG_BOARD_TLSR9528A_RETENTION )
93
93
94
94
zephyr_library_sources(common/b9x_context.S)
95
95
96
- endif () # CONFIG_BOARD_TLSR9518ADK80D_RETENTION
96
+ endif () # CONFIG_BOARD_TLSR9518ADK80D_RETENTION OR CONFIG_BOARD_TLSR9528A_RETENTION
Original file line number Diff line number Diff line change @@ -29,5 +29,10 @@ void blc_setOsSupEnable(bool en);
29
29
bool blc_isOsSupEnable (void );
30
30
bool blc_isBleSchedulerBusy (void );
31
31
void blc_ll_registerGiveSemCb (os_give_sem_t give_sem_from_isr , os_give_sem_t give_sem );
32
+ extern int blc_pm_handler (void );
33
+ extern void blc_pm_setAppWakeupLowPower (u32 wakeup_tick , u8 enable );
34
+
35
+ /* Stack API. !!! user can't use. */
36
+ extern void blt_ll_sem_give (void );
32
37
33
38
#endif /* OS_SUP_H_ */
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 31
31
#define __B9X_SLEEP_H
32
32
33
33
bool b9x_suspend (uint32_t wake_stimer_tick );
34
- #ifdef CONFIG_BOARD_TLSR9518ADK80D_RETENTION
35
- bool b91_deep_sleep (uint32_t wake_stimer_tick );
36
- #endif /* CONFIG_BOARD_TLSR9518ADK80D_RETENTION */
34
+ #if defined( CONFIG_BOARD_TLSR9518ADK80D_RETENTION ) || defined( CONFIG_BOARD_TLSR9528A_RETENTION )
35
+ bool b9x_deep_sleep (uint32_t wake_stimer_tick );
36
+ #endif /* CONFIG_BOARD_TLSR9518ADK80D_RETENTION || CONFIG_BOARD_TLSR9528A_RETENTION */
37
37
38
38
#endif /* __B9X_SLEEP_H */
Original file line number Diff line number Diff line change 19
19
#include <ext_driver/ext_pm.h>
20
20
21
21
#if CONFIG_BT_B9X
22
+ #if CONFIG_SOC_RISCV_TELINK_B91
22
23
#include <stack/ble/B91/controller/os_sup.h>
24
+ #elif CONFIG_SOC_RISCV_TELINK_B92
25
+ #include <stack/ble/B92/controller/os_sup.h>
26
+ #endif
23
27
#include <b9x_bt.h>
24
28
#endif /* CONFIG_BT_B9X */
25
29
26
30
/**
27
- * @brief This function sets B91 MCU to suspend mode
31
+ * @brief This function sets B9X MCU to suspend mode
28
32
* @param[in] wake_stimer_tick - wake-up stimer tick
29
33
* @return true if suspend mode entered otherwise false
30
34
*/
@@ -59,9 +63,9 @@ bool b9x_suspend(uint32_t wake_stimer_tick)
59
63
return result ;
60
64
}
61
65
62
- #ifdef CONFIG_BOARD_TLSR9518ADK80D_RETENTION
66
+ #if defined( CONFIG_BOARD_TLSR9518ADK80D_RETENTION ) || defined( CONFIG_BOARD_TLSR9528A_RETENTION )
63
67
64
- bool b91_deep_sleep (uint32_t wake_stimer_tick )
68
+ bool b9x_deep_sleep (uint32_t wake_stimer_tick )
65
69
{
66
70
bool result = false;
67
71
static volatile bool tl_sleep_retention
@@ -113,4 +117,4 @@ bool b91_deep_sleep(uint32_t wake_stimer_tick)
113
117
return result ;
114
118
}
115
119
116
- #endif /* CONFIG_BOARD_TLSR9518ADK80D_RETENTION */
120
+ #endif /* CONFIG_BOARD_TLSR9518ADK80D_RETENTION || CONFIG_BOARD_TLSR9528A_RETENTION */
Original file line number Diff line number Diff line change 49
49
* global macro *
50
50
*********************************************************************************************************************/
51
51
#ifndef SYS_TIMER_AUTO_MODE
52
- #define SYS_TIMER_AUTO_MODE 1
52
+ #define SYS_TIMER_AUTO_MODE 0
53
53
#endif
54
54
/**********************************************************************************************************************
55
55
* global data type *
Original file line number Diff line number Diff line change 8
8
type : lib
9
9
version : ' V4.0.1.0_Patch_0003'
10
10
license-path : tlsr9/ble/license.txt
11
- url : https://github.com/telink-semi/zephyr_hal_telink_b91_ble_lib/raw/224af1af42f0514c6a35c159c878fe34221dc689 /liblt_9518_zephyr.a
11
+ url : https://github.com/telink-semi/zephyr_hal_telink_b91_ble_lib/raw/cb62c1ab79274a67c228f26a811e738d05a444b6 /liblt_9518_zephyr.a
12
12
description : " Binary libraries supporting Telink B91 series BLE subsystems"
13
- doc-url : https://github.com/telink-semi/zephyr_hal_telink_b91_ble_lib/blob/224af1af42f0514c6a35c159c878fe34221dc689/README.md
13
+ doc-url : https://github.com/telink-semi/zephyr_hal_telink_b91_ble_lib/blob/cb62c1ab79274a67c228f26a811e738d05a444b6/README.md
14
+
15
+ - path : liblt_9528_zephyr.a
16
+ sha256 : 578d2629267f23d82198f21780981b7e72693a0d05f7b73410d4b007f359ee49
17
+ type : lib
18
+ version : ' V4.0.1.0_Patch_0003'
19
+ license-path : tlsr9/ble/license.txt
20
+ url : https://github.com/telink-semi/zephyr_hal_telink_b91_ble_lib/raw/cb62c1ab79274a67c228f26a811e738d05a444b6/liblt_9528_zephyr.a
21
+ description : " Binary libraries supporting Telink B92 series BLE subsystems"
22
+ doc-url : https://github.com/telink-semi/zephyr_hal_telink_b91_ble_lib/blob/cb62c1ab79274a67c228f26a811e738d05a444b6/README.md
You can’t perform that action at this time.
0 commit comments