Index: YCkbTool.bat
===================================================================
--- /YC1026/YC1086_only_BLE_SDK_CUSTOMER/YCkbTool.bat	(revision 110)
+++ /YC1026/YC1086_only_BLE_SDK_CUSTOMER/YCkbTool.bat	(working copy)
@@ -22,7 +22,13 @@
 
 util\hex2mif.exe < output\fw.hex ram > output\fwram.rom
 copy .\patch\kb.dat + .\patch\rf.dat .\patch\sch.rom 
-util\transform_name2addr.exe .\patch\sch.rom .\output\sched.rom .\patch\memmap.format
+
+cd util
+perl DeleteNote.pl ..\patch\sch.rom
+perl transform_name2addr.pl ..\patch\sch.rom ..\output\sched.rom ..\patch\memmap.format
+perl sortsched.pl ..\output\sched.rom ..\output\sched.rom
+cd ..
+
 copy .\patch\ramcode.rom .\output\
 copy .\patch\geneep.exe .\output\
 copy .\output\*.obj .\patch\*.obj
Index: led.c
===================================================================
--- /YC1026/YC1086_only_BLE_SDK_CUSTOMER/led.c	(revision 119)
+++ /YC1026/YC1086_only_BLE_SDK_CUSTOMER/led.c	(working copy)
@@ -50,12 +50,12 @@
 				if(m_caps_num_lock & KB_PC_KEYSEL_NUMLOCK)
 				{
 					g_variable.sys_numlockled_on_timer = KB_NUM_CAPS_LED_ON_TIMER;
-					GPIO_Setout(NUM_LOCK_LED_GPIO, 0);
+					GPIO_Setout(NUM_LOCK_LED_GPIO, LED_ON);
 				}
 				else
 				{
 					GPIO_Setout(NUM_LOCK_LED_GPIO, LED_OFF);
-					g_variable.sys_numlockled_on_timer = LED_ON;
+					g_variable.sys_numlockled_on_timer = 0;
 				}
 				*/
 				
Index: output/FW
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: output/FW.COD
===================================================================
--- /YC1026/YC1086_only_BLE_SDK_CUSTOMER/output/FW.COD	(revision 119)
+++ /YC1026/YC1086_only_BLE_SDK_CUSTOMER/output/FW.COD	(working copy)
@@ -1,4 +1,4 @@
-LX51 LINKER/LOCATER V4.41                                                               06/12/2020  14:16:51  PAGE 1
+LX51 LINKER/LOCATER V4.41                                                               06/12/2020  16:53:08  PAGE 1
 
 
 
@@ -2351,12 +2351,12 @@
    50: 				if(m_caps_num_lock & KB_PC_KEYSEL_NUMLOCK)
    51: 				{
    52: 					g_variable.sys_numlockled_on_timer = KB_NUM_CAPS_LED_ON_TIMER;
-   53: 					GPIO_Setout(NUM_LOCK_LED_GPIO, 0);
+   53: 					GPIO_Setout(NUM_LOCK_LED_GPIO, LED_ON);
    54: 				}
    55: 				else
    56: 				{
    57: 					GPIO_Setout(NUM_LOCK_LED_GPIO, LED_OFF);
-   58: 					g_variable.sys_numlockled_on_timer = LED_ON;
+   58: 					g_variable.sys_numlockled_on_timer = 0;
    59: 				}
    60: 				*/
    61: 				
Index: output/FW.HTM
===================================================================
--- /YC1026/YC1086_only_BLE_SDK_CUSTOMER/output/FW.HTM	(revision 119)
+++ /YC1026/YC1086_only_BLE_SDK_CUSTOMER/output/FW.HTM	(working copy)
@@ -25,7 +25,7 @@
 
 <p class="TinyT">
 Created from: <b>LX51 LINKER/LOCATER V4.41</b><br>
-Creation time: <b>06/12/2020  14:16:52</b><p>
+Creation time: <b>06/12/2020  16:53:08</b><p>
 
 <hr>
 
Index: output/FW.MAP
===================================================================
--- /YC1026/YC1086_only_BLE_SDK_CUSTOMER/output/FW.MAP	(revision 119)
+++ /YC1026/YC1086_only_BLE_SDK_CUSTOMER/output/FW.MAP	(working copy)
@@ -1,4 +1,4 @@
-LX51 LINKER/LOCATER V4.41                                                               06/12/2020  14:16:51  PAGE 1
+LX51 LINKER/LOCATER V4.41                                                               06/12/2020  16:53:08  PAGE 1
 
 
 LX51 LINKER/LOCATER V4.41, INVOKED BY:
Index: output/FW.SBR
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: output/eeprom.dat
===================================================================
--- /YC1026/YC1086_only_BLE_SDK_CUSTOMER/output/eeprom.dat	(revision 119)
+++ /YC1026/YC1086_only_BLE_SDK_CUSTOMER/output/eeprom.dat	(working copy)
@@ -13306,6 +13306,36 @@
 1b
 aa
 55
+01
+00
+16
+00
+27
+aa
+55
+09
+00
+a2
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+aa
+55
+02
+00
+dc
+07
+00
+00
+aa
+55
 40
 00
 00
@@ -13376,82 +13406,153 @@
 00
 aa
 55
-01
+02
 00
 31
 41
 01
+43
 aa
 55
-02
+0e
 00
-13
-42
+38
+41
+ff
+ff
+8f
+f8
+83
+9d
+59
+82
+36
+08
+c2
+08
+66
+22
+aa
+55
+1b
+00
+4a
+41
 40
+25
+00
+12
+00
+00
+02
+12
+00
+00
+02
+00
+00
+20
+00
+00
+20
+20
+00
+02
+24
+80
 03
+00
+06
+70
+4f
 aa
 55
-01
+05
 00
-f7
+6e
 41
-0a
+80
+00
+00
+00
+01
 aa
 55
-02
+03
 00
 f5
 41
 10
 00
+0a
 aa
 55
-01
+0b
 00
-33
-41
+13
+42
+40
+03
 00
+8f
+10
+ce
+00
+0a
+0b
+ef
+0f
 aa
 55
-02
+05
 00
-b1
-4c
+80
+42
+0e
 00
+01
 00
+01
 aa
 55
-03
-00
-4a
-41
-40
-25
+02
 00
+9b
+42
+30
+3f
 aa
 55
-06
+01
 00
-40
-41
-36
-08
-c2
-08
-66
-22
+aa
+42
+20
 aa
 55
-0f
+1c
 00
+d9
+43
+1f
 02
-47
-0e
+01
+05
+03
+19
+c1
+03
+03
+03
+12
+18
+0f
+09
 42
 54
-33
+34
 2e
-30
+32
 20
 4b
 65
@@ -13463,219 +13564,136 @@
 64
 aa
 55
-03
+11
 00
-80
+f9
+43
+1f
+0f
+09
 42
-0e
-00
-01
+54
+34
+2e
+32
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
 aa
 55
-01
+0f
 00
-84
+19
+44
+0e
 42
-01
-aa
-55
-01
-00
-47
-47
-0a
+54
+34
+2e
+32
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
 aa
 55
 01
 00
-dc
-47
-00
+c2
+44
+14
 aa
 55
 01
 00
-f6
-47
+dd
+44
 01
 aa
 55
 01
 00
-72
-41
-01
+e4
+44
+07
 aa
 55
-0e
-00
-5b
-47
 06
-03
-11
-00
 00
-01
-02
-10
-24
+f9
+44
 11
-00
-12
-01
-00
+46
+34
+54
+77
+dd
 aa
 55
+dd
 01
-00
-71
-47
-00
-aa
-55
-76
-02
-11
-48
 04
-00
-11
-01
-00
-10
-02
-11
-24
-00
-01
-00
-00
-36
+45
 01
-b6
-09
-00
 00
-0a
 00
+28
+02
 01
+18
+02
 00
-00
-09
-00
+03
+28
 01
-35
+20
 03
-19
-11
-24
-09
 00
-04
-35
-0d
-35
-06
-19
+05
+2a
 01
 00
-09
-00
-11
-35
-03
-19
-00
-11
-09
+04
 00
-05
-35
-03
-19
-10
 02
-09
-00
-06
-35
-09
-09
-65
-6e
-09
+29
+02
 00
-6a
-09
-01
 00
-09
+05
 00
-09
-35
-08
-35
-06
-19
-11
-24
-09
-01
 00
-09
+28
+02
 00
-0d
-35
-0f
-35
-0d
-35
+18
 06
-19
-01
-00
-09
 00
-13
-35
 03
-19
-00
-11
-09
+28
 01
+02
+07
 00
-25
-3d
-42
-72
-6f
-61
-64
-63
-6f
-6d
-20
+00
+2a
+0e
 42
-6c
-75
-65
-74
-6f
-6f
-74
-68
-20
-57
-69
-72
-65
-6c
-65
-73
-73
-20
+54
+34
+2e
+32
 20
 4b
 65
@@ -13685,107 +13703,210 @@
 61
 72
 64
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-20
-09
-01
-01
-25
 08
-4b
-65
-79
-62
-6f
-61
-72
-64
-09
+00
+03
+28
 01
 02
-25
-10
-42
-72
-6f
-61
-64
-63
-6f
-6d
-20
-43
-6f
-72
-70
-2e
-20
-20
 09
-02
 00
-09
 01
-00
-09
+2a
 02
+c1
+03
+0a
+00
+03
+28
 01
-09
-01
-11
-09
-02
 02
+0b
+00
+04
+2a
 08
-40
-09
+06
+00
+06
+00
+64
+00
+2c
+01
+0c
+00
+00
+28
 02
+0a
+18
+0d
+00
 03
-08
-21
-09
-02
-04
 28
 01
-09
 02
