WXK
2025-02-05 961c1174bbf1aaae5fa2f672806ed4eaf2f917be
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#ifndef BLE_CONFIG_H_
#define BLE_CONFIG_H_
 
 
/* sdk_cofig.h can overide the macro defined in this file */
#include "sdk_config.h"
#include "soc_config.h"
 
/*
 * Here defines macro related to ble controller and parts of host,
 * user can redefine the macro using sdk_config.h.
 * ---> warnning do not change macro in this file <---- 
 */
 
/* if enable, ble use chip unique mac addr */
#ifndef CONFIG_USER_CHIP_MAC_ADDR
#define CONFIG_USER_CHIP_MAC_ADDR               0
#endif
 
/* select the max number of central roles which the device support */
#ifndef CONFIG_BT_MAX_NUM_OF_CENTRAL
#define CONFIG_BT_MAX_NUM_OF_CENTRAL            0
#endif
 
/* select the max number of peripheral roles which the device support */
#ifndef CONFIG_BT_MAX_NUM_OF_PERIPHERAL
#define CONFIG_BT_MAX_NUM_OF_PERIPHERAL         1
#endif
 
/* define bluetooth tx power {-40->9dbm} */
#ifndef CONFIG_BT_CTLR_TX_POWER_DFT
#define CONFIG_BT_CTLR_TX_POWER_DFT             0
#endif
 
/* force calibration of the rcl clock */
#ifndef CONFIG_FORCE_CALIB_RCL_CLK
#define CONFIG_FORCE_CALIB_RCL_CLK                 1
#endif
 
/* select agc mode */
#ifndef CONFIG_BT_CTLR_AGC_MODE
#define CONFIG_BT_CTLR_AGC_MODE                 0
#endif
 
/* select bluetooth controller ppm depended on 32K clock source
 * 0 means rcl
 * 1 means xtl
 * 2 means act32
 */
#ifndef CONFIG_BT_CTLR_SCA
#if (CONFIG_LOW_SPEED_CLOCK_SRC == 0)
#define CONFIG_BT_CTLR_SCA                     700
#else
#define CONFIG_BT_CTLR_SCA                     50
#endif
#endif
 
/* this is used to debug link layer time from GPIO,
 * and gpio are defined in feature
 */
#ifndef CONFIG_BT_CTLR_LINK_LAYER_DEBUG
#define CONFIG_BT_CTLR_LINK_LAYER_DEBUG         0
#endif
 
/* this is used to debug the controller memory consuming */
#ifndef CONFIG_BT_CTLR_MEM_POOL_PRINT
#define CONFIG_BT_CTLR_MEM_POOL_PRINT             0
#endif
 
 
/* BLE Controller RF RX Buffer Number (must be a power of 2) */
#ifndef CONFIG_BLE_CONTROLLER_RF_RX_BUF_NUM
#define CONFIG_BLE_CONTROLLER_RF_RX_BUF_NUM    (16)
#endif
 
/* BLE Controller RF TX Buffer Number (must be a power of 2) */
#ifndef CONFIG_BLE_CONTROLLER_RF_TX_BUF_NUM
#define CONFIG_BLE_CONTROLLER_RF_TX_BUF_NUM    (16)
#endif
 
/* BLE Controller Packet Encrypt Time(unit:us) */
#ifndef CONFIG_BLE_CONTROLLER_LL_ENC_TIME
#define CONFIG_BLE_CONTROLLER_LL_ENC_TIME        (100)
#endif
 
/* BLE Controller More Data Number */
#ifndef CONFIG_BLE_CONTROLLER_MORE_DATA_NUM
#define CONFIG_BLE_CONTROLLER_MORE_DATA_NUM        (6)
#endif
 
/* BLE Controller WhiteList Number */
#ifndef CONFIG_BLE_CONTROLLER_WIHTELIST_NUM
#define CONFIG_BLE_CONTROLLER_WIHTELIST_NUM     (1)
#endif
 
/* BLE Controller Resolving List Number */
#ifndef CONFIG_BLE_CONTROLLER_RESOLVELIST_NUM
#define CONFIG_BLE_CONTROLLER_RESOLVELIST_NUM    (0)
#endif
 
/* BLE Controller Master Link Margin(unit:0.625ms) */
#ifndef CONFIG_BLE_CONTROLLER_MASTER_LINK_MARGIN
#define CONFIG_BLE_CONTROLLER_MASTER_LINK_MARGIN  (6)
#endif
 
 
/* SMP */
#ifndef SMP_MULTI_ADDR_MODE_EN
#define SMP_MULTI_ADDR_MODE_EN     (0)
#endif
 
#endif /* End of BLE_CONFIG_H_ */