Skip to content

Commit c0a5769

Browse files
yiheng.zhoueasonxiang
authored andcommitted
commit bt ini and bt shell
1 parent 7f68744 commit c0a5769

File tree

3 files changed

+173
-172
lines changed

3 files changed

+173
-172
lines changed

drivers/src/bt/bt_configure_pskey.ini

100644100755
Lines changed: 161 additions & 161 deletions
Original file line numberDiff line numberDiff line change
@@ -1,161 +1,161 @@
1-
/*
2-
* Copyright (c) 2018, UNISOC Incorporated
3-
*
4-
* SPDX-License-Identifier: Apache-2.0
5-
*/
6-
7-
#==============================================================================================================================
8-
# [Bluetooth Pskey]__[Marlin3]_[Total Length=160]_[Used Length=62]_[Ver=0.10]_[20170804]
9-
#==============================================================================================================================
10-
#------------------------------------------------------------------------------------------------------------------------------
11-
#[1.COMMON]__[Total Length=44]_[Used Length=33]_[Number of Entries=12]
12-
#------------------------------------------------------------------------------------------------------------------------------
13-
#[1.01]__/L=4
14-
device_class = 0x001F00
15-
16-
#[1.02]__/L=16
17-
feature_set = 0xFF, 0xFF, 0x8D, 0xFE, 0xDB, 0x7D, 0x7B, 0x83, 0xFF, 0xA7, 0xFF, 0x7F, 0x00, 0xE0, 0xF7, 0x3E
18-
19-
#[1.03]__/L=6
20-
device_addr = 0x6D, 0x6D, 0x8E, 0x8E, 0x8F, 0x8F
21-
22-
#[1.04]__/L=2
23-
comp_id = 0x01EC
24-
25-
#[1.05]__/L=1
26-
g_sys_uart0_communication_supported = 1
27-
28-
#[1.06]__/L=1
29-
cp2_log_mode= 1
30-
31-
#[1.07]__/L=1
32-
LogLevel = 0xFF
33-
34-
#[1.08]__/L=1
35-
g_central_or_perpheral = 0
36-
37-
#[1.09]__/L=2
38-
Log_BitMask = 0xFFFF
39-
40-
#[1.10]__/L=1
41-
super_ssp_enable = 0
42-
43-
#[1.11]__/L=1
44-
common_rfu_b3 = 0
45-
46-
#[1.12]__/L=8
47-
common_rfu_w = 0x00000000, 0x00000000
48-
#------------------------------------------------------------------------------------------------------------------------------
49-
#[2.LE]__[Total Length=8]_[Used Length=0]_[Number of Entries=1]
50-
#------------------------------------------------------------------------------------------------------------------------------
51-
#[2.01]__/L=8
52-
le_rfu_w = 0x00000000, 0x000000000
53-
#------------------------------------------------------------------------------------------------------------------------------
54-
#[3.LMP]__[Total Length=8]_[Used Length=0]_[Number of Entries=1]
55-
#------------------------------------------------------------------------------------------------------------------------------
56-
#[3.01]__/L=8
57-
lmp_rfu_w = 0x00000000, 0x000000000
58-
#------------------------------------------------------------------------------------------------------------------------------
59-
#[4.LC]__[Total Length=8]_[Used Length=0]_[Number of Entries=1]
60-
#------------------------------------------------------------------------------------------------------------------------------
61-
#[4.01]__/L=8
62-
lc_rfu_w = 0x00000000, 0x000000000
63-
#------------------------------------------------------------------------------------------------------------------------------
64-
#[5.AUDIO]__[Total Length=20]_[Used Length=9]_[Number of Entries=9]
65-
#------------------------------------------------------------------------------------------------------------------------------
66-
#[5.01]__/L=2
67-
g_wbs_nv_117 = 0x004D
68-
69-
#[5.02]__/L=2
70-
g_wbs_nv_118 = 0x0076
71-
72-
#[5.03]__/L=2
73-
g_nbv_nv_117 = 0x009B
74-
75-
#[5.04]__/L=2
76-
g_nbv_nv_118 = 0x0A55
77-
78-
#[5.05]__/L=1
79-
g_sys_sco_transmit_mode = 0
80-
81-
#[5.06]__/L=1
82-
audio_rfu_b1 = 0
83-
84-
#[5.07]__/L=1
85-
audio_rfu_b2 = 0
86-
87-
#[5.08]__/L=1
88-
audio_rfu_b3 = 0
89-
90-
#[5.09]__/L=8
91-
audio_rfu_w = 0x00000000, 0x00000000
92-
#------------------------------------------------------------------------------------------------------------------------------
93-
#[6.POWER]__[Total Length=12]_[Used Length=3]_[Number of Entries=5]
94-
#------------------------------------------------------------------------------------------------------------------------------
95-
#[6.01]__/L=1
96-
g_sys_sleep_in_standby_supported = 1
97-
98-
#[6.02]__/L=1
99-
g_sys_sleep_master_supported = 1
100-
101-
#[6.03]__/L=1
102-
g_sys_sleep_slave_supported = 1
103-
104-
#[6.04]__/L=1
105-
power_rfu_b1 = 0
106-
107-
#[6.05]__/L=8
108-
power_rfu_w = 0x00000000, 0x00000000
109-
#------------------------------------------------------------------------------------------------------------------------------
110-
#[7.BB]__[Total Length=16]_[Used Length=8]_[Number of Entries=6]
111-
#------------------------------------------------------------------------------------------------------------------------------
112-
#[7.01]__/L=4
113-
win_ext = 40
114-
115-
#[7.02]__/L=1
116-
edr_tx_edr_delay = 6
117-
118-
#[7.03]__/L=1
119-
edr_rx_edr_delay = 8
120-
121-
#[7.04]__/L=1
122-
tx_delay = 12
123-
124-
#[7.05]__/L=1
125-
rx_delay = 34
126-
127-
#[7.06]__/L=8
128-
bb_rfu_w = 0x00000000, 0x00000000
129-
#------------------------------------------------------------------------------------------------------------------------------
130-
#[8.MODEM]__[Total Length=12]_[Used Length=3]_[Number of Entries=5]
131-
#------------------------------------------------------------------------------------------------------------------------------
132-
#[8.01]__/L=1
133-
agc_mode = 0
134-
135-
#[8.02]__/L=1
136-
diff_or_eq = 0
137-
138-
#[8.03]__/L=1
139-
ramp_mode = 0
140-
141-
#[8.04]__/L=1
142-
modem_rfu_b1= 0
143-
144-
#[8.05]__/L=8
145-
modem_rfu_w = 0x00000000, 0x00000000
146-
#------------------------------------------------------------------------------------------------------------------------------
147-
#[9.OTHER]__[Total Length=32]_[Used Length=24]_[Number of Entries=4]
148-
#------------------------------------------------------------------------------------------------------------------------------
149-
#[9.01]__/L=4
150-
BQB_BitMask_1 = 0x00000000
151-
152-
#[9.02]__/L=4
153-
BQB_BitMask_2 = 0x00000000
154-
155-
#[9.03]__/L=16
156-
bt_coex_threshold = 0x04E2, 0x1F40, 0x0020, 0x00C8, 0x0006, 0x0000, 0x0000, 0x0000
157-
158-
#[9.04]__/L=8
159-
other_rfu_w = 0x00000000, 0x00000000
160-
#------------------------------------------------------------------------------------------------------------------------------
161-
1+
/*
2+
* Copyright (c) 2018, UNISOC Incorporated
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#==============================================================================================================================
8+
# [Bluetooth Pskey]__[Marlin3]_[Total Length=160]_[Used Length=62]_[Ver=0.10]_[20170804]
9+
#==============================================================================================================================
10+
#------------------------------------------------------------------------------------------------------------------------------
11+
#[1.COMMON]__[Total Length=44]_[Used Length=33]_[Number of Entries=12]
12+
#------------------------------------------------------------------------------------------------------------------------------
13+
#[1.01]__/L=4
14+
device_class = 0x001F00
15+
16+
#[1.02]__/L=16
17+
feature_set = 0xBF, 0xFF, 0x8D, 0xFE, 0xDB, 0x3D, 0x7B, 0x87, 0xFF, 0xA7, 0xFF, 0x7F, 0x00, 0xE0, 0xF7, 0x3E
18+
19+
#[1.03]__/L=6
20+
device_addr = 0x6D, 0x6D, 0x8E, 0x8E, 0x8F, 0x8F
21+
22+
#[1.04]__/L=2
23+
comp_id = 0x01EC
24+
25+
#[1.05]__/L=1
26+
g_sys_uart0_communication_supported = 1
27+
28+
#[1.06]__/L=1
29+
cp2_log_mode= 1
30+
31+
#[1.07]__/L=1
32+
LogLevel = 0xFF
33+
34+
#[1.08]__/L=1
35+
g_central_or_perpheral = 0
36+
37+
#[1.09]__/L=2
38+
Log_BitMask = 0xFFFF
39+
40+
#[1.10]__/L=1
41+
super_ssp_enable = 1
42+
43+
#[1.11]__/L=1
44+
common_rfu_b3 = 0
45+
46+
#[1.12]__/L=8
47+
common_rfu_w = 0x00000000, 0x00000000
48+
#------------------------------------------------------------------------------------------------------------------------------
49+
#[2.LE]__[Total Length=8]_[Used Length=0]_[Number of Entries=1]
50+
#------------------------------------------------------------------------------------------------------------------------------
51+
#[2.01]__/L=8
52+
le_rfu_w = 0x00000000, 0x000000000
53+
#------------------------------------------------------------------------------------------------------------------------------
54+
#[3.LMP]__[Total Length=8]_[Used Length=0]_[Number of Entries=1]
55+
#------------------------------------------------------------------------------------------------------------------------------
56+
#[3.01]__/L=8
57+
lmp_rfu_w = 0x00000000, 0x000000000
58+
#------------------------------------------------------------------------------------------------------------------------------
59+
#[4.LC]__[Total Length=8]_[Used Length=0]_[Number of Entries=1]
60+
#------------------------------------------------------------------------------------------------------------------------------
61+
#[4.01]__/L=8
62+
lc_rfu_w = 0x00000000, 0x000000000
63+
#------------------------------------------------------------------------------------------------------------------------------
64+
#[5.AUDIO]__[Total Length=20]_[Used Length=9]_[Number of Entries=9]
65+
#------------------------------------------------------------------------------------------------------------------------------
66+
#[5.01]__/L=2
67+
g_wbs_nv_117 = 0x004D
68+
69+
#[5.02]__/L=2
70+
g_wbs_nv_118 = 0x0166
71+
72+
#[5.03]__/L=2
73+
g_nbv_nv_117 = 0x004D
74+
75+
#[5.04]__/L=2
76+
g_nbv_nv_118 = 0x0166
77+
78+
#[5.05]__/L=1
79+
g_sys_sco_transmit_mode = 0
80+
81+
#[5.06]__/L=1
82+
audio_rfu_b1 = 0
83+
84+
#[5.07]__/L=1
85+
audio_rfu_b2 = 0
86+
87+
#[5.08]__/L=1
88+
audio_rfu_b3 = 0
89+
90+
#[5.09]__/L=8
91+
audio_rfu_w = 0x00000000, 0x00000000
92+
#------------------------------------------------------------------------------------------------------------------------------
93+
#[6.POWER]__[Total Length=12]_[Used Length=3]_[Number of Entries=5]
94+
#------------------------------------------------------------------------------------------------------------------------------
95+
#[6.01]__/L=1
96+
g_sys_sleep_in_standby_supported = 1
97+
98+
#[6.02]__/L=1
99+
g_sys_sleep_master_supported = 1
100+
101+
#[6.03]__/L=1
102+
g_sys_sleep_slave_supported = 1
103+
104+
#[6.04]__/L=1
105+
power_rfu_b1 = 0
106+
107+
#[6.05]__/L=8
108+
power_rfu_w = 0x00000000, 0x00000000
109+
#------------------------------------------------------------------------------------------------------------------------------
110+
#[7.BB]__[Total Length=16]_[Used Length=8]_[Number of Entries=6]
111+
#------------------------------------------------------------------------------------------------------------------------------
112+
#[7.01]__/L=4
113+
win_ext = 40
114+
115+
#[7.02]__/L=1
116+
edr_tx_edr_delay = 6
117+
118+
#[7.03]__/L=1
119+
edr_rx_edr_delay = 8
120+
121+
#[7.04]__/L=1
122+
tx_delay = 12
123+
124+
#[7.05]__/L=1
125+
rx_delay = 34
126+
127+
#[7.06]__/L=8
128+
bb_rfu_w = 0x00000000, 0x00000000
129+
#------------------------------------------------------------------------------------------------------------------------------
130+
#[8.MODEM]__[Total Length=12]_[Used Length=3]_[Number of Entries=5]
131+
#------------------------------------------------------------------------------------------------------------------------------
132+
#[8.01]__/L=1
133+
agc_mode = 0
134+
135+
#[8.02]__/L=1
136+
diff_or_eq = 0xFF
137+
138+
#[8.03]__/L=1
139+
ramp_mode = 0
140+
141+
#[8.04]__/L=1
142+
modem_rfu_b1= 0
143+
144+
#[8.05]__/L=8
145+
modem_rfu_w = 0x00000000, 0x00000000
146+
#------------------------------------------------------------------------------------------------------------------------------
147+
#[9.OTHER]__[Total Length=32]_[Used Length=24]_[Number of Entries=4]
148+
#------------------------------------------------------------------------------------------------------------------------------
149+
#[9.01]__/L=4
150+
BQB_BitMask_1 = 0x00000000
151+
152+
#[9.02]__/L=4
153+
BQB_BitMask_2 = 0x00000000
154+
155+
#[9.03]__/L=16
156+
bt_coex_threshold = 0x04E2, 0x1F40, 0x0020, 0x00C8, 0x0006, 0x0000, 0x0000, 0x0000
157+
158+
#[9.04]__/L=8
159+
other_rfu_w = 0x00000000, 0x00000000
160+
#------------------------------------------------------------------------------------------------------------------------------
161+

drivers/src/bt/bt_configure_rf.ini

100644100755
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,30 @@ g_ClassicPowerValue_A = 0x4115, 0x3A15, 0x3415, 0x2E15, 0x2715, 0x2115, 0x1715,
1414
g_LEPowerValue_A = 0x3B15, 0x3715, 0x3315, 0x2F15, 0x2B15, 0x2715, 0x2315, 0x1F15, 0x1B15, 0x1715, 0x1315, 0x0F15, 0x0B15, 0x0815, 0x0415, 0x0015
1515

1616
#[1.04]__/L=32
17-
g_BRChannelpwrvalue_A = 0x0615, 0x0615, 0x0615, 0x0815, 0x0615, 0x0915, 0x0915, 0x0915
18-
g_EDRChannelpwrvalue_A = 0x0615, 0x0615, 0x0615, 0x0815, 0x0615, 0x0915, 0x0915, 0x0915
17+
g_BRChannelpwrvalue_A = 0x0615, 0x0615, 0x0615, 0x0615, 0x0615, 0x0615, 0x0615, 0x0615
18+
g_EDRChannelpwrvalue_A = 0x0615, 0x0615, 0x0615, 0x0715, 0x0715, 0x0715, 0x0715, 0x0715
1919

2020
#[1.05]__/L=16
21-
g_LEChannelpwrvalue_A = 0x0C15,0x0C15,0x0C15,0x0C15,0x0C15, 0x0C15, 0x0C15, 0x0C15
21+
g_LEChannelpwrvalue_A = 0x1515, 0x1515, 0x1515, 0x1515, 0x1515, 0x1515, 0x1515, 0x1515
2222
#------------------------------------------------------------------------------------------------------------------------------
2323
#[2.BT_RF_B]__[Total Length=112]_[Used Length=112]_[Number of Entries=5]_[Max_Power=20]_[Step=2]
2424
#------------------------------------------------------------------------------------------------------------------------------
2525
#[2.01]__/L=12
2626
g_GainValue_B = 0xE000, 0xE000, 0xE000, 0xE000, 0xE000, 0xE000
2727

2828
#[2.02]__/L=20
29-
g_ClassicPowerValue_B = 0x4815,0x4215,0x3C15, 0x3415, 0x2C15, 0x2615, 0x2115,0x1B15,0x1615,0x0915
29+
g_ClassicPowerValue_B = 0x4915, 0x4315, 0x3D15, 0x3715, 0x3015, 0x2A15, 0x2315, 0x1D15, 0x1715, 0x1115
3030

3131
#[2.03]__/L=32
32-
g_LEPowerValue_B = 0x4A15, 0x4515, 0x4015, 0x3C15, 0x3815, 0x3215, 0x2E15, 0x2915, 0x2515, 0x2115, 0x1C15, 0x1915, 0x1515, 0x1115, 0x0D15, 0x0915
32+
g_LEPowerValue_B = 0x4B15, 0x4B15, 0x4B15, 0x4B15, 0x4B15, 0x4615, 0x4015, 0x3B15, 0x3615, 0x3015, 0x2B15, 0x2615, 0x2015, 0x1A15, 0x1415, 0x0E15
3333

3434
#[2.04]__/L=32
35-
g_BRChannelpwrvalue_B = 0x1015, 0x1015, 0x0915, 0x1115, 0x1115, 0x1115, 0x1115, 0x1115
36-
g_EDRChannelpwrvalue_B = 0x1015, 0x1015, 0x0915, 0x1115, 0x1115, 0x1115, 0x1115, 0x1115
35+
g_BRChannelpwrvalue_B = 0x0C15, 0x0D15, 0x0F15, 0x0F15, 0x0F15, 0x0F15, 0x0F15, 0x0E15
36+
g_EDRChannelpwrvalue_B =0x0D15, 0x0F15, 0x1115, 0x1115, 0x1115, 0x1115, 0x1115, 0x1015
3737

3838
#[2.05]__/L=16
39-
g_LEChannelpwrvalue_B = 0x1515, 0x1515,0x1615, 0x1715, 0x1715, 0x1715, 0x1815, 0x1815
39+
g_LEChannelpwrvalue_B = 0x0E15,0x0E15,0x1115,0x1115,0x1115,0x1115,0x1115,0x1015
40+
4041
#------------------------------------------------------------------------------------------------------------------------------
4142
#[3.BT_RF_COMMON]__[Total Length=28]_[Used Length=7]_[Number of Entries=8]
4243
#------------------------------------------------------------------------------------------------------------------------------
@@ -45,7 +46,6 @@ LE_fix_powerword = 0x00
4546

4647
#[3.02]__/L=1
4748
Classic_pc_by_channel = 0xFF
48-
4949
#[3.03]__/L=1
5050
LE_pc_by_channel = 0xFF
5151

@@ -62,5 +62,5 @@ Analog_IQ_Debug_Mode = 0x00
6262
RF_common_rfu_b3 = 0x55
6363

6464
#[3.08]__/L=20
65-
RF_common_rfu_w= 0x55555050, 0x55555555, 0x55555555, 0x55555555, 0x55555555
65+
RF_common_rfu_w= 0x555F4344, 0x55555555, 0x55555555, 0x55555555, 0x55555555
6666

drivers/src/bt/gen_bt_cfg.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ for i in $@; do
2424
VAR_TYPE=${VAR_NAME}_t
2525

2626
echo "static $VAR_TYPE $VAR_NAME = {" >> $DST_FILE
27-
sed -e '/^[A-Za-z]/!d' -re 's/= ([^,]*),([^\r\n]*)/= {\1,\2}/' -e 's/^/\t.&/' -e 's/\r/,&/' $SRC_FILE >> $DST_FILE
27+
sed -i 's/\r\n//' $SRC_FILE
28+
sed -e '/^[A-Za-z]/!d' -e 's/^/\t.&/' -re 's/= ([^,]*),([^\r\n]*)/= {\1,\2}/' -e 's/[^\r\n]$/&,/' -e 's/\r/,&/' $SRC_FILE >> $DST_FILE
2829
echo -e "};\n" >> $DST_FILE
2930
done
3031

0 commit comments

Comments
 (0)