-05
-28
-01
-09
+0e
+00
+50
+2a
+07
+02
+e8
+04
+21
+70
+01
+00
+0f
+00
+00
+28
 02
+12
+18
+10
+00
+03
+28
+01
 06
-35
-a5
-35
-a3
+11
+00
+4e
+2a
+01
+01
+12
+00
+03
+28
+01
+12
+13
+00
+4d
+2a
+08
+00
+00
+00
+00
+00
+00
+00
+00
+14
+00
+02
+29
+02
+00
+00
+15
+00
+08
+29
+02
+01
+01
+16
+00
+03
+28
+01
+12
+17
+00
+4d
+2a
+02
+00
+00
+18
+00
+02
+29
+02
+00
+00
+19
+00
+08
+29
+02
+02
+01
+1a
+00
+03
+28
+01
+12
+1b
+00
+4d
+2a
+05
+00
+00
+00
+00
+00
+1c
+00
+02
+29
+02
+00
+00
+1d
+00
+08
+29
+02
+03
+01
+1e
+00
+03
+28
+01
+0e
+1f
+00
+4d
+2a
+02
+00
+00
+20
+00
+02
+29
+02
+00
+00
+21
+00
 08
+29
+02
+01
+02
 22
-25
-9f
+00
+03
+28
+01
+0a
+23
+00
+4b
+2a
+a0
 05
 01
 09
@@ -13840,8 +13961,9 @@
 08
 15
 00
-25
+26
 ff
+00
 05
 07
 19
@@ -13945,83 +14067,171 @@
 06
 c0
 c0
-09
+24
+00
+03
+28
+01
 02
-07
-35
-08
-35
-06
-09
+25
+00
+4a
+2a
 04
-09
-09
+11
 01
 00
-09
-02
-0b
-09
 01
+26
 00
-09
-02
-0c
-09
-0c
-80
-09
-02
-0d
+03
 28
+01
+04
+27
 00
-09
-02
-0e
-28
+4c
+2a
 01
-09
+00
+28
+00
+00
+28
 02
 0f
-09
-03
 18
-09
-02
-10
-09
-00
+29
 00
 03
-10
-02
-12
-00
-00
+28
 01
+12
+2a
 00
+19
+2a
 01
+64
+2b
 00
-01
-36
+02
+29
+02
 00
-a1
-09
 00
 00
-0a
 00
+aa
+55
 01
 00
-01
-09
+f9
+46
+50
+aa
+55
+0f
 00
-01
-35
-03
-19
-12
+02
+47
+0e
+42
+54
+33
+2e
+30
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+01
+00
+47
+47
+0a
+aa
+55
+10
+00
+59
+47
+11
+48
+06
+03
+11
+00
+00
+01
+02
+10
+24
+11
+00
+12
+01
+00
+aa
+55
+02
+00
+f6
+47
+01
+ff
+aa
+55
+01
+00
+fd
+47
+ff
+aa
+55
+8a
+02
+11
+48
+04
+00
+11
+01
+00
+10
+02
+11
+24
+00
+01
+00
+00
+36
+01
+b6
+09
+00
+00
+0a
+00
+01
 00
+00
+09
+00
+01
+35
+03
+19
+11
+24
 09
 00
 04
@@ -14034,12 +14244,20 @@
 00
 09
 00
-01
+11
 35
 03
 19
 00
-01
+11
+09
+00
+05
+35
+03
+19
+10
+02
 09
 00
 06
@@ -14062,16 +14280,36 @@
 35
 06
 19
-12
+11
+24
+09
+01
 00
 09
+00
+0d
+35
+0f
+35
+0d
+35
+06
+19
 01
 00
 09
+00
+13
+35
+03
+19
+00
+11
+09
 01
 00
 25
-2f
+3d
 42
 72
 6f
@@ -14100,6 +14338,7 @@
 73
 73
 20
+20
 4b
 65
 79
@@ -14109,16 +14348,29 @@
 72
 64
 20
-50
-6e
-50
 20
-53
-65
-72
-76
-65
-72
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
+20
 09
 01
 01
@@ -14133,402 +14385,69 @@
 72
 64
 09
-02
-00
-09
-01
-03
-09
-02
-01
-09
-04
-e8
-09
-02
-02
-09
-70
-21
-09
-02
-03
-09
-00
-01
-09
-02
-04
-28
-01
-09
-02
-05
-09
-00
-02
-00
-aa
-55
-02
-00
-59
-47
-11
-48
-aa
-55
-01
-00
-32
-41
-43
-aa
-55
-01
-00
-fb
-41
-00
-aa
-55
-08
-00
-38
-41
-ff
-ff
-8f
-f8
-83
-9d
-59
-82
-aa
-55
-01
-00
-dc
-07
-00
-aa
-55
-01
-00
-a2
-00
-00
-aa
-55
-01
-00
-dd
-07
-00
-aa
-55
-01
-00
-16
-00
-27
-aa
-55
-01
-00
-fd
-47
-ff
-aa
-55
-01
-00
-f7
-47
-ff
-aa
-55
-01
-00
-6e
-41
-80
-aa
-55
-02
-00
-a2
-4b
-02
-01
-aa
-55
-dd
-01
-04
-45
-01
-00
-00
-28
-02
-01
-18
-02
-00
-03
-28
-01
-20
-03
-00
-05
-2a
-01
-00
-04
-00
-02
-29
-02
-00
-00
-05
-00
-00
-28
-02
-00
-18
-06
-00
-03
-28
 01
 02
-07
-00
-00
-2a
-0e
+25
+10
 42
-54
-34
-2e
-32
-20
-4b
-65
-79
-62
-6f
-61
 72
-64
-08
-00
-03
-28
-01
-02
-09
-00
-01
-2a
-02
-c1
-03
-0a
-00
-03
-28
-01
-02
-0b
-00
-04
-2a
-08
-06
-00
-06
-00
-64
-00
-2c
-01
-0c
-00
-00
-28
-02
-0a
-18
-0d
-00
-03
-28
-01
-02
-0e
-00
-50
-2a
-07
-02
-e8
-04
-21
-70
-01
-00
-0f
-00
-00
-28
-02
-12
-18
-10
-00
-03
-28
-01
-06
-11
-00
-4e
-2a
-01
-01
-12
-00
-03
-28
-01
-12
-13
-00
-4d
-2a
-08
-00
-00
-00
-00
-00
-00
-00
-00
-14
-00
-02
-29
-02
-00
-00
-15
-00
-08
-29
-02
-01
-01
-16
-00
-03
-28
-01
-12
-17
-00
-4d
-2a
-02
-00
-00
-18
-00
-02
-29
-02
-00
-00
-19
-00
-08
-29
-02
-02
-01
-1a
-00
-03
-28
-01
-12
-1b
-00
-4d
-2a
-05
-00
-00
-00
-00
-00
-1c
-00
-02
-29
+6f
+61
+64
+63
+6f
+6d
+20
+43
+6f
+72
+70
+2e
+20
+20
+09
 02
 00
+09
+01
 00
-1d
-00
-08
-29
+09
 02
-03
 01
-1e
-00
-03
-28
+09
 01
-0e
-1f
-00
-4d
-2a
+11
+09
 02
-00
-00
-20
-00
 02
-29
+08
+40
+09
 02
-00
-00
-21
-00
+03
 08
-29
+21
+09
 02
+04
+28
 01
+09
 02
-22
-00
-03
+05
 28
 01
-0a
-23
-00
-4b
-2a
-a0
+09
+02
+06
+35
+a5
+35
+a3
+08
+22
+25
+9f
 05
 01
 09
@@ -14583,9 +14502,8 @@
 08
 15
 00
-26
+25
 ff
-00
 05
 07
 19
@@ -14689,202 +14607,160 @@
 06
 c0
 c0
-24
-00
-03
-28
-01
+09
 02
-25
-00
-4a
-2a
+07
+35
+08
+35
+06
+09
 04
-11
-01
-00
-01
-26
-00
-03
-28
+09
+09
 01
-04
-27
 00
-4c
-2a
+09
+02
+0b
+09
 01
 00
+09
+02
+0c
+09
+0c
+80
+09
+02
+0d
 28
 00
-00
-28
+09
 02
-0f
-18
-29
-00
-03
+0e
 28
 01
-12
-2a
-00
-19
-2a
-01
-64
-2b
-00
+09
 02
-29
+0f
+09
+03
+18
+09
 02
+10
+09
 00
 00
+03
+10
+02
+12
 00
 00
-aa
-55
-01
-00
-6a
-4c
-17
-aa
-55
 01
 00
-f9
-46
-50
-aa
-55
 01
 00
-c2
-44
-14
-aa
-55
-06
-00
-f9
-44
-11
-46
-34
-54
-77
-dd
-aa
-55
 01
+36
 00
-7e
-4c
-00
-aa
-55
-06
-00
-b8
-4c
-13
+a1
+09
 00
-17
 00
-1b
+0a
 00
-aa
-55
 01
 00
-60
-4c
-50
-aa
-55
-10
-00
-6c
-4c
-0c
-00
-05
+01
+09
 00
+01
+35
+03
+19
 12
-b4
-08
-00
-10
-00
-10
 00
+09
 00
-00
-2c
-01
-aa
-55
-0f
-00
+04
+35
+0d
+35
+06
 19
-44
-0e
-42
-54
-34
-2e
-32
-20
-4b
-65
-79
-62
-6f
-61
-72
-64
-aa
-55
 01
 00
-e4
-44
-07
-aa
-55
+09
+00
 01
+35
+03
+19
 00
-dd
-44
 01
-aa
-55
-1c
+09
 00
-d9
-43
-1f
-02
+06
+35
+09
+09
+65
+6e
+09
+00
+6a
+09
 01
