Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/AutoPair_24G/output/eeprom.dat	(revision 408)
+++ /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/AutoPair_24G/output/eeprom.dat	(working copy)
@@ -2,8 +2,8 @@
 02
 aa
 55
-52
-03
+a6
+04
 c2
 84
 00
@@ -11,1433 +11,1433 @@
 c0
 00
 00
-35
+86
 c0
 45
 80
-96
+e7
 c0
 57
 00
-0a
+57
 c0
 64
 80
-a4
+f9
 c0
 65
-00
-ac
+01
+01
 c0
 69
-80
-c0
+81
+15
 20
 20
 13
 7c
 c0
 75
-00
-b1
+01
+06
+c0
+76
+80
+0c
 20
 20
 13
 7c
 20
-40
-6d
-f3
-20
-40
-3b
-f0
 20
-40
+12
 41
-a7
-20
-40
-40
-8e
-20
-75
+6f
+e1
+47
+8c
+c3
+85
 80
 00
-20
-40
-3d
-8a
-20
-40
-47
-28
-20
-40
-3b
-cf
-20
-40
-42
-3c
-6f
-e0
-c9
-2a
 c3
 83
 80
 00
-20
-20
-3d
-52
-58
+c3
+83
 00
 00
-19
-67
-e1
+6a
+21
 48
-9b
-20
+99
 20
-3b
-d1
-c6
-93
+40
+25
+cb
+60
+48
+c8
+c7
+6f
+e0
+c8
+cc
+c5
+13
 00
+16
+6f
+e0
+c8
+cf
+98
+46
+7c
 00
-20
-40
-3f
-70
 24
-74
-00
+21
 00
-6f
-e4
-4b
-ab
-c3
-0a
-80
-20
+33
 6f
 e0
-cb
-8b
+c8
+c9
+1f
+e6
+7c
+02
 24
-3a
-48
-84
+21
+00
+1e
+6f
+e0
+c8
+c9
+c0
+00
+00
+34
 20
-40
-42
-cb
+60
+00
+00
 6f
 e0
 c8
-36
-c2
-80
-80
-2f
+c9
 68
 48
-c7
-c7
-6f
-e0
 c8
-d0
+ca
 98
-41
-fe
+46
+7c
+00
+24
+62
+80
+00
+70
+48
+c9
 00
-67
-e0
-c8
-d0
 68
 48
+c8
 c7
-cc
 6f
 e0
 c8
-d5
-98
-40
-fe
+cb
+c5
+13
 00
-67
+27
+6f
 e0
 c8
-d5
-68
-48
-c7
-cd
+ce
+98
+46
+7c
+00
+24
+61
+00
+00
 6f
 e0
 c8
-d6
-98
-40
-fe
+c8
+c0
 00
+00
+31
+1f
+e0
+ff
+ff
 67
 e0
 c8
-d6
-70
-48
-36
+c8
+c0
+02
+00
+3e
+c0
+01
+80
+42
+c0
 01
-da
-20
 00
-07
-da
 40
-48
-d0
-6f
-e1
-48
-d5
-20
-7a
-00
+c0
 00
-20
-20
-26
-e1
-20
 80
-00
-00
+44
+70
+41
+e8
+85
 20
-40
+60
 00
-38
-20
-20
-08
-04
-20
-75
-80
 00
-20
-40
-5c
-15
-20
-40
-5c
-1e
-20
-40
-5c
-24
-20
-40
-5c
-29
-20
-40
-5c
-2f
-20
-40
-5c
-33
-20
-20
-00
-40
-70
-0b
-58
-ff
 70
-47
-90
-ff
-70
-47
-8f
-1e
-58
-00
-49
-2d
-67
-e1
-44
-8d
-70
-44
-8c
-01
-58
-00
-4a
-b5
-67
-e1
-48
-99
-70
-48
-36
-01
-6f
-e1
 48
-fe
-67
-e1
-47
-91
-6f
-e1
-49
+c9
 00
-67
-e1
-48
-81
 6f
 e0
-c9
-03
-67
-e1
-48
-85
-6f
-e2
-c9
-05
-67
-e2
 c8
-cb
-6f
+c8
+c0
+02
+00
+3e
+1f
 e0
-c9
-04
+fe
+01
 67
 e0
 c8
-7c
-6f
-e4
-4b
-ab
-24
-7a
+c8
+c0
 00
+80
+44
+c0
+01
 00
-58
-4a
-08
-04
-67
-e1
-cb
-ab
-58
+40
+c0
+01
 80
+42
+c0
+02
 00
+3e
+70
+41
+e8
+0a
+20
+60
 00
-e7
-e1
-80
-05
-58
 00
+70
+41
+e8
+07
+20
+60
+00
+00
+70
+41
+e8
 03
-03
-e7
-e1
+20
+60
 00
+00
+70
+41
+e8
 05
+20
+60
+00
+00
 70
-40
-99
+41
+e8
+00
+20
+60
+00
+00
+70
+48
+c8
 01
-6f
-e0
+70
+48
 c9
-0a
-2f
-ef
-fe
 00
 20
-40
-c6
-e6
+60
+00
+00
 6f
 e0
+c8
 c9
-0a
-2f
-ef
-fe
-02
-20
-40
-c6
-e8
-6f
+1f
 e0
-c9
-0a
-2f
-ef
 fe
 01
-20
-40
-c6
-ea
-6f
-e0
-c9
-0a
-2f
-ef
-fe
-03
-20
-40
-c6
-ec
-6f
+67
 e0
+c8
 c9
-0a
-2f
-ef
-fe
-04
 20
-40
-c6
-ee
+60
+00
+00
 6f
 e0
+c8
 c9
-0a
-2f
-ef
-fe
-05
-20
-40
-c6
-f8
+1f
+e6
+7c
+02
+24
+41
+00
+55
 6f
 e0
 c8
-66
-24
-5a
-23
-0e
-20
-40
-3b
-fd
-6f
-e0
 c9
-0b
-1f
-e1
-04
-07
-60
-48
-c4
-a1
-1f
-e9
-7e
+c1
 00
-1f
-e1
-04
-01
-60
-48
-c8
-66
-1f
-e3
-7e
 00
-1f
-e1
-04
-03
-60
-48
-c8
-fd
-1f
-eb
-7e
 00
 1f
-e1
-7e
-03
-20
-40
-47
-d4
-6f
 e0
+ff
+ff
+67
+e0
+c8
 c9
-0c
-1f
-e1
-04
-03
+20
 60
-48
-c9
-24
-1f
-eb
-7e
 00
-1f
-e1
-04
-03
-60
+00
+70
 48
 c9
-25
-1f
-eb
-7e
-00
-1f
-e1
-7e
 03
-67
-e0
-c9
-26
-67
-e0
-c9
-92
-1f
-eb
-7e
+20
+60
 00
-1f
-e1
-7e
-03
-67
-e0
-cb
-b4
-58
-0c
-0d
-0b
-67
-e1
-c9
-18
-58
-ff
-ff
-ff
-e7
-e1
-80
-05
-58
-06
-07
-ff
-e7
-e1
-80
-05
-58
-ff
-ff
-ff
-e7
-e1
-80
-05
-58
 00
-1f
-80
-67
-e1
-44
-79
-70
-44
-83
-80
-20
-20
-3c
-54
 70
-8a
-8b
-e6
-20
-40
-12
-6a
-20
-40
-12
-71
-20
+89
+21
 40