-05
-03
+00
+09
+00
+09
+35
+08
+35
+06
 19
-c1
-03
-03
-03
 12
-18
-0f
+00
+09
+01
+00
 09
+01
+00
+25
+2f
 42
-54
-34
-2e
-32
+72
+6f
+61
+64
+63
+6f
+6d
+20
+42
+6c
+75
+65
+74
+6f
+6f
+74
+68
+20
+57
+69
+72
+65
+6c
+65
+73
+73
 20
 4b
 65
@@ -14894,21 +14770,22 @@
 61
 72
 64
-aa
-55
-11
-00
-f9
-43
-1f
-0f
-09
-42
-54
-34
-2e
-32
 20
+50
+6e
+50
+20
+53
+65
+72
+76
+65
+72
+09
+01
+01
+25
+08
 4b
 65
 79
@@ -14917,141 +14794,140 @@
 61
 72
 64
-aa
-55
+09
+02
+00
+09
+01
+03
+09
+02
+01
+09
 04
+e8
+09
+02
+02
+09
+70
+21
+09
+02
+03
+09
 00
-4c
-4d
-20
-20
-06
-12
-aa
-55
+01
+09
+02
 04
+28
+01
+09
+02
+05
+09
 00
-91
+02
+00
+55
+d0
+56
+c0
+57
 4c
-9f
-3e
-cd
-4d
-aa
+58
+6c
+59
+50
 55
-01
-00
-8f
+d0
+56
+c0
+57
 4c
-01
+58
+6c
+59
+50
 aa
 55
-08
-00
-16
-42
-8f
-10
-ce
+02
 00
-0a
-0b
-ef
-0f
+a2
+4b
+02
+01
 aa
 55
 01
 00
-f8
-41
-00
+60
+4c
+50
 aa
 55
-08
-00
-a3
-00
-00
-00
-00
-00
-00
+12
 00
+6a
+4c
+17
 00
+0c
 00
-aa
-55
-02
+05
 00
-5d
-41
-02
-24
-aa
-55
+12
+b4
 08
 00
-4d
-41
-12
+10
 00
+10
 00
-02
-12
 00
 00
-02
+2c
+01
 aa
 55
-02
-00
-5b
-41
-20
+0b
 00
-aa
-55
-04
+8f
+4c
+01
 00
-57
-41
-20
+9f
+3e
+cd
+4d
 00
 00
-20
-aa
-55
-04
 00
-5f
-41
-80
-03
 00
-06
+13
 aa
 55
-02
+06
 00
-98
+b8
 4c
-00
 13
-aa
-55
-02
 00
-9b
-42
-30
-3f
+17
+00
+1b
+00
 aa
 55
-01
+04
 00
-aa
-42
+4c
+4d
 20
+20
+06
+12
 aa
 55
 7f
@@ -15185,54 +15061,8 @@
 6b
 30
 ff
-aa
-55
-02
-00
-63
-41
-70
-4f
-aa
-55
-00
-00
-ee
-46
-aa
-55
-0a
-00
-91
-4a
-55
-d0
-56
-c0
-57
-4c
-58
-6c
-59
-50
-aa
-55
-0a
-00
-87
-4a
-55
-d0
-56
-c0
-57
-4c
-58
-6c
-59
-50
-e2
-59
+fd
+53
 ff
 ff
 ff
@@ -16380,5 +16210,175 @@
 ff
 ff
 ff
-34
-2f
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+8d
+24
Index: output/sched.rom
===================================================================
--- /YC1026/YC1086_only_BLE_SDK_CUSTOMER/output/sched.rom	(revision 119)
+++ /YC1026/YC1086_only_BLE_SDK_CUSTOMER/output/sched.rom	(working copy)
@@ -1,385 +1,207 @@
+0016:27
+
+00a2:00
+00a3:00 00 00 00 00 00 00 00
+07dc:00
+07dd:00
 4000:
-2d   #mem_patch00
-00   #mem_patch01
-00   #mem_patch02
-00   #mem_patch03
-00   #mem_patch04
-00   #mem_patch05
-00   #mem_patch06
-00   #mem_patch07
-00   #mem_patch08
-00   #mem_patch09
-00   #mem_patch0A
-00   #mem_patch0B
-00   #mem_patch0C
-00   #mem_patch0D
-00   #mem_patch0E
-00   #mem_patch0F
-00   #mem_patch10
-00   #mem_patch11
-35   #mem_patch12
-00   #mem_patch13
-00   #mem_patch14
-00   #mem_patch15
-4f   #mem_patch16
-02   #mem_patch17
-00   #mem_patch18
-00   #mem_patch19
-00   #mem_patch1A
-00   #mem_patch1B
-00   #mem_patch1C
-00   #mem_patch1D
-00   #mem_patch1E
-00   #mem_patch1F
-00   #mem_patch20
-00   #mem_patch21
-00   #mem_patch22
-00   #mem_patch23
-00   #mem_patch24
-00   #mem_patch25
-04   #mem_patch26
-c8   #mem_patch27
-00   #mem_patch28
-5c   #mem_patch29
-40   #mem_patch2A
-00   #mem_patch2B
-38   #mem_patch2C
-c8   #mem_patch2D
-00   #mem_patch2E
-00   #mem_patch2F
-80   #mem_patch30
-a0   #mem_patch31
-00   #mem_patch32
-00   #mem_patch33
-00   #mem_patch34
-00   #mem_patch35
-00   #mem_patch36
-00   #mem_patch37
-00   #mem_patch38
-a0   #mem_patch39
-01   #mem_patch3A
-00   #mem_patch3B
-00   #mem_patch3C
-00   #mem_patch3D
-00   #mem_patch3E
-00   #mem_patch3F
+2d   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+35   
+00   
+00   
+00   
+4f   
+02   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+04   
+c8   
+00   
+5c   
+40   
+00   
+38   
+c8   
+00   
+00   
+80   
+a0   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+a0   
+01   
+00   
+00   
+00   
+00   
+00   
 
 4131:01
-4213:40
-4214:03
-41f7:0a
-41f5:10 00
-4133:00
-4cb1:00 00
-
-414a: 40 25 00
-
-4140:36 08 c2 08 66 22    
-4702:
-'BT3.0 Keyboard
-4280:0e 00
-4282:01
-4284:01
-4747:0a
-47dc:00
-47f6:01
-
-4172:01
-
-475b:
-06
-03#Type: Complete list of 16-bit UUIDs
-1100 0001 0210 2411  0012  0100
-
-4771:00
-
-#keyboard uuid
-4811:
-#uuids
-04 0011 0100 1002 1124
-
-#handle
-00010000
-
-#total length
-3601b6
-
-#attribute start, first 4 digit is attribute ID
-090000 0a 00010000
-090001 3503 191124
-090004 350d 3506 190100 090011 3503 190011
-090005 3503 191002
-090006 3509 09656e 09006a 090100
-090009 3508 3506 191124 090100
-09000d 350f 350d 3506 190100 090013 3503 190011
-
-#Service Name
-#090100 2517
-#'Apple Wireless Keyboard
-#41 70 70 6c 65 20 57 69 72 65 6c 65 73 73 20 4b 65 79 62 6f 61 72 64
-#Service Name
-090100 253d
-#'Broadcom Bluetooth Wireless  Keyboard                        
-4272 6f61 6463 6f6d 2042 6c75 6574 6f6f 7468 2057 6972 656c 6573 7320 204b 6579 626f 6172 6420 
-2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 20
-
-#Service Description
-090101 2508
-#'Keyboard
-4b6579626f617264
-
-#Provider Name
-#090102 250a
-#'Apple Inc.
-#41 70 70 6c 65 20 49 6e 63 2e
-#Provider Name
-090102 2510
-#'Broadcom Corp.  
-4272 6f61 6463 6f6d 2043 6f72 702e 2020
-
-090200 090100
-090201 090111
-090202 0840
-090203 0821
-090204 2801
-090205 2801
-090206 35a5 35a3 0822 259f
-
-# hid descriptor
-0501 # Usage Page(Generic Desktop)
-0906 # Usage(Keyboard)
-a101 # Collection(Application)
-8501 # Report ID(1)
-7501 # Report Size(1)
-9508 # Report Count(8)
-0507 # Usage Page(Keyboard/Keypad)
-19e0 # Usage Minimum(224)
-29e7 # Usage Maximum(231)
-1500 # Logical Minimum(0)
-2501 # Logical Maximum(1)
-8102 # Input(Data Variable Absolute) ; Modifier byte
-9501 # Report Count(1)
-7508 # Report Size(8)
-8103 # Input(Constant Variable Absolute) ; 
-9505 # Report Count(5)
-7501 # Report Size(1)
-0508 # Usage Page(LEDs)
-1901 # Usage Minimum(1)
-2905 # Usage Maximum(5)
-9102 # Output(Data Variable Absolute) ; LED report
-9501 # Report Count(1)
-7503 # Report Size(3)
-9103 # Output(Constant Variable Absolute) ; 
-9506 # Report Count(6)
-7508 # Report Size(8)
-1500 # Logical Minimum(0)
-25ff # Logical Maximum(255)
-0507 # Usage Page(Keyboard/Keypad)
-1900 # Usage Minimum(0)
-29ff # Usage Maximum(255)
-8100 # Input(Data Array) ; Key arrarys 6 bytes
-c0 # End Collection
-
-05 0c  		
-09 01  		
-a1 01	
-85 02			
-19 00  		
-2a ff 03 
-15 00 
-26 ff 03		
-95 01  		
-75 10  			
-81 00  		
-c0
-
-#29
-#05 01
-#09 80
-#A1 01
-#85 03
-#15 00
-#25 01
-#75 01
-#95 03
-#19 81
-#29 83
-#81 02
-#95 01
-#75 05
-#81 03
-#C0
-
-#69
-05 01 # Usage Page(Generic Desktop)
-09 02 # Usage(Mouse)
-a1 01 # Collection(Application)
-85 03 # Report ID(3)
-09 01 # Usage(Pointer)
-a1 00 # Collection(Physical)
-05 09 # Usage Page(Buttons)
-19 01 # Usage Minimum(1)
-29 08 # Usage Maximum(8)
-15 00 # Logical Minimum(0)
-25 01 # Logical Maximum(1)
-75 01 # Report Size(1)
-95 08 # Report Count(8)
-81 02 # Input(Data Variable Absolute)
-05 01 # Usage Page(Generic Desktop)
-09 30 # Usage(X)
-09 31 # Usage(Y)
-16 01 80  #Logical Minimum (-32767)
-26 FF 7F #Logical Maximum (32767) 
-75 10 # Report Size(16)
-95 02 # Report Count(2)
-81 06 # Input(Data Variable Relative)
-09 38 # Usage(Wheel)
-15 81 # Logical Minimum(-127)
-25 7f # Logical Maximum(127)
-75 08 # Report Size(8)
-95 01 # Report Count(1)
-81 06 # Input(Data Variable Relative)
+43
+4138:
+ff
+ff
+8f
+f8	
+83	
+9d
+59
+82
 