-12
-77
-70
-8a
-6d
-09
-70
-8a
-03
-05
 70
-8a
-7a
-94
-70
-8a
-0e
-0b
-70
-8a
-0f
-05
+89
+34
+02
 70
-8a
-83
-90
-6f
-e0
-c0
-c5
-c0
-84
-12
-60
+89
+38
+88
 70
-8a
-08
-34
-20
-20
+89
+6d
 12
-60
 20
 40
-42
-e9
+6d
+f3
 20
 40
-7f
-dc
+3b
+f0
 20
 40
-3e
+41
+a7
+20
 40
-d8
 40
+8e
+20
+75
+80
 00
-13
 20
 40
-3f
-56
-6f
-e0
-c9
+3d
+8a
 20
-d8
 40
-00
-3f
-20
+47
+28
 20
-60
-93
+40
+3b
+cf
 20
 40
-3f
-88
+42
+3c
 6f
 e0
 c9
-1f
-d8
-40
+2a
+c3
+83
+80
 00
-3f
-20
-40
-60
-93
 20
 20
-3e
-44
+3d
+52
+58
+00
+00
+6a
+67
+e1
+48
+9b
 20
-40
-26
-31
-24
-34
-26
-a1
 20
-40
-26
-46
+3b
+d1
+c6
+93
+00
+00
 20
 40
-26
-ee
+3f
+70
+24
+74
+00
+00
+6f
+e4
+4b
+ab
+c3
+0a
+80
+71
 6f
 e0
 cb
-e1
+8b
 24
 3a
-00
-bb
+48
+84
+20
+40
+42
+cb
 6f
-e4
+e0
+c8
+36
+c2
+80
+80
+80
+68
 48
-b0
+c7
+c7
+6f
+e0
+c8
+d0
+98
+41
+fe
+00
 67
-e4
+e0
+c8
+d0
+68
 48
-5c
+c7
+cc
 6f
-e1
-48
-c2
+e0
+c8
+d5
+98
+40
+fe
+00
 67
-e1
+e0
+c8
+d5
+68
 48
-c4
-20
+c7
+cd
+6f
+e0
+c8
+d6
+98
 40
-26
-bb
-24
-74
-00
+fe
 00
+67
+e0
+c8
+d6
+70
+48
+36
+01
+da
 20
+00
+07
+da
 40
-7f
-dc
+48
+d0
 6f
 e1
-c8
-ad
+48
+d5
 20
+7a
+00
+00
 20
-26
-b8
 20
-40
-3f
-65
+26
+e1
 20
-75
 80
 00
-20
-40
-42
-36
-20
-40
-41
-b5
-c0
-18
 00
-ca
-c0
-18
-c2
-17
-c0
-2c
-42
-20
 20
 40
-41
-b2
-20
 00
-1a
-f4
+89
 20
 20
-00
-c3
-6f
-e0
-c9
-c2
-c0
-2d
-00
-cd
-20
+08
+04
 20
-41
-be
-70
-49
-27
-05
-58
-00
+75
 80
-06
+00
 20
 40
-5b
-0c
+5c
+15
 20
 40
-7d
-12
-da
-60
-4b
-e2
+5c
+1e
 20
 40
-42
-2b
+5c
+24
 20
+40
+5c
+29
 20
 40
-8e
-9c
-b6
-aa
-55
+5c
+2f
+20
 40
+5c
+33
+20
+20
 00
+91
+70
+0b
+58
+ff
+70
+47
+90
+ff
+70
+47
+8f
+1e
+58
 00
-40
+49
+2d
+67
+e1
+44
+8d
+70
+44
+8c
 01
+58
 00
+4a
+b5
+67
+e1
+48
+99
+70
+48
+36
+01
+6f
+e1
+48
+fe
+67
+e1
+47
+91
+6f
+e1
+49
 00
+67
+e1
+48
+81
+6f
+e0
+c9
+03
+67
+e1
+48
+85
+6f
+e2
+c9
+05
+67
+e2
+c8
+cb
+6f
+e0
+c9
+04
+67
+e0
+c8
+7c
+6f
+e4
+4b
+ab
+24
+7a
 00
 00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-08
-00
-00
-00
-40
-00
-00
-00
-06
+58
+4a
 08
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
 04
+67
+e1
+cb
+ab
+58
+80
 00
 00
-aa
-55
-01
+e7
+e1
+80
+05
+58
 00
-9a
-40
-08
-aa
-55
-06
+03
+03
+e7
+e1
 00
-a8
+05
+70
 40
-08
-09
-2a
-22
-11
-22
-aa
-55
-1a
+99
+01
+6f
+e0
+c9
+0a
+2f
+ef
+fe
 00
+20
+40
+c6
+e6
+6f
+e0
+c9
+0a
+2f
+ef
 fe
-48
-b0
-04
-58
 02
-32
-05
-94
-85
-90
-63
-75
-80
-0a
-83
-4c
-0b
-0c
-0d
-ff
-ff
-ff
-05
-04
-ff
-ff
+20
+40
+c6
+e8
+6f
+e0
+c9
 0a
-aa
-55
+2f
+ef
+fe
 01
-00
-9a
+20
 40
-08
-aa
-55
-01
-00
-7b
-41
-12
-aa
-55
-01
-00
-7d
-41
-70
-aa
-55
-01
-00
-d0
-44
-00
-aa
-55
-01
-00
+c6
 ea
-41
-ff
-aa
-55
-01
-00
-ee
-41
-00
-aa
-55
-01
-00
-c0
-49
-05
-aa
-55
-26
-00
-e2
-4b
-09
-5a
-ff
-27
-ab
+6f
+e0
+c9
+0a
+2f
+ef
+fe
+03
+20
 40
-b3
-56
-9b
-e6
-a8
-12
-a9
-c0
-be
-e6
-a5
-af
-a0
-21
-a1
-02
-b8
-10
-b9
+c6
+ec
+6f
+e0
+c9
+0a
+2f
+ef
+fe
+04
+20
+40
+c6
+ee
+6f
+e0
+c9
+0a
+2f
+ef
+fe
+05
+20
+40
+c6
+f8
+6f
+e0
+c8
+66
+24
+5a
+23
+0e
+20
+40
+3b
+fd
+6f
+e0
+c9
 0b
-a7
-ff
-b5
-d0
-b6
+1f
+e1
+04
+07
+60
+48
+c4
+a1
+1f
+e9
+7e
 00
-ff
+1f
+e1
+04
+01
+60
+48
+c8
+66
+1f
+e3
+7e
 00
-09
+1f
+e1
+04
+03
+60
+48
+c8
+fd
+1f
+eb
+7e
 00
-ff
-ff
-aa
-55
-10
+1f
+e1
+7e
+03
+20
+40
+47
+d4
+6f
+e0
+c9
+0c
+1f
+e1
+04
+03
+60
+48
+c9
+24
+1f
+eb
+7e
 00
-71
-4a
-09
-5a
-06
-02
-09
-69
-0d
+1f
+e1
+04
+03
+60
 48
-0e
-9f
-0f
-ba
-09
+c9
+25
+1f
+eb
+7e
 00