-05 0c  #USAGE_PAGE(Consumer Devices)
-0a 38 02
-95 01   #REPORT_COUNT (1)	
-81 06  #INPUT (Data,Var,Rel)
 
-c0 # End Collection
-c0 # End Collection
+36 08 c2 08 66 22    
+414a: 40 25 00
 
-090207 3508 3506 090409 090100
-09020b 090100
-09020c 090c80
-09020d 2800
-09020e 2801
-09020f 090318
-090210 090000
-#attribute end
+12 00
+00 02
+12 00
+00 02
+00 00 
+20 00
+00 20
+20 00
+02
+24
+80 03
+00 06
+70 4f
 
-#uuids for pnpInformation	
-03 1002 1200 0001
+416e:80
 
-#handle
-00010001
 
-#total length 90 bytes
-3600a1
+00 00 00 
+01
 
-#attribute list
-090000 0a00010001
-090001 3503 191200
-090004 350d 3506 190100 090001 3503 190001
-090006 3509 09656e 09006a 090100
-090009 3508 3506 191200 090100
-090100 252f42726f6164636f6d20426c7565746f6f746820576972656c657373204b6579626f61726420506e5020536572766572
-090101 25084b6579626f617264
-090200 090103
-090201# VendorID
-0904e8
-090202#ProductID
-097021
-090203 090001
-090204 2801
-090205 090002
+41f5:10 00
+0a
+4213:40
+03
+00 
+8f 10 ce
+00 0a 0b ef 0f
+4280:0e 00
+01
+00 
+01
+429b:30 3f
+42aa:20
 
-#attribute end
-00
+43d9:1f
 
-#Auto reconnection after power on
 
-4759:11 48
-#Auto reconnection after power on
-4132:43
-41fb:0
-4138:
-ff
-ff
-8f
-f8	#fe--EDR  F8--BR
-83	#AFHclose 83
-9d
-59
-82
+02 01 05 03 19 c1 03 03 03 12 18
+'\09BT4.2 Keyboard
 
-#bluetootch param init
-07dc:00
-00a2:00
-07dd:00
-0016:27
+43f9:1f
 
-47fd:ff
-47f7:ff
+'\09BT4.2 Keyboard
 
-416e:80
+4419:
+'BT4.2 Keyboard
 
+44c2:14
+44dd:01
 
-4ba2:02 01
+44e4:07 
+44f9:11 46 34 54 77 dd
 
 
-#attribute list: handle 2bytes, uuid 2bytes, length 1bytes, attribute Nbytes
 4504:
 
-#Primary service: GATT
+
 01 00 00 28 02 01 18
-#Characteristic: Service changed
+
 02 00 03 28 01 20
 03 00 05 2a 01 00
-#Client Characteristic Configuration
+
 04 00 02 29 02 00 00
 
-#Primary Service: GAP
+
 05 00 00 28 02 00 18 
-#Characteristic: Device Name
+
 06 00 03 28 01 02 
 07 00 00 2a 
 'BT4.2 Keyboard
 
-#Characteristic: Appearance
+
 08 00 03 28 01 02 
 09 00 01 2a 02 c1 03 
-#Characteristic: Peripheral Preferred Connection Parameters
+
 0a 00 03 28 01 02
-0b 00 04 2a 08 06 00 06 00 64 00 2c 01 # interval 6ms, latency 100, timeout 300
+0b 00 04 2a 08 06 00 06 00 64 00 2c 01 
+
 
-#Primary Service: Device Information
 0c 00 00 28 02 0a 18 
-#Characteristic: pnp id
+
 0d 00 03 28 01 02
-0e 00 50 2a 07 02 e8 04 21 70 01 00		# SAMSUNG soft keyboard,setup shortcuts
+0e 00 50 2a 07 02 e8 04 21 70 01 00		
+
 
-#Primary service: HID
 0f 00 00 28 02 12 18
-#Characteristic:Protocol mode
+
 10 00 03 28 01 06
 11 00 4e 2a 01 01
-#Characteristic: hid report
+
 12 00 03 28 01 12   
-13 00 4d 2a 08 00 00 00 00 00 00 00 00	#hid report	led handle write
+13 00 4d 2a 08 00 00 00 00 00 00 00 00	
 14 00 02 29 02 00 00	
-15 00 08 29 02 01 01	#Report ID: 1	Report Type: Input
-#Characteristic:hid report
+15 00 08 29 02 01 01	
+
 16 00 03 28 01 12   
-17 00 4d 2a 02 00 00 	#hid report	led handle write
+17 00 4d 2a 02 00 00 	
 18 00 02 29 02 00 00	
-19 00 08 29 02 02 01	#Report ID: 2	Report Type: Input
+19 00 08 29 02 02 01	
+
 
-#Characteristic:hid report
 1a 00 03 28 01 12  
 1b 00 4d 2a 05 00 00 00 00 00
 1c 00 02 29 02 00 00
-1d 00 08 29 02 03 01	#Report ID: 3	Report Type: Input
+1d 00 08 29 02 03 01	
+
 
-#Characteristic:hid report
 1e 00 03 28 01 0e   
-1f 00 4d 2a 02 00	00	#hid report	led handle write
+1f 00 4d 2a 02 00	00	
 20 00 02 29 02 00 00	
-21 00 08 29 02 01 02	#Report ID: 1	Report Type: Output
+21 00 08 29 02 01 02	
+
 
-#Characteristic:Report map
 22 00 03 28 01 0a
 23 00 4b 2a a0
-#66
+
 05 01
 09 06
 a1 01
@@ -414,7 +236,7 @@
 81 00
 c0 
 
-#25
+
 05 0c  		
 09 01  		
 a1 01	
@@ -428,149 +250,340 @@
 81 00  		
 c0
 
-#29
-#05 01
-#09 80
-#A1 01
-#85 03
-#15 00
-#25 01
-#75 01
-#95 03
-#19 81
-#29 83
-#81 02
-#95 01
-#75 05
-#81 03
-#C0
-
-#60
-05 01 # Usage Page(Generic Desktop)
-09 02 # Usage(Mouse)
-a1 01 # Collection(Application)
-85 03 # Report ID(3)
-09 01 # Usage(Pointer)
-a1 00 # Collection(Physical)
-05 09 # Usage Page(Buttons)
-19 01 # Usage Minimum(1)
-29 08 # Usage Maximum(8)
-15 00 # Logical Minimum(0)
-25 01 # Logical Maximum(1)
-75 01 # Report Size(1)
-95 08 # Report Count(8)
-81 02 # Input(Data Variable Absolute)
-05 01 # Usage Page(Generic Desktop)
-09 30 # Usage(X)
-09 31 # Usage(Y)
-16 01 80  #Logical Minimum (-32767)
-26 FF 7F #Logical Maximum (32767) 
-75 10 # Report Size(16)
-95 02 # Report Count(2)
-81 06 # Input(Data Variable Relative)
-09 38 # Usage(Wheel)
-15 81 # Logical Minimum(-127)
-25 7f # Logical Maximum(127)
-75 08 # Report Size(8)
-95 01 # Report Count(1)
-81 06 # Input(Data Variable Relative)
 
-05 0c  #USAGE_PAGE(Consumer Devices)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+05 01 
+09 02 
+a1 01 
+85 03 
+09 01 
+a1 00 
+05 09 
+19 01 
+29 08 
+15 00 
+25 01 
+75 01 
+95 08 
+81 02 
+05 01 
+09 30 
+09 31 
+16 01 80  
+26 FF 7F 
+75 10 
+95 02 
+81 06 
+09 38 
+15 81 
+25 7f 
+75 08 
+95 01 
+81 06 
+
+05 0c  
 0a 38 02
-95 01   #REPORT_COUNT (1)	
-81 06  #INPUT (Data,Var,Rel)
+95 01   
+81 06  
+
+c0 
+c0 
 
-c0 # End Collection
-c0 # End Collection
 
-#Characteristic:Hid information
 24 00 03 28 01 02
 25 00 4a 2a 04 11 01 00 01        
-#Characteristic
+
 26 00 03 28 01 04
 27 00 4c 2a 01 00
 
-#Primary Service: BAS
+
 28 00 00 28 02 0f 18 
-#Characteristic: Battery Level
+
 29 00 03 28 01 12 
 2a 00 19 2a 01 64 
-#Client Characteristic Configuration
+
 2b 00 02 29 02 00 00 
-#End of Attribute list
+
 00 00
 
 
-4c6a:17
 46f9:50
-44c2:14
-44f9:11 46 34 54 77 dd
+4702:
+'BT3.0 Keyboard
+4747:0a
+4759:11 48
 
 
-4c7e:00
-4cb8:13 00
-4cba:17 00
-4cbc:1b 00
-4c60:50
+06
+03
+1100 0001 0210 2411  0012  0100
 
-4c6c:
-0c 00 #Length
-05 00 #CID
-12 b4 
-08 00 
-10 00 #min interval
-10 00 #max interval
-00 00 #latency
-2c 01 #timeout
+47f6:01
 
-4419:
-'BT4.2 Keyboard
+ff
 
-44e4:07 
-44dd:01
-#mem_le_adv_interval_max:00 01
-43d9:1f
-43da:
-#02 01 05 05 02 12 18 0f 18 03 19 c1 03
-02 01 05 03 19 c1 03 03 03 12 18
-'\09BT4.2 Keyboard
+47fd:ff
+4811:
 
-43f9:1f
-43fa:
-'\09BT4.2 Keyboard
+04 0011 0100 1002 1124
 
-4d4c:20 20 06 12		#version data 20200612
 
-4c91:9f 3e
-4c93:cd 4d
-4c8f:01    #01 VINLPM      #02 HVIN      #04 GPIO
-
-4216:8f 10 ce
-4219:00 0a 0b ef 0f
-41f8:00
-00a3:00 00 00 00 00 00 00 00
-415d:02
-415e:24
-414d:12 00
-414f:00 02
-4151:12 00
-4153:00 02
-415b:20 00
-4157:20 00
-4159:00 20
-415f:80 03
-4161:00 06
-4c98:00 13
+00010000
+
+
+3601b6
+
+
+090000 0a 00010000
+090001 3503 191124
+090004 350d 3506 190100 090011 3503 190011
+090005 3503 191002
+090006 3509 09656e 09006a 090100
+090009 3508 3506 191124 090100
+09000d 350f 350d 3506 190100 090013 3503 190011
+
+
+
+
+
+
+090100 253d
+
+4272 6f61 6463 6f6d 2042 6c75 6574 6f6f 7468 2057 6972 656c 6573 7320 204b 6579 626f 6172 6420 
+2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 20
+
+
+090101 2508
+
+4b6579626f617264
+
+
+
+
+
+
+090102 2510
+
+4272 6f61 6463 6f6d 2043 6f72 702e 2020
+
+090200 090100
+090201 090111
+090202 0840
+090203 0821
+090204 2801
+090205 2801
+090206 35a5 35a3 0822 259f
+
+
+0501 
+0906 
+a101 
+8501 
+7501 
+9508 
+0507 
+19e0 
+29e7 
+1500 
+2501 
+8102 
+9501 
+7508 
+8103 
+9505 
+7501 
+0508 
+1901 
+2905 
+9102 
+9501 
+7503 
+9103 
+9506 
+7508 
+1500 
+25ff 
+0507 
+1900 
+29ff 
+8100 
+c0 
+
+05 0c  		
+09 01  		
+a1 01	
+85 02			
+19 00  		
+2a ff 03 
+15 00 
+26 ff 03		
+95 01  		
+75 10  			
+81 00  		
+c0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+05 01 
+09 02 
+a1 01 
+85 03 
+09 01 
+a1 00 
+05 09 
+19 01 
+29 08 
+15 00 
+25 01 
+75 01 
+95 08 
+81 02 
+05 01 
+09 30 
+09 31 
+16 01 80  
+26 FF 7F 
+75 10 
+95 02 
+81 06 
+09 38 
+15 81 
+25 7f 
+75 08 
+95 01 
+81 06 
+
+05 0c  
+0a 38 02
+95 01   
+81 06  
+
+c0 
+c0 
+
+090207 3508 3506 090409 090100
+09020b 090100
+09020c 090c80
+09020d 2800
+09020e 2801
+09020f 090318
+090210 090000
+
+
+
+03 1002 1200 0001
+
+
+00010001
+
+
+3600a1
+
+
+090000 0a00010001
+090001 3503 191200
+090004 350d 3506 190100 090001 3503 190001
+090006 3509 09656e 09006a 090100
+090009 3508 3506 191200 090100
+090100 252f42726f6164636f6d20426c7565746f6f746820576972656c657373204b6579626f61726420506e5020536572766572
+090101 25084b6579626f617264
+090200 090103
+090201
+0904e8
+090202
+097021
+090203 090001
+090204 2801
+090205 090002
+
+
+00
+
+
+
+
+55 d0
+56 c0
+57 4c
+58 6c
+59 50
+
+
+55 d0
+56 c0
+57 4c
+58 6c
+59 50
+
+4ba2:02 01
+
+
+
+4c60:50
+
+4c6a:17
+00 
+
+0c 00 
+05 00 
+12 b4 
+08 00 
+10 00 
+10 00 
+00 00 
+2c 01 
+
+4c8f:01    
+
+00 
+9f 3e
+cd 4d
+00 00 00 
+00 13
+
+4cb8:13 00
+17 00
+1b 00
+4d4c:20 20 06 12		
 
-429b:30 3f
-42aa:20
-#pointers to tail space of mem_le_att_list
 4f70:
-07 ff #2M_IF
+07 ff 
 0a fb
 0b ff 
 
-#agc table
+
 1a fb
 1b fb
 1c fb
@@ -623,33 +636,16 @@
 4e ec
 4f 5e
 
-# tx power
+
 55 d0
 56 c0
 57 4c
 58 6c
 59 50
 
-#dpll
+
 68 e4
 69 00
 6a 00
 6b 30
 ff
-4163:70 4f
-
-46ee:
-4a91:
-55 d0
-56 c0
-57 4c
-58 6c
-59 50
-
-4a87:
-55 d0
-56 c0
-57 4c
-58 6c
-59 50
-
Index: patch/adc.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: patch/bluetooth.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: patch/global_variable.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: patch/kb_process.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: patch/keyscan.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: patch/led.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: patch/ram.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: patch/sch.rom
===================================================================
--- /YC1026/YC1086_only_BLE_SDK_CUSTOMER/patch/sch.rom	(revision 119)
+++ /YC1026/YC1086_only_BLE_SDK_CUSTOMER/patch/sch.rom	(working copy)
@@ -1,68 +1,68 @@
 mem_patch00:
-2d   #mem_patch00
-00   #mem_patch01
-00   #mem_patch02
-00   #mem_patch03
-00   #mem_patch04
-00   #mem_patch05
-00   #mem_patch06
-00   #mem_patch07
-00   #mem_patch08
-00   #mem_patch09
-00   #mem_patch0A
-00   #mem_patch0B
-00   #mem_patch0C
-00   #mem_patch0D
-00   #mem_patch0E
-00   #mem_patch0F
-00   #mem_patch10
-00   #mem_patch11
-35   #mem_patch12
-00   #mem_patch13
-00   #mem_patch14
-00   #mem_patch15
-4f   #mem_patch16
-02   #mem_patch17
-00   #mem_patch18
-00   #mem_patch19
-00   #mem_patch1A
-00   #mem_patch1B
-00   #mem_patch1C
-00   #mem_patch1D
-00   #mem_patch1E
-00   #mem_patch1F
-00   #mem_patch20
-00   #mem_patch21
-00   #mem_patch22
-00   #mem_patch23
-00   #mem_patch24
-00   #mem_patch25
-04   #mem_patch26
-c8   #mem_patch27
-00   #mem_patch28
-5c   #mem_patch29
-40   #mem_patch2A
-00   #mem_patch2B
-38   #mem_patch2C
-c8   #mem_patch2D
-00   #mem_patch2E
-00   #mem_patch2F
-80   #mem_patch30
-a0   #mem_patch31
-00   #mem_patch32
-00   #mem_patch33
-00   #mem_patch34
-00   #mem_patch35
-00   #mem_patch36
-00   #mem_patch37
-00   #mem_patch38
-a0   #mem_patch39
-01   #mem_patch3A
-00   #mem_patch3B
-00   #mem_patch3C
-00   #mem_patch3D
-00   #mem_patch3E
-00   #mem_patch3F
+2d   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+35   
+00   
+00   
+00   
+4f   
+02   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+04   
+c8   
+00   
+5c   
+40   
+00   
+38   
+c8   
+00   
+00   
+80   
+a0   
+00   
+00   
+00   
+00   
+00   
+00   
+00   
+a0   
+01   
+00   
+00   
+00   
+00   
+00   
 
 mem_lpm_mode:01
 mem_lpm_mult:40
@@ -88,23 +88,23 @@
 
 mem_all_uuid_16bits:
 06
-03#Type: Complete list of 16-bit UUIDs
+03
 1100 0001 0210 2411  0012  0100
 
 mem_all_uuid_128bits:00
 
-#keyboard uuid
+
 mem_kb_uuid_list:
-#uuids
+
 04 0011 0100 1002 1124
 
-#handle
+
 00010000
 
-#total length
+
 3601b6
 
-#attribute start, first 4 digit is attribute ID
+
 090000 0a 00010000
 090001 3503 191124
 090004 350d 3506 190100 090011 3503 190011
@@ -113,28 +113,28 @@
 090009 3508 3506 191124 090100
 09000d 350f 350d 3506 190100 090013 3503 190011
 
-#Service Name
-#090100 2517
-#'Apple Wireless Keyboard
-#41 70 70 6c 65 20 57 69 72 65 6c 65 73 73 20 4b 65 79 62 6f 61 72 64
-#Service Name
+
+
+
+
+
 090100 253d
-#'Broadcom Bluetooth Wireless  Keyboard                        
+
 4272 6f61 6463 6f6d 2042 6c75 6574 6f6f 7468 2057 6972 656c 6573 7320 204b 6579 626f 6172 6420 
 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 20
 