-ff
-ff
-55
-aa
-aa
-55
-fd
-3e
-a8
-bd
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+1f
+e1
+7e
+03
+67
+e0
+c9
+26
+67
+e0
+c9
+92
+1f
+eb
+7e
+00
+1f
+e1
+7e
+03
+67
+e0
+cb
+b4
+58
+0c
+0d
+0b
+67
+e1
+c9
+18
+58
 ff
 ff
 ff
+e7
+e1
+80
+05
+58
+06
+07
 ff
+e7
+e1
+80
+05
+58
 ff
 ff
 ff
+e7
+e1
+80
+05
+58
+00
+1f
+80
+67
+e1
+44
+79
+70
+44
+83
+80
+20
+20
+3c
+54
+70
+89
+21
+40
+70
+89
+34
+02
+70
+89
+38
+88
+70
+89
+6d
+12
+70
+8a
+8b
+e6
+20
+40
+12
+6a
+20
+40
+12
+71
+20
+40
+12
+77
+70
+8a
+6d
+09
+70
+8a
+03
+05
+70
+8a
+7a
+94
+70
+8a
+0e
+0b
+70
+8a
+0f
+05
+70
+8a
+83
+90
+6f
+e0
+c0
+c5
+c0
+84
+12
+60
+70
+8a
+08
+34
+20
+20
+12
+60
+20
+40
+42
+e9
+20
+40
+7f
+dc
+20
+40
+3e
+40
+d8
+40
+00
+13
+20
+40
+3f
+56
+6f
+e0
+c9
+20
+d8
+40
+00
+3f
+20
+20
+60
+93
+20
+40
+3f
+88
+6f
+e0
+c9
+1f
+d8
+40
+00
+3f
+20
+40
+60
+93
+20
+20
+3e
+44
+20
+40
+26
+31
+24
+34
+26
+a1
+20
+40
+26
+46
+20
+40
+26
+ee
+6f
+e0
+cb
+e1
+24
+3a
+01
+10
+6f
+e4
+48
+b0
+67
+e4
+48
+5c
+6f
+e1
+48
+c2
+67
+e1
+48
+c4
+20
+40
+26
+bb
+24
+74
+00
+00
+20
+40
+7f
+dc
+6f
+e1
+c8
+ad
+20
+20
+26
+b8
+20
+40
+3f
+65
+20
+75
+80
+00
+20
+40
+42
+36
+20
+40
+41
+b5
+c0
+18
+01
+1f
+c0
+18
+c2
+17
+c0
+2c
+42
+20
+20
+40
+41
+b2
+20
+00
+1a
+f4
+20
+20
+01
+18
+6f
+e0
+c9
+c2
+c0
+2d
+01
+22
+20
+20
+41
+be
+70
+49
+27
+05
+58
+00
+80
+06
+20
+40
+5b
+0c
+20
+40
+7d
+12
+da
+60
+4b
+e2
+20
+40
+42
+2b
+20
+20
+40
+8e
+be
+e6
+aa
+55
+40
+00
+00
+40
+01
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+08
+00
+00
+00
+40
+00
+00
+00
+06
+08
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+24
+00
+00
+aa
+55
+01
+00
+9a
+40
+08
+aa
+55
+06
+00
+a8
+40
+08
+09
+2a
+22
+11
+22
+aa
+55
+1a
+00
+fe
+48
+b0
+04
+58
+02
+32
+05
+94
+80
+90
+63
+70
+80
+0a
+83
+4c
+0b
+0c
+0d
 ff
 ff
 ff
+05
+04
 ff
 ff
+0a
+aa
+55
+01
+00
+9a
+40
+08
+aa
+55
+01
+00
+7b
+41
+12
+aa
+55
+01
+00
+7d
+41
+70
+aa
+55
+01
+00
+d0
+44
+00
+aa
+55
+01
+00
+ea
+41
 ff
+aa
+55
+01
+00
+ee
+41
+00
+aa
+55
+01
+00
+c0
+49
+05
+aa
+55
+26
+00
+e2
+4b
+09
+5a
 ff
+27
+ab
+40
+b3
+56
+9b
+e6
+a8
+12
+a9
+c0
+be
+e6
+a5
+af
+a0
+21
+a1
+02
+b8
+10
+b9
+0b
+a7
 ff
+b5
+d0
+b6
+00
 ff
+00
+09
+00
 ff
 ff
+aa
+55
+10
+00
+71
+4a
+09
+5a
+06
+02
+09
+69
+0d
+48
+0e
+9f
+0f
+ba
+09
+00
 ff
 ff
+55
+aa
+aa
+55
+13
+3f
+7e
+15
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-05
-5f
+8c
+94
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/AutoPair_24G/output/program.lis	(revision 408)
+++ /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/AutoPair_24G/output/program.lis	(working copy)
@@ -1,263 +1,392 @@
               include "bt_format "
               org 0x0000
 0000 c2840008 bbit1 8 ,pf_patch_ext 
-0001 c0000035 beq patch00_0 ,p_soft_reset 
-0002 c0458096 beq patch11_3 ,p_initialize_radio_cont 
-0003 c057000a beq patch15_6 ,p_app_init 
-0004 c06480a4 beq patch19_1 ,p_mouse_setgpio_hibernate 
-0005 c06500ac beq patch19_2 ,p_mouse_lpm_before_common 
-0006 c06980c0 beq patch1a_3 ,p_mouse_init_sunt 
+0001 c0000086 beq patch00_0 ,p_soft_reset 
+0002 c04580e7 beq patch11_3 ,p_initialize_radio_cont 
+0003 c0570057 beq patch15_6 ,p_app_init 
+0004 c06480f9 beq patch19_1 ,p_mouse_setgpio_hibernate 
+0005 c0650101 beq patch19_2 ,p_mouse_lpm_before_common 
+0006 c0698115 beq patch1a_3 ,p_mouse_init_sunt 
 0007 2020137c branch loop 
 
 pf_patch_ext:
-0008 c07500b1 beq patch3d_2 ,p_g24_transmit_no_interrupt 
-0009 2020137c branch loop 
+0008 c0750106 beq patch3d_2 ,p_g24_transmit_no_interrupt 
+0009 c076800c beq patch3d_5 ,p_power_ctrl_start 
+000a 2020137c branch loop 
+
+p_txon:
+000b 20201241 branch set_tx_power_f5db 
+
+p_power_ctrl_start:
+000c 6fe1478c fetch 2 ,mem_ui_state_map 
+000d c3858000 rtnbit1 ui_state_ble_adv 
+000e c3838000 rtnbit1 ui_state_bt_reconnect 
+000f c3830000 rtnbit1 ui_state_bt_discovery 
+0010 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
+0011 204025cb call rssi_average 
+0012 6048c8c7 storet 1 ,mem_rssi_avg_received 
+0013 6fe0c8cc fetch 1 ,mem_rssi_dis_max_24g 
+0014 c5130016 bmark1 mark_24g ,p_power_ctrl_start_next 
+0015 6fe0c8cf fetch 1 ,mem_rssi_dis_max_ble 
+
+p_power_ctrl_start_next:
+0016 98467c00 isub temp ,null 
+0017 24210033 nbranch p_power_ctrl_txpower_incrs_force ,positive 
+0018 6fe0c8c9 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+0019 1fe67c02 sub pdata ,2 ,null 
+001a 2421001e nbranch p_power_ctrl_txpower_decrs_check ,positive 
+001b 6fe0c8c9 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+001c c0000034 beq 0 ,p_power_ctrl_txpower_incrs 
+001d 20600000 rtn 
+
+p_power_ctrl_txpower_decrs_check:
+001e 6fe0c8c9 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+001f 6848c8ca fetcht 1 ,mem_power_ctrl_pac_succ_cnt_init 
+0020 98467c00 isub temp ,null 
+0021 24628000 nrtn zero 
+0022 7048c900 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+
+p_power_ctrl_txpower_decrs:
+0023 6848c8c7 fetcht 1 ,mem_rssi_avg_received 
+0024 6fe0c8cb fetch 1 ,mem_rssi_dis_min_24g 
+0025 c5130027 bmark1 mark_24g ,p_power_ctrl_txpower_decrs_next 
+0026 6fe0c8ce fetch 1 ,mem_rssi_dis_min_ble 
+
+p_power_ctrl_txpower_decrs_next:
+0027 98467c00 isub temp ,null 
+0028 24610000 nrtn positive 
+0029 6fe0c8c8 fetch 1 ,mem_power_ctrl_level 
+002a c0000031 beq 0 ,p_power_ctrl_decrs_level0 
+002b 1fe0ffff increase -1 ,pdata 
+002c 67e0c8c8 store 1 ,mem_power_ctrl_level 
+002d c002003e beq 4 ,p_power_ctrl_decrs_level4 
+002e c0018042 beq 3 ,p_power_ctrl_decrs_level3 
+002f c0010040 beq 2 ,p_power_ctrl_decrs_level2 
+0030 c0008044 beq 1 ,p_power_ctrl_decrs_level1 
+
+p_power_ctrl_decrs_level0:
+0031 7041e885 jam tx_power_f5db ,mem_tx_power 
+0032 20600000 rtn 
+
+p_power_ctrl_txpower_incrs_force:
+0033 7048c900 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+
+p_power_ctrl_txpower_incrs:
+0034 6fe0c8c8 fetch 1 ,mem_power_ctrl_level 
+0035 c002003e beq 4 ,p_power_ctrl_incrs_level4 
+0036 1fe0fe01 increase 1 ,pdata 
+0037 67e0c8c8 store 1 ,mem_power_ctrl_level 
+0038 c0008044 beq 1 ,p_power_ctrl_incrs_level1 
+0039 c0010040 beq 2 ,p_power_ctrl_incrs_level2 
+003a c0018042 beq 3 ,p_power_ctrl_incrs_level3 
+003b c002003e beq 4 ,p_power_ctrl_incrs_level4 
+
+p_power_ctrl_incrs_level5:
+003c 7041e80a jam tx_power_10db ,mem_tx_power 
+003d 20600000 rtn 
+
+p_power_ctrl_decrs_level4:
+
+p_power_ctrl_incrs_level4:
+003e 7041e807 jam tx_power_7db ,mem_tx_power 
+003f 20600000 rtn 
+
+p_power_ctrl_decrs_level2:
+
+p_power_ctrl_incrs_level2:
+0040 7041e803 jam tx_power_3db ,mem_tx_power 
+0041 20600000 rtn 
+
+p_power_ctrl_decrs_level3:
+
+p_power_ctrl_incrs_level3:
+0042 7041e805 jam tx_power_5db ,mem_tx_power 
+0043 20600000 rtn 
+
+p_power_ctrl_decrs_level1:
+
+p_power_ctrl_incrs_level1:
+0044 7041e800 jam tx_power_0db ,mem_tx_power 
+0045 20600000 rtn 
+
+p_power_ctrl_pac_succ_cnt_init:
+0046 7048c801 jam 1 ,mem_power_ctrl_level 
+0047 7048c900 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+0048 20600000 rtn 
+
+p_power_ctrl_pac_succ_incrs:
+0049 6fe0c8c9 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+004a 1fe0fe01 increase 1 ,pdata 
+004b 67e0c8c9 store 1 ,mem_power_ctrl_pac_succ_cnt 
+004c 20600000 rtn 
+
+p_power_ctrl_pac_succ_decrs:
+004d 6fe0c8c9 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+004e 1fe67c02 sub pdata ,2 ,null 
+004f 24410055 ncall p_power_ctrl_pac_succ_cnt_reinit ,positive 
+0050 6fe0c8c9 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+0051 c1000000 rtneq 0 
+0052 1fe0ffff increase -1 ,pdata 
+0053 67e0c8c9 store 1 ,mem_power_ctrl_pac_succ_cnt 
+0054 20600000 rtn 
+
+p_power_ctrl_pac_succ_cnt_reinit:
+0055 7048c903 jam 3 ,mem_power_ctrl_pac_succ_cnt 
+0056 20600000 rtn 
 
 p_app_init:
 
 p_mouse_init:
-000a 20406df3 call enable_authrom 
-000b 20403bf0 call mouse_setting_config 
-000c 204041a7 call mouse_init_sunt 
-000d 2040408e call mouse_dpi_config 
-000e 20758000 rtn wake 
-000f 20403d8a call mouse_usb_check_enable 
-0010 20404728 call mouse_drawing_optima_init 
-0011 20403bcf call mouse_cb_fuction 
-0012 2040423c call mouse_sensor_powerdown 
-0013 6fe0c92a fetch 1 ,mem_usb_addr 
-0014 c3838000 rtnbit1 7 
+0057 70892140 jam 0x40 ,0x8921 
+0058 70893402 jam 0x02 ,0x8934 
+0059 70893888 jam 0x88 ,0x8938 
+005a 70896d12 jam 0x12 ,0x896d 
+005b 20406df3 call enable_authrom 
+005c 20403bf0 call mouse_setting_config 
+005d 204041a7 call mouse_init_sunt 
+005e 2040408e call mouse_dpi_config 
+005f 20758000 rtn wake 
+0060 20403d8a call mouse_usb_check_enable 
+0061 20404728 call mouse_drawing_optima_init 
+0062 20403bcf call mouse_cb_fuction 
+0063 2040423c call mouse_sensor_powerdown 
+0064 6fe0c92a fetch 1 ,mem_usb_addr 
+0065 c3838000 rtnbit1 7 
 
 p_mouse_init_wireless:
-0015 20203d52 branch mouse_start_work 
+0066 20203d52 branch mouse_start_work 
 
 p_mouse_cb_fuction:
-0016 58000019 setarg p_mouse_24g_package_data 
-0017 67e1489b store 2 ,mem_cb_24g_transmit_data 
-0018 20203bd1 branch mouse_cb_fuction + 2 
+0067 5800006a setarg p_mouse_24g_package_data 
+0068 67e1489b store 2 ,mem_cb_24g_transmit_data 
+0069 20203bd1 branch mouse_cb_fuction + 2 
 
 p_mouse_24g_package_data:
-0019 c6930000 rtnmark0 mark_24g 
-001a 20403f70 call mouse_motion 
-001b 24740000 nrtn user 
-001c 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-001d c30a8020 bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
-001e 6fe0cb8b fetch 1 ,mem_customer_key 
-001f 243a4884 nbranch mouse_24g_keyboard_package_data ,blank 
+006a c6930000 rtnmark0 mark_24g 
+006b 20403f70 call mouse_motion 
+006c 24740000 nrtn user 
+006d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+006e c30a8071 bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
+006f 6fe0cb8b fetch 1 ,mem_customer_key 
+0070 243a4884 nbranch mouse_24g_keyboard_package_data ,blank 
 
 p_mouse_24g_mouse_package_data:
-0020 204042cb call mouse_data_xy_release 
-0021 6fe0c836 fetch 1 ,mem_24g_data_type 
-0022 c280802f bbit1 1 ,p_mouse_24g_mouse_package_data_now 
-0023 6848c7c7 fetcht 1 ,mem_24g_txbuf + 1 
-0024 6fe0c8d0 fetch 1 ,mem_mouse_key 
-0025 9841fe00 ior temp ,pdata 
-0026 67e0c8d0 store 1 ,mem_mouse_key 
-0027 6848c7cc fetcht 1 ,mem_24g_txbuf + 6 
-0028 6fe0c8d5 fetch 1 ,mem_mouse_z 
-0029 9840fe00 iadd temp ,pdata 
-002a 67e0c8d5 store 1 ,mem_mouse_z 
-002b 6848c7cd fetcht 1 ,mem_24g_txbuf + 7 
-002c 6fe0c8d6 fetch 1 ,mem_mouse_tz 
-002d 9840fe00 iadd temp ,pdata 
-002e 67e0c8d6 store 1 ,mem_mouse_tz 
+0071 204042cb call mouse_data_xy_release 
+0072 6fe0c836 fetch 1 ,mem_24g_data_type 
+0073 c2808080 bbit1 1 ,p_mouse_24g_mouse_package_data_now 
+0074 6848c7c7 fetcht 1 ,mem_24g_txbuf + 1 
+0075 6fe0c8d0 fetch 1 ,mem_mouse_key 
+0076 9841fe00 ior temp ,pdata 
+0077 67e0c8d0 store 1 ,mem_mouse_key 
+0078 6848c7cc fetcht 1 ,mem_24g_txbuf + 6 
+0079 6fe0c8d5 fetch 1 ,mem_mouse_z 
+007a 9840fe00 iadd temp ,pdata 
+007b 67e0c8d5 store 1 ,mem_mouse_z 
+007c 6848c7cd fetcht 1 ,mem_24g_txbuf + 7 
+007d 6fe0c8d6 fetch 1 ,mem_mouse_tz 
+007e 9840fe00 iadd temp ,pdata 
+007f 67e0c8d6 store 1 ,mem_mouse_tz 
 
 p_mouse_24g_mouse_package_data_now:
-002f 70483601 jam type_ms ,mem_24g_data_type 
-0030 da200007 arg 7 ,rega 
-0031 da4048d0 arg mem_mouse_key ,regb 
-0032 6fe148d5 fetch 2 ,mem_mouse_z 
-0033 207a0000 rtn blank 
-0034 202026e1 branch g24_transmit_by_interrupt_enable 
+0080 70483601 jam type_ms ,mem_24g_data_type 
+0081 da200007 arg 7 ,rega 
+0082 da4048d0 arg mem_mouse_key ,regb 
+0083 6fe148d5 fetch 2 ,mem_mouse_z 
+0084 207a0000 rtn blank 
+0085 202026e1 branch g24_transmit_by_interrupt_enable 
 
 p_soft_reset:
-0035 20800000 clear_stack 
-0036 20400038 call p_app_param_init 
-0037 20200804 branch soft_reset + 3 
+0086 20800000 clear_stack 
+0087 20400089 call p_app_param_init 
+0088 20200804 branch soft_reset + 3 
 
 p_app_param_init:
-0038 20758000 rtn wake 
-0039 20405c15 call app_read_efuse_sys_config 
-003a 20405c1e call app_read_efuse_dig_aon_vsel 
-003b 20405c24 call app_read_efuse_syn_afc_cfg1 
-003c 20405c29 call app_read_efuse_rf_ldo_cfg1 
-003d 20405c2f call app_read_efuse_rc_cal 
-003e 20405c33 call app_read_efuse_agc 
-003f 20200040 branch p_mouse_default_init 
+0089 20758000 rtn wake 
+008a 20405c15 call app_read_efuse_sys_config 
+008b 20405c1e call app_read_efuse_dig_aon_vsel 
+008c 20405c24 call app_read_efuse_syn_afc_cfg1 
+008d 20405c29 call app_read_efuse_rf_ldo_cfg1 
+008e 20405c2f call app_read_efuse_rc_cal 
+008f 20405c33 call app_read_efuse_agc 
+0090 20200091 branch p_mouse_default_init 
 
 p_mouse_default_init:
-0040 700b58ff jam 0xff ,mem_usb_offline_check_gpio 
-0041 704790ff jam 0xff ,mem_ui_button_gpio 
-0042 70478f1e jam 0x1e ,mem_ui_button_timeout 
-0043 5800492d setarg mem_mouse_led_type 
-0044 67e1448d store 2 ,mem_ui_led_struct_ptr 
-0045 70448c01 jam 1 ,mem_ui_led_struct_num 
-0046 58004ab5 setarg mem_mouse_rssi_signal_buf 
-0047 67e14899 store 2 ,mem_rssi_signal_buf_ptr 
-0048 70483601 jam 1 ,mem_24g_data_type 
-0049 6fe148fe fetch 2 ,mem_mouse_discovery_timeout 
-004a 67e14791 store 2 ,mem_discovery_timeout 
-004b 6fe14900 fetch 2 ,mem_mouse_24g_pair_timeout_init 
-004c 67e14881 store 2 ,mem_24g_pair_timeout_init 
-004d 6fe0c903 fetch 1 ,mem_mouse_24g_reconn_timeout_init 
-004e 67e14885 store 2 ,mem_24g_reconn_timeout_init 
-004f 6fe2c905 fetch 5 ,mem_rssi_dis_min_24g_init 
-0050 67e2c8cb store 5 ,mem_rssi_dis_min_24g 
-0051 6fe0c904 fetch 1 ,mem_mouse_24g_pair_tx_power 
-0052 67e0c87c store 1 ,mem_24g_pair_tx_power 
-0053 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0054 247a0000 nrtn blank 
-0055 584a0804 setarg 0x4a0804 
-0056 67e1cbab store 3 ,mem_mouse_flag 
-0057 58800000 setarg 0x800000 
-0058 e7e18005 istore 3 ,contw 
-0059 58000303 setarg 0x0303 
-005a e7e10005 istore 2 ,contw 
-005b 70409901 jam 1 ,mem_lpm_mode 
-005c 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
-005d 2feffe00 isolate1 mouse_adc_enable ,pdata 
-005e 2040c6e6 call mouse_adc_read_enable ,true 
-005f 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
-0060 2feffe02 isolate1 mouse_24g_250hz_enable ,pdata 
-0061 2040c6e8 call mouse_24g_set_250hz ,true 
-0062 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
-0063 2feffe01 isolate1 mouse_search_dongle_enable ,pdata 
-0064 2040c6ea call mouse_24g_search_dongle_enable ,true 
-0065 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
-0066 2feffe03 isolate1 mouse_clk_16m_enable ,pdata 
-0067 2040c6ec call mouse_16m_enable ,true 
-0068 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
-0069 2feffe04 isolate1 mouse_dpi_4_level_enable ,pdata 
-006a 2040c6ee call mouse_dpi_4level_enable ,true 
-006b 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
-006c 2feffe05 isolate1 mouse_keyboard_enable ,pdata 
-006d 2040c6f8 call mouse_customer_key_enable ,true 
-006e 6fe0c866 fetch 1 ,mem_24g_ch_map_update 
-006f 245a230e ncall g24_chamap_param_update ,blank 
-0070 20403bfd call mouse_xtal_init 
-0071 6fe0c90b fetch 1 ,mem_mouse_global_setup 
-0072 1fe10407 and pdata ,0x07 ,temp 
-0073 6048c4a1 storet 1 ,mem_adc_channel 
-0074 1fe97e00 rshift3 pdata ,pdata 
-0075 1fe10401 and pdata ,0x01 ,temp 
-0076 6048c866 storet 1 ,mem_24g_ch_map_update 
-0077 1fe37e00 rshift pdata ,pdata 
-0078 1fe10403 and pdata ,0x03 ,temp 
-0079 6048c8fd storet 1 ,mem_adc_config_flag_init 
-007a 1feb7e00 rshift2 pdata ,pdata 
-007b 1fe17e03 and pdata ,0x03 ,pdata 
-007c 204047d4 call mouse_24g_long_sleep_set 
-007d 6fe0c90c fetch 1 ,mem_mouse_global_setup1 
-007e 1fe10403 and pdata ,0x03 ,temp 
-007f 6048c924 storet 1 ,mem_sensor_angle_default 
-0080 1feb7e00 rshift2 pdata ,pdata 
-0081 1fe10403 and pdata ,0x03 ,temp 
-0082 6048c925 storet 1 ,mem_sensor_angle_switch 
-0083 1feb7e00 rshift2 pdata ,pdata 
-0084 1fe17e03 and pdata ,0x03 ,pdata 
-0085 67e0c926 store 1 ,mem_config_sensor_dpi 
-0086 67e0c992 store 1 ,mem_mouse_dpi 
-0087 1feb7e00 rshift2 pdata ,pdata 
-0088 1fe17e03 and pdata ,0x03 ,pdata 
-0089 67e0cbb4 store 1 ,mem_device_number 
-008a 580c0d0b setarg 0x0c0d0b 
-008b 67e1c918 store 3 ,mem_lbutton_gpio 
-008c 58ffffff setarg 0xffffff 
-008d e7e18005 istore 3 ,contw 
-008e 580607ff setarg 0x0607ff 
-008f e7e18005 istore 3 ,contw 
-0090 58ffffff setarg 0xffffff 
-0091 e7e18005 istore 3 ,contw 
-0092 58001f80 setarg 0x1f80 
-0093 67e14479 store 2 ,mem_eeprom_base 
-0094 70448380 jam 0x80 ,mem_eeprom_block_size 
-0095 20203c54 branch mouse_default_init_next 
+0091 700b58ff jam 0xff ,mem_usb_offline_check_gpio 
+0092 704790ff jam 0xff ,mem_ui_button_gpio 
+0093 70478f1e jam 0x1e ,mem_ui_button_timeout 
+0094 5800492d setarg mem_mouse_led_type 
+0095 67e1448d store 2 ,mem_ui_led_struct_ptr 
+0096 70448c01 jam 1 ,mem_ui_led_struct_num 
+0097 58004ab5 setarg mem_mouse_rssi_signal_buf 
+0098 67e14899 store 2 ,mem_rssi_signal_buf_ptr 
+0099 70483601 jam 1 ,mem_24g_data_type 
+009a 6fe148fe fetch 2 ,mem_mouse_discovery_timeout 
+009b 67e14791 store 2 ,mem_discovery_timeout 
+009c 6fe14900 fetch 2 ,mem_mouse_24g_pair_timeout_init 
+009d 67e14881 store 2 ,mem_24g_pair_timeout_init 
+009e 6fe0c903 fetch 1 ,mem_mouse_24g_reconn_timeout_init 
+009f 67e14885 store 2 ,mem_24g_reconn_timeout_init 
+00a0 6fe2c905 fetch 5 ,mem_rssi_dis_min_24g_init 
+00a1 67e2c8cb store 5 ,mem_rssi_dis_min_24g 
+00a2 6fe0c904 fetch 1 ,mem_mouse_24g_pair_tx_power 
+00a3 67e0c87c store 1 ,mem_24g_pair_tx_power 
+00a4 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00a5 247a0000 nrtn blank 
+00a6 584a0804 setarg 0x4a0804 
+00a7 67e1cbab store 3 ,mem_mouse_flag 
+00a8 58800000 setarg 0x800000 
+00a9 e7e18005 istore 3 ,contw 
+00aa 58000303 setarg 0x0303 
+00ab e7e10005 istore 2 ,contw 
+00ac 70409901 jam 1 ,mem_lpm_mode 
+00ad 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
+00ae 2feffe00 isolate1 mouse_adc_enable ,pdata 
+00af 2040c6e6 call mouse_adc_read_enable ,true 
+00b0 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
+00b1 2feffe02 isolate1 mouse_24g_250hz_enable ,pdata 
+00b2 2040c6e8 call mouse_24g_set_250hz ,true 
+00b3 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
+00b4 2feffe01 isolate1 mouse_search_dongle_enable ,pdata 
+00b5 2040c6ea call mouse_24g_search_dongle_enable ,true 
+00b6 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
+00b7 2feffe03 isolate1 mouse_clk_16m_enable ,pdata 
+00b8 2040c6ec call mouse_16m_enable ,true 
+00b9 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
+00ba 2feffe04 isolate1 mouse_dpi_4_level_enable ,pdata 
+00bb 2040c6ee call mouse_dpi_4level_enable ,true 
+00bc 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
+00bd 2feffe05 isolate1 mouse_keyboard_enable ,pdata 
+00be 2040c6f8 call mouse_customer_key_enable ,true 
+00bf 6fe0c866 fetch 1 ,mem_24g_ch_map_update 
+00c0 245a230e ncall g24_chamap_param_update ,blank 
+00c1 20403bfd call mouse_xtal_init 
+00c2 6fe0c90b fetch 1 ,mem_mouse_global_setup 
+00c3 1fe10407 and pdata ,0x07 ,temp 
+00c4 6048c4a1 storet 1 ,mem_adc_channel 
+00c5 1fe97e00 rshift3 pdata ,pdata 
+00c6 1fe10401 and pdata ,0x01 ,temp 
+00c7 6048c866 storet 1 ,mem_24g_ch_map_update 
+00c8 1fe37e00 rshift pdata ,pdata 
+00c9 1fe10403 and pdata ,0x03 ,temp 
+00ca 6048c8fd storet 1 ,mem_adc_config_flag_init 
+00cb 1feb7e00 rshift2 pdata ,pdata 
+00cc 1fe17e03 and pdata ,0x03 ,pdata 
+00cd 204047d4 call mouse_24g_long_sleep_set 
+00ce 6fe0c90c fetch 1 ,mem_mouse_global_setup1 
+00cf 1fe10403 and pdata ,0x03 ,temp 
+00d0 6048c924 storet 1 ,mem_sensor_angle_default 
+00d1 1feb7e00 rshift2 pdata ,pdata 
+00d2 1fe10403 and pdata ,0x03 ,temp 
+00d3 6048c925 storet 1 ,mem_sensor_angle_switch 
+00d4 1feb7e00 rshift2 pdata ,pdata 
+00d5 1fe17e03 and pdata ,0x03 ,pdata 
+00d6 67e0c926 store 1 ,mem_config_sensor_dpi 
+00d7 67e0c992 store 1 ,mem_mouse_dpi 
+00d8 1feb7e00 rshift2 pdata ,pdata 
+00d9 1fe17e03 and pdata ,0x03 ,pdata 
+00da 67e0cbb4 store 1 ,mem_device_number 
+00db 580c0d0b setarg 0x0c0d0b 
+00dc 67e1c918 store 3 ,mem_lbutton_gpio 
+00dd 58ffffff setarg 0xffffff 
+00de e7e18005 istore 3 ,contw 
+00df 580607ff setarg 0x0607ff 
+00e0 e7e18005 istore 3 ,contw 
+00e1 58ffffff setarg 0xffffff 
+00e2 e7e18005 istore 3 ,contw 
+00e3 58001f80 setarg 0x1f80 
+00e4 67e14479 store 2 ,mem_eeprom_base 
+00e5 70448380 jam 0x80 ,mem_eeprom_block_size 
+00e6 20203c54 branch mouse_default_init_next 
 
 p_initialize_radio_cont:
-0096 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
-0097 2040126a call initialize_syn_afc_cfg1 
-0098 20401271 call initialize_rf_ldo_cfg1 
-0099 20401277 call initialize_rc_cal 
-009a 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
-009b 708a0305 jam 5 ,core_clkpll_cfg0 
-009c 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
-009d 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
-009e 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
-009f 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
-00a0 6fe0c0c5 fetch 1 ,mem_fcomp_div 
-00a1 c0841260 bne xtal_16m ,initialize_radio_cont_next 
-00a2 708a0834 jam 0x34 ,core_clkpll_cfg5 
-00a3 20201260 branch initialize_radio_cont_next 
+00e7 70892140 jam 0x40 ,0x8921 
+00e8 70893402 jam 0x02 ,0x8934 
+00e9 70893888 jam 0x88 ,0x8938 
+00ea 70896d12 jam 0x12 ,0x896d 
+00eb 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+00ec 2040126a call initialize_syn_afc_cfg1 
+00ed 20401271 call initialize_rf_ldo_cfg1 
+00ee 20401277 call initialize_rc_cal 
+00ef 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+00f0 708a0305 jam 5 ,core_clkpll_cfg0 
+00f1 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+00f2 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+00f3 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+00f4 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+00f5 6fe0c0c5 fetch 1 ,mem_fcomp_div 
+00f6 c0841260 bne xtal_16m ,initialize_radio_cont_next 
+00f7 708a0834 jam 0x34 ,core_clkpll_cfg5 
+00f8 20201260 branch initialize_radio_cont_next 
 
 p_mouse_setgpio_hibernate:
-00a4 204042e9 call mouse_set_sdio_high 
-00a5 20407fdc call clear_wake 
-00a6 20403e40 call mouse_lpm_before_common 
-00a7 d8400013 arg 19 ,temp 
-00a8 20403f56 call mouse_gpio_config_input_pu 
-00a9 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-00aa d840003f arg gpcfg_output_high ,temp 
-00ab 20206093 branch gpio_config_function_int 
+00f9 204042e9 call mouse_set_sdio_high 
+00fa 20407fdc call clear_wake 
+00fb 20403e40 call mouse_lpm_before_common 
+00fc d8400013 arg 19 ,temp 
+00fd 20403f56 call mouse_gpio_config_input_pu 
+00fe 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+00ff d840003f arg gpcfg_output_high ,temp 
+0100 20206093 branch gpio_config_function_int 
 
 p_mouse_lpm_before_common:
-00ac 20403f88 call mouse_wheel_check 
-00ad 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-00ae d840003f arg gpcfg_output_high ,temp 
-00af 20406093 call gpio_config_function_int 
-00b0 20203e44 branch mouse_lpm_before_common_next 
+0101 20403f88 call mouse_wheel_check 
+0102 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+0103 d840003f arg gpcfg_output_high ,temp 
+0104 20406093 call gpio_config_function_int 
+0105 20203e44 branch mouse_lpm_before_common_next 
 
 p_g24_transmit_no_interrupt:
-00b1 20402631 call g24_txdata_prep 
-00b2 243426a1 nbranch g24_nodata_transmit ,user 
+0106 20402631 call g24_txdata_prep 
+0107 243426a1 nbranch g24_nodata_transmit ,user 
 
 p_g24_transmit_start:
-00b3 20402646 call g24_transmit_process 
-00b4 204026ee call power_ctrl_start 
-00b5 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-00b6 243a00bb nbranch p_g24_short_sleep ,blank 
+0108 20402646 call g24_transmit_process 
+0109 204026ee call power_ctrl_start 
+010a 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+010b 243a0110 nbranch p_g24_short_sleep ,blank 
 
 p_g24_transmit_start_next:
-00b7 6fe448b0 fetch 8 ,mem_24g_long_sleep_set 
-00b8 67e4485c store 8 ,mem_24g_enter_hibernate 
-00b9 6fe148c2 fetch 2 ,mem_24g_long_sleep_param_update_timer_init 
-00ba 67e148c4 store 2 ,mem_24g_long_sleep_param_update_timer 
+010c 6fe448b0 fetch 8 ,mem_24g_long_sleep_set 
+010d 67e4485c store 8 ,mem_24g_enter_hibernate 
+010e 6fe148c2 fetch 2 ,mem_24g_long_sleep_param_update_timer_init 
+010f 67e148c4 store 2 ,mem_24g_long_sleep_param_update_timer 
 
 p_g24_short_sleep:
-00bb 204026bb call g24_lpm_wait 
-00bc 24740000 nrtn user 
-00bd 20407fdc call clear_wake 
-00be 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
-00bf 202026b8 branch g24_long_sleep2 
+0110 204026bb call g24_lpm_wait 
+0111 24740000 nrtn user 
+0112 20407fdc call clear_wake 
+0113 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
+0114 202026b8 branch g24_long_sleep2 
 
 p_mouse_init_sunt:
-00c0 20403f65 call mouse_sensor_spi_init 
-00c1 20758000 rtn wake 
+0115 20403f65 call mouse_sensor_spi_init 
+0116 20758000 rtn wake 
 
 p_mouse_init_sensor_wakeup:
-00c2 20404236 call mouse_sensor_poweron 
+0117 20404236 call mouse_sensor_poweron 
 
 p_mouse_init_sensor:
-00c3 204041b5 call mouse_read_sensor_id 
-00c4 c01800ca beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
-00c5 c018c217 beq p3065_id1 ,mouse_init_p3065 
-00c6 c02c4220 beq pka8g2_id1 ,mouse_ka8g2_id2_judge 
-00c7 204041b2 call mouse_twspi_reset 
-00c8 20001af4 nop 6900 
-00c9 202000c3 branch p_mouse_init_sensor 
+0118 204041b5 call mouse_read_sensor_id 
+0119 c018011f beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
+011a c018c217 beq p3065_id1 ,mouse_init_p3065 
+011b c02c4220 beq pka8g2_id1 ,mouse_ka8g2_id2_judge 
+011c 204041b2 call mouse_twspi_reset 
+011d 20001af4 nop 6900 
+011e 20200118 branch p_mouse_init_sensor 
 
 p_mouse_init_p32xx_id2_judge:
-00ca 6fe0c9c2 fetch 1 ,mem_sensor_id2 
-00cb c02d00cd beq p_mx8650 ,p_mouse_mx8650_init_param 
-00cc 202041be branch mouse_init_p32xx_id2_judge + 2 
+011f 6fe0c9c2 fetch 1 ,mem_sensor_id2 
+0120 c02d0122 beq p_mx8650 ,p_mouse_mx8650_init_param 
+0121 202041be branch mouse_init_p32xx_id2_judge + 2 
 
 p_mouse_mx8650_init_param:
-00cd 70492705 jam mx8650 ,mem_config_sensor_type 
-00ce 58008006 setarg 0x8006 
-00cf 20405b0c call twspi_write 
-00d0 20407d12 call delay_10ms 
-00d1 da604be2 arg mem_sensor_8650_init_new ,regc 
-00d2 2040422b call mouse_sensor_wr_seq 
-00d3 2020408e branch mouse_dpi_config 
+0122 70492705 jam mx8650 ,mem_config_sensor_type 
+0123 58008006 setarg 0x8006 
+0124 20405b0c call twspi_write 
+0125 20407d12 call delay_10ms 
+0126 da604be2 arg mem_sensor_8650_init_new ,regc 
+0127 2040422b call mouse_sensor_wr_seq 
+0128 2020408e branch mouse_dpi_config 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/AutoPair_24G/program/patch.prog	(revision 408)
+++ /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/AutoPair_24G/program/patch.prog	(working copy)
@@ -1,6 +1,7 @@
 
 	bbit1 8,pf_patch_ext
 	beq patch00_0,p_soft_reset
+//	beq patch11_2,p_txon
 	beq patch11_3,p_initialize_radio_cont	
 	beq patch15_6,p_app_init
 	beq patch19_1,p_mouse_setgpio_hibernate
@@ -10,10 +11,123 @@
 
 pf_patch_ext:
 	beq patch3d_2,p_g24_transmit_no_interrupt
+	beq patch3d_5,p_power_ctrl_start
 	branch loop
+p_txon:
+//	call ice_break
+	branch set_tx_power_f5db
+p_power_ctrl_start:
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BLE_ADV
+	rtnbit1 UI_STATE_BT_RECONNECT
+	rtnbit1 UI_STATE_BT_DISCOVERY
+	fetchr rega,2,mem_rssi_signal_buf_ptr
+	call rssi_average
+	storet 1,mem_rssi_avg_received
+	fetch 1,mem_rssi_dis_max_24g
+	bmark1 mark_24g,p_power_ctrl_start_next
+	fetch 1,mem_rssi_dis_max_ble
+p_power_ctrl_start_next:
+	isub temp,null
+	nbranch p_power_ctrl_txpower_incrs_force,positive
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	sub pdata,2,null
+	nbranch p_power_ctrl_txpower_decrs_check,positive
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	beq 0,p_power_ctrl_txpower_incrs
+	rtn
+
+p_power_ctrl_txpower_decrs_check:
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	fetcht 1,mem_power_ctrl_pac_succ_cnt_init
+	isub temp,null
+	nrtn zero
+	jam 0,mem_power_ctrl_pac_succ_cnt
+p_power_ctrl_txpower_decrs:
+	fetcht 1,mem_rssi_avg_received
+	fetch 1,mem_rssi_dis_min_24g
+	bmark1 mark_24g,p_power_ctrl_txpower_decrs_next
+	fetch 1,mem_rssi_dis_min_ble
+p_power_ctrl_txpower_decrs_next:	
+	isub temp,null
+	nrtn positive
+	fetch 1,mem_power_ctrl_level
+	beq 0,p_power_ctrl_decrs_level0
+	increase -1,pdata
+	store 1,mem_power_ctrl_level
+	beq 4,p_power_ctrl_decrs_level4
+	beq 3,p_power_ctrl_decrs_level3
+	beq 2,p_power_ctrl_decrs_level2
+	beq 1,p_power_ctrl_decrs_level1
+p_power_ctrl_decrs_level0: //-5dBm
+	jam TX_POWER_f5DB,mem_tx_power
+	rtn	
+
+
+p_power_ctrl_txpower_incrs_force:
+	jam 0,mem_power_ctrl_pac_succ_cnt
+p_power_ctrl_txpower_incrs:
+	fetch 1,mem_power_ctrl_level
+	beq 4,p_power_ctrl_incrs_level4
+	increase 1,pdata
+	store 1,mem_power_ctrl_level
+	beq 1,p_power_ctrl_incrs_level1
+	beq 2,p_power_ctrl_incrs_level2
+	beq 3,p_power_ctrl_incrs_level3
+	beq 4,p_power_ctrl_incrs_level4
+p_power_ctrl_incrs_level5:
+	jam TX_POWER_10DB,mem_tx_power
+	rtn		
+p_power_ctrl_decrs_level4:
+p_power_ctrl_incrs_level4:	//+7dBm
+	jam TX_POWER_7DB,mem_tx_power
+	rtn		
+p_power_ctrl_decrs_level2:	
+p_power_ctrl_incrs_level2:	//+6dBm
+	jam TX_POWER_3DB,mem_tx_power
+	rtn
+p_power_ctrl_decrs_level3:	
+p_power_ctrl_incrs_level3:	//+5dBm
+	jam TX_POWER_5DB,mem_tx_power
+	rtn	
+p_power_ctrl_decrs_level1:
+p_power_ctrl_incrs_level1:	//0dBm
+	jam TX_POWER_0DB,mem_tx_power
+	rtn
+
+p_power_ctrl_pac_succ_cnt_init:
+	jam 1,mem_power_ctrl_level
+	jam 0,mem_power_ctrl_pac_succ_cnt
+	rtn
+
+p_power_ctrl_pac_succ_incrs:
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	increase 1,pdata
+	store 1,mem_power_ctrl_pac_succ_cnt
+	rtn
+
+p_power_ctrl_pac_succ_decrs:
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	sub pdata,2,null
+	ncall p_power_ctrl_pac_succ_cnt_reinit,positive
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	rtneq 0
+	increase -1,pdata
+	store 1,mem_power_ctrl_pac_succ_cnt
+	rtn
+
+p_power_ctrl_pac_succ_cnt_reinit:
+	jam 3,mem_power_ctrl_pac_succ_cnt
+	rtn
 
+	
 p_app_init:
 p_mouse_init:
+
+	jam 0x40,0x8921
+	jam 0x02,0x8934
+	jam 0x88,0x8938
+	jam 0x12,0x896d
 	call enable_authrom
 	call mouse_setting_config
 	call mouse_init_sunt
@@ -195,6 +309,12 @@
 	branch mouse_default_init_next
 
 p_initialize_radio_cont:
+
+	jam 0x40,0x8921
+	jam 0x02,0x8934
+	jam 0x88,0x8938
+	jam 0x12,0x896d
+
 	jam 0xe6,core_syn_aac_cfg1
 
 	call initialize_syn_afc_cfg1
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/AutoPair_24G/sched/mouse.dat	(revision 408)
+++ /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/AutoPair_24G/sched/mouse.dat	(working copy)
@@ -10,10 +10,10 @@
 mem_mouse_24g_reconn_timeout_init:05 #500ms
 
 mem_mouse_24g_pair_tx_power:94 #-20dBm
-mem_rssi_dis_min_24g_init:85
+mem_rssi_dis_min_24g_init:80
 mem_rssi_dis_max_24g_init:90
 mem_rssi_hex_received_max_value_init:63
-mem_rssi_dis_min_ble_init:75
+mem_rssi_dis_min_ble_init:70
 mem_rssi_dis_max_ble_init:80
 
 