-#Service Description
+
 090101 2508
-#'Keyboard
+
 4b6579626f617264
 
-#Provider Name
-#090102 250a
-#'Apple Inc.
-#41 70 70 6c 65 20 49 6e 63 2e
-#Provider Name
+
+
+
+
+
 090102 2510
-#'Broadcom Corp.  
+
 4272 6f61 6463 6f6d 2043 6f72 702e 2020
 
 090200 090100
@@ -145,40 +145,40 @@
 090205 2801
 090206 35a5 35a3 0822 259f
 
-# hid descriptor
-0501 # Usage Page(Generic Desktop)
-0906 # Usage(Keyboard)
-a101 # Collection(Application)
-8501 # Report ID(1)
-7501 # Report Size(1)
-9508 # Report Count(8)
-0507 # Usage Page(Keyboard/Keypad)
-19e0 # Usage Minimum(224)
-29e7 # Usage Maximum(231)
-1500 # Logical Minimum(0)
-2501 # Logical Maximum(1)
-8102 # Input(Data Variable Absolute) ; Modifier byte
-9501 # Report Count(1)
-7508 # Report Size(8)
-8103 # Input(Constant Variable Absolute) ; 
-9505 # Report Count(5)
-7501 # Report Size(1)
-0508 # Usage Page(LEDs)
-1901 # Usage Minimum(1)
-2905 # Usage Maximum(5)
-9102 # Output(Data Variable Absolute) ; LED report
-9501 # Report Count(1)
-7503 # Report Size(3)
-9103 # Output(Constant Variable Absolute) ; 
-9506 # Report Count(6)
-7508 # Report Size(8)
-1500 # Logical Minimum(0)
-25ff # Logical Maximum(255)
-0507 # Usage Page(Keyboard/Keypad)
-1900 # Usage Minimum(0)
-29ff # Usage Maximum(255)
-8100 # Input(Data Array) ; Key arrarys 6 bytes
-c0 # End Collection
+
+0501 
+0906 
+a101 
+8501 
+7501 
+9508 
+0507 
+19e0 
+29e7 
+1500 
+2501 
+8102 
+9501 
+7508 
+8103 
+9505 
+7501 
+0508 
+1901 
+2905 
+9102 
+9501 
+7503 
+9103 
+9506 
+7508 
+1500 
+25ff 
+0507 
+1900 
+29ff 
+8100 
+c0 
 
 05 0c  		
 09 01  		
@@ -193,60 +193,60 @@
 81 00  		
 c0
 
-#29
-#05 01
-#09 80
-#A1 01
-#85 03
-#15 00
-#25 01
-#75 01
-#95 03
-#19 81
-#29 83
-#81 02
-#95 01
-#75 05
-#81 03
-#C0
-
-#69
-05 01 # Usage Page(Generic Desktop)
-09 02 # Usage(Mouse)
-a1 01 # Collection(Application)
-85 03 # Report ID(3)
-09 01 # Usage(Pointer)
-a1 00 # Collection(Physical)
-05 09 # Usage Page(Buttons)
-19 01 # Usage Minimum(1)
-29 08 # Usage Maximum(8)
-15 00 # Logical Minimum(0)
-25 01 # Logical Maximum(1)
-75 01 # Report Size(1)
-95 08 # Report Count(8)
-81 02 # Input(Data Variable Absolute)
-05 01 # Usage Page(Generic Desktop)
-09 30 # Usage(X)
-09 31 # Usage(Y)
-16 01 80  #Logical Minimum (-32767)
-26 FF 7F #Logical Maximum (32767) 
-75 10 # Report Size(16)
-95 02 # Report Count(2)
-81 06 # Input(Data Variable Relative)
-09 38 # Usage(Wheel)
-15 81 # Logical Minimum(-127)
-25 7f # Logical Maximum(127)
-75 08 # Report Size(8)
-95 01 # Report Count(1)
-81 06 # Input(Data Variable Relative)
 
-05 0c  #USAGE_PAGE(Consumer Devices)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+05 01 
+09 02 
+a1 01 
+85 03 
+09 01 
+a1 00 
+05 09 
+19 01 
+29 08 
+15 00 
+25 01 
+75 01 
+95 08 
+81 02 
+05 01 
+09 30 
+09 31 
+16 01 80  
+26 FF 7F 
+75 10 
+95 02 
+81 06 
+09 38 
+15 81 
+25 7f 
+75 08 
+95 01 
+81 06 
+
+05 0c  
 0a 38 02
-95 01   #REPORT_COUNT (1)	
-81 06  #INPUT (Data,Var,Rel)
+95 01   
+81 06  
 
-c0 # End Collection
-c0 # End Collection
+c0 
+c0 
 
 090207 3508 3506 090409 090100
 09020b 090100
@@ -255,18 +255,18 @@
 09020e 2801
 09020f 090318
 090210 090000
-#attribute end
 
-#uuids for pnpInformation	
+
+
 03 1002 1200 0001
 
-#handle
+
 00010001
 
-#total length 90 bytes
+
 3600a1
 
-#attribute list
+
 090000 0a00010001
 090001 3503 191200
 090004 350d 3506 190100 090001 3503 190001
@@ -275,34 +275,34 @@
 090100 252f42726f6164636f6d20426c7565746f6f746820576972656c657373204b6579626f61726420506e5020536572766572
 090101 25084b6579626f617264
 090200 090103
-090201# VendorID
+090201
 0904e8
-090202#ProductID
+090202
 097021
 090203 090001
 090204 2801
 090205 090002
 
-#attribute end
+
 00
 
-#Auto reconnection after power on
+
 
 memui_uuid_table:mem_kb_uuid_list
-#Auto reconnection after power on
+
 mem_device_option:43
 mem_ptt:0
 mem_features:
 ff
 ff
 8f
-f8	#fe--EDR  F8--BR
-83	#AFHclose 83
+f8	
+83	
 9d
 59
 82
 
-#bluetootch param init
+
 mem_sp_flag:00
 mem_lpm_current_mult:00
 mem_master_sp_flag:00
@@ -317,69 +317,69 @@
 mem_ipc_tx_evt_buff:02 01
 
 
-#attribute list: handle 2bytes, uuid 2bytes, length 1bytes, attribute Nbytes
+
 mem_le_att_list:
 
-#Primary service: GATT
+
 01 00 00 28 02 01 18
-#Characteristic: Service changed
+
 02 00 03 28 01 20
 03 00 05 2a 01 00
-#Client Characteristic Configuration
+
 04 00 02 29 02 00 00
 
-#Primary Service: GAP
+
 05 00 00 28 02 00 18 
-#Characteristic: Device Name
+
 06 00 03 28 01 02 
 07 00 00 2a 
 'BT4.2 Keyboard
 
-#Characteristic: Appearance
+
 08 00 03 28 01 02 
 09 00 01 2a 02 c1 03 
-#Characteristic: Peripheral Preferred Connection Parameters
+
 0a 00 03 28 01 02
-0b 00 04 2a 08 06 00 06 00 64 00 2c 01 # interval 6ms, latency 100, timeout 300
+0b 00 04 2a 08 06 00 06 00 64 00 2c 01 
+
 
-#Primary Service: Device Information
 0c 00 00 28 02 0a 18 
-#Characteristic: pnp id
+
 0d 00 03 28 01 02
-0e 00 50 2a 07 02 e8 04 21 70 01 00		# SAMSUNG soft keyboard,setup shortcuts
+0e 00 50 2a 07 02 e8 04 21 70 01 00		
+
 
-#Primary service: HID
 0f 00 00 28 02 12 18
-#Characteristic:Protocol mode
+
 10 00 03 28 01 06
 11 00 4e 2a 01 01
-#Characteristic: hid report
+
 12 00 03 28 01 12   
-13 00 4d 2a 08 00 00 00 00 00 00 00 00	#hid report	led handle write
+13 00 4d 2a 08 00 00 00 00 00 00 00 00	
 14 00 02 29 02 00 00	
-15 00 08 29 02 01 01	#Report ID: 1	Report Type: Input
-#Characteristic:hid report
+15 00 08 29 02 01 01	
+
 16 00 03 28 01 12   
-17 00 4d 2a 02 00 00 	#hid report	led handle write
+17 00 4d 2a 02 00 00 	
 18 00 02 29 02 00 00	
-19 00 08 29 02 02 01	#Report ID: 2	Report Type: Input
+19 00 08 29 02 02 01	
+
 
-#Characteristic:hid report
 1a 00 03 28 01 12  
 1b 00 4d 2a 05 00 00 00 00 00
 1c 00 02 29 02 00 00
-1d 00 08 29 02 03 01	#Report ID: 3	Report Type: Input
+1d 00 08 29 02 03 01	
+
 
-#Characteristic:hid report
 1e 00 03 28 01 0e   
-1f 00 4d 2a 02 00	00	#hid report	led handle write
+1f 00 4d 2a 02 00	00	
 20 00 02 29 02 00 00	
-21 00 08 29 02 01 02	#Report ID: 1	Report Type: Output
+21 00 08 29 02 01 02	
+
 
-#Characteristic:Report map
 22 00 03 28 01 0a
 23 00 4b 2a a0
-#66
+
 05 01
 09 06
 a1 01
@@ -414,7 +414,7 @@
 81 00
 c0 
 
-#25
+
 05 0c  		
 09 01  		
 a1 01	
@@ -428,76 +428,76 @@
 81 00  		
 c0
 
-#29
-#05 01
-#09 80
-#A1 01
-#85 03
-#15 00
-#25 01
-#75 01
-#95 03
-#19 81
-#29 83
-#81 02
-#95 01
-#75 05
-#81 03
-#C0
-
-#60
-05 01 # Usage Page(Generic Desktop)
-09 02 # Usage(Mouse)
-a1 01 # Collection(Application)
-85 03 # Report ID(3)
-09 01 # Usage(Pointer)
-a1 00 # Collection(Physical)
-05 09 # Usage Page(Buttons)
-19 01 # Usage Minimum(1)
-29 08 # Usage Maximum(8)
-15 00 # Logical Minimum(0)
-25 01 # Logical Maximum(1)
-75 01 # Report Size(1)
-95 08 # Report Count(8)
-81 02 # Input(Data Variable Absolute)
-05 01 # Usage Page(Generic Desktop)
-09 30 # Usage(X)
-09 31 # Usage(Y)
-16 01 80  #Logical Minimum (-32767)
-26 FF 7F #Logical Maximum (32767) 
-75 10 # Report Size(16)
-95 02 # Report Count(2)
-81 06 # Input(Data Variable Relative)
-09 38 # Usage(Wheel)
-15 81 # Logical Minimum(-127)
-25 7f # Logical Maximum(127)
-75 08 # Report Size(8)
-95 01 # Report Count(1)
-81 06 # Input(Data Variable Relative)
 
-05 0c  #USAGE_PAGE(Consumer Devices)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+05 01 
+09 02 
+a1 01 
+85 03 
+09 01 
+a1 00 
+05 09 
+19 01 
+29 08 
+15 00 
+25 01 
+75 01 
+95 08 
+81 02 
+05 01 
+09 30 
+09 31 
+16 01 80  
+26 FF 7F 
+75 10 
+95 02 
+81 06 
+09 38 
+15 81 
+25 7f 
+75 08 
+95 01 
+81 06 
+
+05 0c  
 0a 38 02
-95 01   #REPORT_COUNT (1)	
-81 06  #INPUT (Data,Var,Rel)
+95 01   
+81 06  
+
+c0 
+c0 
 
-c0 # End Collection
-c0 # End Collection
 
-#Characteristic:Hid information
 24 00 03 28 01 02
 25 00 4a 2a 04 11 01 00 01        
-#Characteristic
+
 26 00 03 28 01 04
 27 00 4c 2a 01 00
 
-#Primary Service: BAS
+
 28 00 00 28 02 0f 18 
-#Characteristic: Battery Level
+
 29 00 03 28 01 12 
 2a 00 19 2a 01 64 
-#Client Characteristic Configuration
+
 2b 00 02 29 02 00 00 
-#End of Attribute list
+
 00 00
 
 
@@ -514,24 +514,24 @@
 mem_le_rx_window:50
 
 mem_le_connection_updata_param:
-0c 00 #Length
-05 00 #CID
+0c 00 
+05 00 
 12 b4 
 08 00 
-10 00 #min interval
-10 00 #max interval
-00 00 #latency
-2c 01 #timeout
+10 00 
+10 00 
+00 00 
+2c 01 
 
 mem_le_name_len:
 'BT4.2 Keyboard
 
 mem_le_adv_channel_map:07 
 mem_le_adv_direct_addr_type:01
-#mem_le_adv_interval_max:00 01
+
 mem_le_adv_data_len:1f
 mem_le_adv_data:
-#02 01 05 05 02 12 18 0f 18 03 19 c1 03
+
 02 01 05 03 19 c1 03 03 03 12 18
 '\09BT4.2 Keyboard
 
@@ -539,11 +539,11 @@
 mem_le_scan_data:
 '\09BT4.2 Keyboard
 
-mem_version_yy_mm_dd:20 20 06 12		#version data 20200612
+mem_version_yy_mm_dd:20 20 06 12		
 
 mem_adc_0v:9f 3e
 mem_adc_3v:cd 4d
-mem_adc_config_flag:01    #01 VINLPM      #02 HVIN      #04 GPIO
+mem_adc_config_flag:01    
 
 mem_lpm_config:8f 10 ce
 mem_lpm_xtalcnt:00 0a 0b ef 0f
@@ -564,13 +564,13 @@
 
 mem_eeprom_base:30 3f
 mem_eeprom_block_size:20
-#pointers to tail space of mem_le_att_list
+
 4f70:
-07 ff #2M_IF
+07 ff 
 0a fb
 0b ff 
 
-#agc table
+
 1a fb
 1b fb
 1c fb
@@ -623,14 +623,14 @@
 4e ec
 4f 5e
 
-# tx power
+
 55 d0
 56 c0
 57 4c
 58 6c
 59 50
 
-#dpll
+
 68 e4
 69 00
 6a 00
Index: patch/sys.obj
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: util/DeleteNote.pl
===================================================================
--- /YC1026/YC1086_only_BLE_SDK_CUSTOMER/util/DeleteNote.pl	(nonexistent)
+++ /YC1026/YC1086_only_BLE_SDK_CUSTOMER/util/DeleteNote.pl	(working copy)
@@ -0,0 +1,27 @@
+
+#print "输入注释的标志:";
+
+#chomp ($text = <STDIN>);
+
+#print $text;
+
+###########################
+#该脚本的功能为删除，#为注释的注释代码。
+
+$Sched_path=$ARGV[0];
+
+open(Sched,$Sched_path)||die("Cannot open files\n");
+@sched=<Sched>;
+close(Sched);
+
+foreach $sched(@sched)
+{
+	$sched_begin = $sched;
+	@Sched = split(/[#]+/, $sched);
+	chomp @Sched[0];
+	$sched = @Sched[0]."\n";
+}
+
+open(Sched,">$Sched_path")||die("Cannot open files\n");
+print Sched @sched;
+close(Sched);
Index: util/memalloc.pl
===================================================================
--- /YC1026/YC1086_only_BLE_SDK_CUSTOMER/util/memalloc.pl	(nonexistent)
+++ /YC1026/YC1086_only_BLE_SDK_CUSTOMER/util/memalloc.pl	(working copy)
@@ -0,0 +1,74 @@
+#!/usr/bin/perl
+$path="output/bt_format.meta";
+open file, $path;
+@f = <file>;
+close file;
+open file, ">$path";
+$path =~ s/\/.*//;
+open file1, ">output/memmap.format";
+$xaddr = 0x4000;
+$addr = 0;
+if($#ARGV == 1) {
+	$addr = hex($ARGV[0]);
+	$xaddr = hex($ARGV[1]);
+}
+for($i = 0;$i < @f;$i++) { $cmalloc[$i] = (); }
+for($i = 0;$i < @f;$i++) { 
+	$_ = $f[$i];
+	$start = 1 if(/^\s*memalloc\s*\(\s*$/);
+	$start = 2 if(/^\s*xmemalloc\s*\(\s*$/);
+	$start = 3 if(/^\s*omemalloc\s*\(\s*$/);
+	$start = 10 + $1 if(/^\s*cmemalloc\s+([0-9])\s*\(\s*$/);
+	if($start) {
+		if(/^\s*([0-9]+)\s+([a-zA-Z0-9_]+)\s*(.*)$/) {
+			if($start == 1) {
+				$str = sprintf "0x%04x %s%s\n", $addr, $2, $3;
+				$addr += $1;
+				$bstr .= $str;
+				$sstr .= $str;
+			} elsif($start == 2) {
+				$str = sprintf "0x%04x %s%s\n", $xaddr, $2, $3;
+				$xaddr += $1;
+				$xstr .= $str;
+			} else {
+				push @ostr, $_;
+			}
+		}
+		if(/^\s*\)\s*$/) {
+			if(@ostr > 0) {
+				if($start == 3) {
+					push @omalloc,[@ostr];
+				} elsif($start > 9) {
+					$j = $start - 10;
+					push @{$cmalloc[$j]},@ostr;
+				} 
+			}
+			$start = 0;
+			@ostr = ();
+		}
+	} else {
+		$sstr .= $_;
+	}
+}
+for($i = 0;$i <= $#cmalloc;$i++) {
+	push @omalloc,$cmalloc[$i];
+#	for($j = 0;$j <= $#{$cmalloc[$i]};$j++) {		print $cmalloc[$i][$j];	}
+}
+
+$xend = $xaddr;
+for($i = 0;$i <= $#omalloc;$i++) {
+	for($j = 0, $oaddr = $xaddr;$j <= $#{$omalloc[$i]};$j++) {
+		if($omalloc[$i][$j] =~ /^\s*([0-9]+)\s+([a-zA-Z0-9_]+)\s*(.*)$/) {
+			$str = sprintf "0x%04x %s%s\n", $oaddr, $2, $3;
+			$oaddr += $1;
+			$xstr .= $str;
+		}
+	}
+}
+$xend = $oaddr if($oaddr > $xend);
+print file $xstr, $sstr;
+print file1 $bstr, $xstr;
+close file;
+close file1;
+printf "\nLast allocated address is %04x\n", $addr;
+printf "\nLast allocated xmem address is %04x\n", $xend;
\ No newline at end of file
Index: util/mergepatch.pl
===================================================================
--- /YC1026/YC1086_only_BLE_SDK_CUSTOMER/util/mergepatch.pl	(nonexistent)
+++ /YC1026/YC1086_only_BLE_SDK_CUSTOMER/util/mergepatch.pl	(working copy)
@@ -0,0 +1,44 @@
+#!/usr/bin/perl
+$defs = "";
+$fmt = 0;
+
+
+sub parseif {
+	my($fname) = @_;
+	open file, $fname;
+	@f = <file>;
+	close file;
+	open file, ">$fname";
+	@valid = (1);
+	for($i = 0;$i < @f;$i++) { 
+		$_ = $f[$i];
+		$defs .= $1 . " " if(/^define\s+(\w+)\s*/);
+		if(/^ifdef\s+(\w+)\s*/) {
+			push @valid, ($defs =~ /(^|\s)$1(\s|$)/ ? 1 : 0) & $valid[$#valid];
+		} elsif(/^ifndef\s+(\w+)\s*/) {
+			push @valid, ($defs =~ /(^|\s)$1(\s|$)/ ? 0 : 1) & $valid[$#valid];
+		} elsif(/^else/) {
+			printf "%s\nelse without if at line %d\n", $f[$i - 3], $i if($#valid == 0);
+			$valid[$#valid] = (1 - $valid[$#valid]) & $valid[$#valid - 1];
+		} elsif(/^endif/) {
+			printf "%s\nendif without if at line %d\n", $_, $i if($#valid == 0);
+			pop @valid;
+		} elsif($valid[$#valid]) {
+			if(/^include\s+(.+)\s*/) {
+				open file2, "program/$1";
+				@f2 = <file2>;
+				close file2;
+				splice(@f, $i + 1, 0, @f2);
+			} else {
+				print file $_;
+			}
+		}
+	}
+	close file;
+}
+
+parseif("output/bt_program23.meta");
+$fmt = 1;
+parseif("output/bt_format.meta");
+
+
Index: util/sortsched.pl
===================================================================
--- /YC1026/YC1086_only_BLE_SDK_CUSTOMER/util/sortsched.pl	(nonexistent)
+++ /YC1026/YC1086_only_BLE_SDK_CUSTOMER/util/sortsched.pl	(working copy)
@@ -0,0 +1,163 @@
+
+
+$Sched_path=$ARGV[0];
+$Sched_test_path=$ARGV[1];
+
+open(Sched,"$Sched_path")||die("Cannot open files1\n");
+@sched=<Sched>;
+@sched[-1] = "";
+close(Sched);
+#open(Sched_test,">ResultsFile.rom")||die("Cannot open files2\n");
+#print Sched_test ("");
+#close (Sched_test);
+#open(Sched_test,">ResultsFile.rom")||die("Cannot open file3s\n");
+open(Sched_test1,">$Sched_test_path")||die("Cannot open files4\n");
+#@Sched_test=<Sched_test>;
+@Data[0]="";
+$Data_num=0;
+@Address_num;
+@OriginalRecord;
+foreach $sched (@sched)
+{
+	if($sched=~/[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]:/)
+	{
+		#$lap_flag = 0;
+		#$le_lap_flag = 0;
+		#if($sched=~/40a0:/)
+		#{
+		#	$lap_data = $sched;
+		#	$lap_flag = 1;
+		#}
+		#elsif($sched =~ /44a0:/)
+		#{
+		#	$le_lap_data = $sched;
+		#	$le_lap_flag = 1;
+		#}
+		#else
+		#{
+			$Data_num++;
+			@OriginalRecord[$Data_num]=$sched;
+			@snap_variable=split(/[#\n]/,$sched);
+			@Data[$Data_num]=@snap_variable[0]."\n";
+		#}
+	}
+	else
+	{
+		#if($lap_flag == 1)
+		#{
+		#	$lap_data .= $sched;
+		#}
+		#elsif($le_lap_flag == 1)
+		#{
+		#	$le_lap_data .= $sched;
+		#}
+		#else
+		#{
+			@OriginalRecord[$Data_num].=$sched;
+			@snap_variable=split(/[#\n]/,$sched);
+			@Data[$Data_num].=@snap_variable[0]."\n";
+		#}
+	}
+}
+@sort_Data = sort(@Data);
+@OriginalRecord=sort(@OriginalRecord);
+$PreviousADDR=0;
+$CurrentADDR=0;
+$PreviousData="";
+$CurrentData="";
+$I=0;
+$len_sort_Data=@sort_Data;
+$NextADDR="";
+for($i=0;$i<$len_sort_Data;$i++)
+{
+	$sort_Data=@sort_Data[$i];
+	@snap_variable=split(/:/,$sort_Data);
+	$WData=@snap_variable[1];
+	
+	if($WData =~ /[1-9a-fA-F]/ && hex(@snap_variable[0]) >= 16384){
+	$WADDR=@snap_variable[0];
+	@sort_Data[$i]=@OriginalRecord[$i];
+	@LLL[$i]=0;
+	if($NextADDR eq $WADDR){
+		@snap_variable=split(/[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]:/,@OriginalRecord[$i]);
+		@sort_Data[$i]=@snap_variable[1];
+		@LLL[$i]=1;
+	}
+	if(@LLL[$i]==0 && hex($PreviousADDR)+6>hex($WADDR)){
+		$LEN=hex($WADDR) - hex($NextADDR);
+		#print $LEN;
+		for($j=0;$j<$LEN;$j++)
+		{
+			@sort_Data[$i-1].="00 "
+		}
+		@sort_Data[$i-1].="\n";
+		@snap_variable=split(/[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]:/,@OriginalRecord[$i]);
+		@sort_Data[$i]=@snap_variable[1];
+		@LLL[$i]=1;
+	}
+	if($PreviousADDR eq $WADDR){
+		@sort_Data[$i-1]="";
+		if(@LLL[$i-1]==1){
+			@snap_variable=split(/[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]:/,@OriginalRecord[$i]);
+			@sort_Data[$i]=@snap_variable[1];
+			@LLL[$i]=1;
+		}
+	}
+	else{
+		@DataNum=split(/[0-9a-fA-F][0-9a-fA-F]/,$WData);
+		$DataNum=@DataNum;
+		$PreviousADDR=$WADDR;
+		#@sort_Data[$i].="      ".$DataNum."\n";
+		$NextADDR = &hex_add($WADDR,$DataNum);
+	}
+	}
+	else{
+		if(hex(@snap_variable[0]) >= 16384)
+		{
+			@sort_Data[$i]="";
+		}
+	}
+	#@sort_Data[$i].="      ".$NextADDR."\n";
+	#$sort_Data =~ s/\n//;
+	#$sort_Data.="\n";
+}
+#print Sched_test @OriginalRecord;
+#print Sched_test1 $lap_data;
+#print Sched_test1 $le_lap_data;
+print Sched_test1 @sort_Data;
+#print  $lap_data;
+#print  $le_lap_data;
+#for($i=0;$i<$len_sort_Data;$i++)
+#foreach $sort_Data (@sort_Data)
+#{	
+	#$sort_Data=@sort_Data[$i];
+	#print Sched_test $PreviousData;
+	#@snap_variable=split(/:/,$sort_Data);
+	#$CurrentADDR=@snap_variable[0];
+	#$CurrentData=$sort_Data;
+	#print ($CurrentADDR);
+	#if($CurrentADDR-$PreviousADDR==1)
+	#{
+	#	$CurrentVal=@snap_variable[1];
+	#	@snap_variable=split(/\n/,$PreviousData);
+		
+	#	$PreviousData.=" ".$CurrentVal;
+	#	$CurrentData=$PreviousData;
+	#	@sort_Data[$i]="";
+	#	@sort_Data[$i-1]=$CurrentData;
+		#print ($CurrentData."\n");
+	#}
+	#$PreviousADDR=$CurrentADDR;
+	#$PreviousData=$CurrentData;
+	#print Sched_test $CurrentData;
+#}
+#print Sched_test @sort_Data;
+#close(Sched_test);
+close(Sched_test1);
+
+sub hex_add{
+	my($ADDR,$Len)=@_;
+	$data=hex($ADDR);
+	$data=$data+$Len-1;
+	return(sprintf("%04x",$data));
+}
\ No newline at end of file
Index: util/transform_memmap2btreg.pl
===================================================================
--- /YC1026/YC1086_only_BLE_SDK_CUSTOMER/util/transform_memmap2btreg.pl	(nonexistent)
+++ /YC1026/YC1086_only_BLE_SDK_CUSTOMER/util/transform_memmap2btreg.pl	(working copy)
@@ -0,0 +1,45 @@
+$memmap_path=$ARGV[0];
+$memblocks_path=$ARGV[1];
+$btreg_path=$ARGV[2];
+open(btreg,">$btreg_path");
+print btreg ("");#reset file
+close(btreg);
+open(memmap,$memmap_path);
+open(memblocks,$memblocks_path);
+open(btreg,">>$btreg_path");
+@text = <memmap>;
+print btreg ("#ifndef _BT_REG_H_\n");
+print btreg ("#define _BT_REG_H_\n");
+foreach $text (@text){
+	@word = split (/[\t ]+/,$text);
+	$reg_addr = @word[0];
+	if ($reg_addr =~ /0x[0-9abcdef]*/){#Is 0x0000~0xffff
+		$word1 = @word[1];
+		@reg_name = split(/\/[\/\*]/,$word1);#delete // or /*  */
+		$reg_name = @reg_name[0];
+		$reg_name =~ s/[\r\n]//;#delete Carriage return
+		
+		printf btreg ("#define\t%-40s\t%s\n",$reg_name,$reg_addr);
+		#print btreg ("#define \t $reg_name \t\t\t $reg_addr \n");
+		#print btreg ("@word[1]\n");
+	}
+}
+@text = <memblocks>;
+foreach $text (@text){
+	@word = split (/[\t ]+/,$text);
+	$reg_addr = @word[0];
+	if ($reg_addr =~ /0x[0-9abcdef]*/){
+		$word1 = @word[1];
+		@reg_name = split(/\/[\/\*]/,$word1);
+		$reg_name = @reg_name[0];
+		$reg_name =~ s/[\r\n]//;
+		printf btreg ("#define\t%-40s\t%s\n",$reg_name,$reg_addr);
+		#print btreg ("#define \t $reg_name \t\t\t\t $reg_addr \n");
+		#print btreg ("@word[1]\n");
+	}
+}
+print btreg ("#endif\n");
+close(memblocks);
+close(memmap);
+close(btreg);
+
