Index: format/app_mouse.format
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/format/app_mouse.format	(revision 1026)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/format/app_mouse.format	(working copy)
@@ -351,12 +351,19 @@
 1 mem_le_name_patch_len
 19 mem_le_name_patch
 
+1 mem_fire_key_status
+4 mem_fire_key_delay
+1 mem_fire_key_flag
+1 mem_firebutton_gpio
+1 mem_mouse_firebutton_connect_vin_flag
+
 1 mem_dpi_another_button_gpio
 1 mem_dpi_another_press_status
 1 mem_dpi_another_button_state
 1 mem_dpi_another_button_down_enable
-
 1 mem_mouse_key_temp_patch
+
+
 )
 
 
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/output/eeprom.dat	(revision 1026)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/output/eeprom.dat	(working copy)
@@ -2,8 +2,8 @@
 02
 aa
 55
-4e
-15
+86
+16
 c2
 84
 00
@@ -39,19 +39,19 @@
 c0
 61
 82
-41
+4b
 c0
 63
 81
-55
+5f
 c0
 64
 81
-5b
+65
 c0
 65
 01
-8f
+99
 c0
 66
 00
@@ -59,43 +59,43 @@
 c0
 67
 03
-1f
+29
 c0
 67
-83
-bd
+84
+0b
 c0
 68
 02
-50
+5a
 c0
 68
 83
-4a
+5b
 c0
 6a
 03
-30
+3a
 c0
 6b
 01
-ba
+c4
 c0
 6c
 82
-61
+6b
 c0
 6d
 02
-c4
+ce
 c0
 6f
 03
-80
+ce
 c0
 74
 02
-d1
+db
 20
 20
 13
@@ -111,35 +111,35 @@
 c0
 43
 82
-cd
+d7
 c0
 50
 82
-e5
+ef
 c0
 60
 02
-ef
+f9
 c0
 6e
 82
-30
+3a
 c0
 71
 02
-0b
+15
 c0
 74
 82
-13
+1d
 c0
 75
 01
-1e
+28
 c0
 76
 03
-16
+20
 20
 20
 13
@@ -295,7 +295,7 @@
 20
 40
 04
-2d
+7b
 20
 34
 00
@@ -587,7 +587,7 @@
 24
 55
 80
-9c
+a6
 20
 40
 6d
@@ -595,7 +595,7 @@
 20
 40
 00
-c7
+d1
 20
 40
 41
@@ -606,6 +606,10 @@
 00
 20
 40
+00
+9d
+20
+40
 40
 8e
 20
@@ -619,15 +623,51 @@
 20
 40
 00
-d7
+e1
 20
 40
 03
-42
+4c
 20
 20
 3b
 c9
+20
+20
+00
+9f
+20
+60
+00
+00
+6f
+e0
+cc
+38
+c1
+7f
+80
+00
+c2
+83
+80
+a4
+70
+4c
+39
+00
+20
+60
+00
+00
+70
+4c
+39
+01
+20
+60
+00
+00
 6f
 e4
 4c
@@ -651,7 +691,7 @@
 24
 21
 00
-ae
+b8
 d8
 c0
 4c
@@ -703,7 +743,7 @@
 20
 40
 00
-c4
+ce
 6f
 e0
 cc
@@ -823,7 +863,7 @@
 20
 40
 00
-d1
+db
 6f
 e4
 4b
@@ -835,7 +875,7 @@
 20
 40
 00
-d4
+de
 20
 20
 3b
@@ -867,15 +907,15 @@
 58
 00
 00
-dc
+e6
 67
 e1
 48
 9b
 58
 00
-00
-f8
+01
+02
 67
 e1
 48
@@ -894,8 +934,8 @@
 f6
 24
 3a
-04
-e6
+05
+34
 20
 40
 3f
@@ -911,7 +951,7 @@
 c3
 0a
 80
-e5
+ef
 6f
 e0
 cb
@@ -931,7 +971,7 @@
 c2
 80
 80
-f4
+fe
 68
 48
 c7
@@ -1063,7 +1103,7 @@
 24
 21
 01
-0e
+18
 20
 40
 25
@@ -1075,11 +1115,11 @@
 24
 2c
 01
-14
+1e
 24
 37
 81
-14
+1e
 20
 40
 48
@@ -1103,7 +1143,7 @@
 c0
 08
 01
-16
+20
 20
 60
 00
@@ -1115,7 +1155,7 @@
 20
 20
 01
-04
+0e
 70
 4b
 a3
@@ -1147,7 +1187,7 @@
 20
 20
 03
-42
+4c
 20
 40
 26
@@ -1155,11 +1195,11 @@
 24
 34
 01
-a1
+ab
 20
 40
 01
-2d
+37
 20
 40
 26
@@ -1171,7 +1211,7 @@
 24
 3a
 01
-28
+32
 6f
 e4
 48
@@ -1235,23 +1275,23 @@
 24
 2c
 01
-46
+50
 24
 37
 81
-46
+50
 20
 40
 26
 72
 20
 40
-03
-ee
+04
+3c
 20
 40
 01
-39
+43
 20
 20
 26
@@ -1263,7 +1303,7 @@
 24
 5a
 01
-3d
+47
 70
 4b
 e1
@@ -1343,11 +1383,11 @@
 20
 40
 01
-50
+5a
 20
 20
 01
-2e
+38
 6f
 e0
 c8
@@ -1383,11 +1423,11 @@
 20
 40
 03
-3b
+45
 20
 40
 03
-42
+4c
 20
 20
 3e
@@ -1403,7 +1443,7 @@
 20
 40
 02
-86
+90
 20
 40
 40
@@ -1463,15 +1503,15 @@
 20
 40
 01
-6f
+79
 20
 40
 01
-7c
+86
 20
 20
 01
-83
+8d
 6f
 e1
 cb
@@ -1519,7 +1559,7 @@
 c2
 00
 01
-73
+7d
 20
 60
 00
@@ -1667,11 +1707,11 @@
 20
 40
 03
-42
+4c
 20
 20
 01
-a6
+b0
 6f
 e0
 c8
@@ -1679,7 +1719,7 @@
 20
 5a
 01
-ac
+b6
 6f
 e0
 c8
@@ -1771,7 +1811,7 @@
 20
 20
 01
-20
+2a
 1a
 62
 7e
@@ -1779,31 +1819,31 @@
 c0
 00
 81
-c3
+cd
 c0
 1e
 01
-e5
+ef
 c0
 1c
 81
-e3
+ed
 c0
 1d
 01
-ec
+f6
 c0
 19
 01
-cf
+d9
 c0
 22
 01
-d6
+e0
 c0
 0a
 81
-c5
+cf
 20
 20
 43
@@ -1863,7 +1903,7 @@
 c0
 00
 81
-d3
+dd
 70
 4b
 76
@@ -1979,7 +2019,7 @@
 24
 3a
 01
-98
+a2
 6f
 e0
 c8
@@ -1987,15 +2027,15 @@
 c0
 01
 01
-f3
+fd
 c0
 02
-01
-fe
+02
+08
 c0
 01
 82
-03
+0d
 20
 20
 48
@@ -2030,8 +2070,8 @@
 00
 20
 22
-81
-fc
+82
+06
 20
 20
 48
@@ -2051,7 +2091,7 @@
 c3
 17
 82
-08
+12
 6f
 e0
 cb
@@ -2059,7 +2099,7 @@
 c0
 00
 82
-08
+12
 20
 20
 48
@@ -2071,15 +2111,15 @@
 c3
 17
 82
-08
+12
 c2
 89
 82
-08
+12
 c2
 89
 02
-08
+12
 20
 20
 48
@@ -2095,7 +2135,7 @@
 20
 20
 01
-98
+a2
 70
 48
 8b
@@ -2143,7 +2183,7 @@
 20
 3a
 02
-1b
+25
 6f
 e1
 48
@@ -2171,11 +2211,11 @@
 24
 2c
 02
-21
+2b
 24
 37
 82
-21
+2b
 20
 40
 26
@@ -2231,7 +2271,7 @@
 c0
 02
 02
-2e
+38
 20
 20
 25
@@ -2262,8 +2302,8 @@
 a1
 c2
 81
-83
-f8
+84
+46
 c2
 80
 a3
@@ -2279,7 +2319,7 @@
 c0
 00
 82
-3a
+44
 20
 20
 26
@@ -2291,7 +2331,7 @@
 24
 34
 02
-32
+3c
 20
 40
 26
@@ -2327,7 +2367,7 @@
 c0
 00
 02
-46
+50
 20
 20
 3d
@@ -2379,7 +2419,7 @@
 20
 40
 02
-53
+5d
 20
 20
 40
@@ -2431,7 +2471,7 @@
 20
 3a
 02
-8d
+97
 67
 e0
 cb
@@ -2467,7 +2507,7 @@
 20
 40
 02
-8a
+94
 20
 40
 40
@@ -2479,7 +2519,7 @@
 20
 40
 02
-a2
+ac
 20
 40
 44
@@ -2495,7 +2535,7 @@
 20
 40
 02
-b9
+c3
 20
 40
 45
@@ -2527,15 +2567,15 @@
 20
 40
 02
-7c
+86
 20
 40
 02
-bc
+c6
 20
 20
 02
-79
+83
 da
 60
 4c
@@ -2587,7 +2627,7 @@
 20
 21
 02
-88
+92
 68
 48
 cb
@@ -2611,7 +2651,7 @@
 da
 40
 02
-8d
+97
 20
 20
 31
@@ -2667,11 +2707,11 @@
 20
 41
 02
-9c
+a6
 24
 41
 02
-a0
+aa
 20
 20
 48
@@ -2707,7 +2747,7 @@
 c0
 00
 02
-a8
+b2
 6f
 e4
 4b
@@ -2723,7 +2763,7 @@
 20
 20
 02
-ab
+b5
 6f
 e4
 4b
@@ -2759,7 +2799,7 @@
 20
 22
 82
-b2
+bc
 20
 20
 44
@@ -2767,7 +2807,7 @@
 20
 40
 02
-b7
+c1
 6f
 e0
 cb
@@ -2786,8 +2826,8 @@
 00
 da
 40
-01
-fc
+02
+06
 20
 20
 44
@@ -2819,7 +2859,7 @@
 da
 40
 02
-c1
+cb
 20
 20
 31
@@ -2831,7 +2871,7 @@
 c0
 00
 01
-98
+a2
 20
 20
 43
@@ -2915,7 +2955,7 @@
 c0
 04
 82
-d9
+e3
 20
 20
 4d
@@ -3015,7 +3055,7 @@
 c0
 02
 02
-f2
+fc
 20
 20
 19
@@ -3030,12 +3070,12 @@
 36
 c0
 05
-02
-f7
+03
+01
 c0
 09
 03
-06
+10
 20
 20
 1c
@@ -3063,7 +3103,7 @@
 c2
 81
 83
-01
+0b
 6f
 e1
 44
@@ -3090,12 +3130,12 @@
 00
 24
 22
-82
-fd
+83
+07
 24
 34
-02
-fd
+03
+07
 20
 20
 1e
@@ -3230,8 +3270,8 @@
 83
 20
 40
-40
-dc
+03
+54
 6f
 e0
 c8
@@ -3251,7 +3291,7 @@
 20
 40
 03
-2d
+37
 20
 20
 45
@@ -3279,7 +3319,7 @@
 c0
 05
 83
-37
+41
 20
 40
 42
@@ -3299,7 +3339,7 @@
 20
 40
 03
-3e
+48
 da
 60
 4b
@@ -3319,7 +3359,7 @@
 c0
 05
 83
-3e
+48
 20
 20
 42
@@ -3355,7 +3395,7 @@
 c0
 05
 83
-48
+52
 58
 00
 08
@@ -3372,6 +3412,34 @@
 20
 5b
 0c
+20
+40
+03
+92
+6f
+e0
+cc
+37
+24
+3a
+03
+a9
+6f
+e0
+cc
+32
+24
+3a
+03
+a8
+20
+40
+03
+5b
+20
+20
+40
+dd
 6f
 e0
 cb
@@ -3387,23 +3455,27 @@
 20
 40
 03
-53
+65
 20
 40
 03
-58
+6a
 20
 40
 03
-5d
+6f
 20
 40
 03
-62
+74
 20
 40
 03
-6f
+81
+20
+40
+03
+92
 20
 20
 41
@@ -3415,7 +3487,7 @@
 20
 40
 03
-7c
+8e
 20
 40
 41
@@ -3435,7 +3507,7 @@
 20
 40
 03
-7c
+8e
 20
 40
 41
@@ -3455,7 +3527,7 @@
 20
 40
 03
-7c
+8e
 20
 40
 41
@@ -3499,7 +3571,7 @@
 c0
 7f
 83
-6b
+7d
 20
 20
 41
@@ -3511,7 +3583,7 @@
 20
 40
 03
-7e
+90
 68
 48
 c9
@@ -3551,7 +3623,7 @@
 c0
 7f
 83
-78
+8a
 20
 20
 41
@@ -3563,7 +3635,7 @@
 20
 40
 03
-7e
+90
 68
 48
 c9
@@ -3588,454 +3660,694 @@
 20
 60
 93
-20
-40
-49
-90
-20
-40
-79
-36
-20
-40
-03
-85
-20
-40
-03
-99
-20
-20
-46
-4f
-6f
-e4
-4b
-ab
-c2
-97
+da
 40
-36
+00
+00
 6f
 e0
-c9
-0f
+cc
+38
 c1
 7f
 80
 00
-da
-20
-00
-00
-70
-4b
-96
-05
+6f
+e0
+cc
+39
+24
+3a
+03
+9f
 68
 48
-c9
-0f
+cc
+38
 20
 40
-03
-8e
-20
+3f
+56
+68
+48
+cc
+38
 20
 40
-2f
-6f
-e4
-4b
-ab
-c2
-96
-40
-48
-6f
+60
+59
+79
+20
+a4
+00
+1a
+42
+7e
+00
+67
 e0
-cb
-93
-1f
-e2
-26
+cc
+37
+20
+60
+00
 00
 6f
 e0
-c9
-10
-c0
-7f
-83
-95
-20
-20
-40
+cc
+38
+79
 3f
-6f
+fe
+07
+67
 e0
-c9
-0f
-20
-40
-03
-7e
+cc
+38
 68
 48
-c9
-0f
-20
-20
-41
-95
-6f
-e4
-4b
-ab
-c4
-1e
-80
-00
-6f
-e0
 cc
-32
-20
-40
-03
-7c
+38
 20
 40
-03
-a0
+3f
+54
 68
 48
 cc
-32
+38
 20
+40
+60
+59
+7d
 20
-3f
-56
-70
-4c
-36
+a4
 00
-68
-48
-cc
-32
-6f
-e0
-cc
-33
+20
+20
+03
+9c
+c0
+02
+03
+c3
 20
 40
 03
-af
+c6
+6f
+e2
+4c
+33
+d8
+40
+00
+a0
+98
+40
+84
+00
+1c
+42
+7e
+00
+98
+46
+7c
+00
+24
+61
+00
+00
 67
-e0
-cc
+e2
+4c
 33
 6f
 e0
 cc
-35
-20
-3a
+32
+c0
+00
 03
-ab
-6f
-e0
-cc
-34
-c1
+b7
+c0
+00
+83
+ba
+c0
+01
+03
+bd
+c0
+01
+83
+c0
+20
+60
 00
-80
 00
 70
 4c
-34
+32
+01
+70
+48
+d0
 01
 20
 20
-40
-69
-6f
-e0
-cc
-34
-c1
-00
-00
-00
+7e
+54
 70
 4c
-34
+32
+02
+70
+48
+d0
 00
 20
-60
+20
+7e
+54
+70
+4c
+32
+03
+70
+48
+d0
+01
+20
+20
+7e
+54
+70
+4c
+32
 00
+70
+48
+d0
 00
-1f
-e3
-fe
+20
+20
+7e
+54
+70
+4c
+32
 00
-1f
-e2
-24
+70
+48
+d0
 00
 20
-40
 60
-59
-79
-20
-a4
 00
-1a
-41
-7e
-07
+00
 68
-48
-cc
-36
-18
+4a
+4c
+33
+1c
 42
-0e
+7e
 00
-c0
-03
-83
-b9
-c0
+98
+46
+7c
 00
+24
+41
 03
-bb
+cb
 20
 60
 00
 00
-70
-4c
-35
-01
-20
-60
+58
 00
 00
-70
-4c
-35
 00
+67
+e2
+4c
+33
 20
 60
 00
 00
 20
 40
+49
+90
+20
 40
-72
+79
+36
 20
-74
-00
-00
-6f
-e0
-c9
-92
-1f
-e2
-04
-00
-6f
-e4
-4b
-ab
-c2
-9e
-83
-c9
-18
-42
-7e
-00
-1f
-e0
-fe
-01
-1f
-e1
-7e
+40
 03
-67
-e0
-c9
-92
+d3
 20
 40
-40
-95
+03
+e7
 20
 20
-45
-ee
-6f
-e0
-cc
-35
-24
-3a
-03
-d4
+46
+4f
 6f
 e4
 4b
 ab
 c2
-8e
-03
-d1
-18
-42
-7e
-00
+97
+40
+36
+6f
+e0
+c9
+0f
 c1
-01
+7f
+80
 00
+da
+20
 00
+00
+70
+4b
+96
+05
+68
+48
+c9
+0f
+20
+40
+03
+dc
+20
+20
+40
+2f
+6f
+e4
+4b
+ab
+c2
+96
+40
+48
+6f
+e0
+cb
+93
 1f
+e2
+26
+00
+6f
 e0
-fe
-01
+c9
+10
+c0
+7f
+83
+e3
+20
 20
+40
+3f
+6f
+e0
+c9
+0f
 20
+40
 03
-c6
-18
-42
-7e
-00
-c1
-01
+90
+68
+48
+c9
+0f
+20
+20
+41
+95
+6f
+e4
+4b
+ab
+c4
+1e
 80
 00
+6f
+e0
+cc
+3a
 20
+40
+03
+8e
 20
+40
 03
-cf
-18
-42
-7e
-00
-c1
-00
-00
+ee
+68
+48
+cc
+3a
+20
+20
+3f
+56
+70
+4c
+3e
 00
-1f
+68
+48
+cc
+3a
+6f
 e0
-ff
-ff
-20
+cc
+3b
 20
+40
 03
-c6
+fd
+67
+e0
+cc
+3b
 6f
 e0
-cb
-f6
+cc
+3d
 20
-7a
-00
-00
+3a
+03
+f9
 6f
 e0
-cb
-f7
-c0
-01
-03
-e4
-c0
-02
-83
-e6
-c0
-04
-03
-e8
-c0
-05
-83
-ea
-c0
-07
-03
-ec
-c0
-08
-83
-e2
-20
-60
+cc
+3c
+c1
 00
+80
 00
 70
-4b
-f7
-12
+4c
+3c
+01
 20
-60
+20
+40
+69
+6f
+e0
+cc
+3c
+c1
+00
 00
 00
 70
-4b
-f7
-03
+4c
+3c
+00
 20
 60
 00
 00
-70
-4b
-f7
-06
+1f
+e3
+fe
+00
+1f
+e2
+24
+00
 20
+40
 60
+59
+79
+20
+a4
 00
+1a
+41
+7e
+07
+68
+48
+cc
+3e
+18
+42
+0e
 00
-70
-4b
-f7
+c0
+03
+84
+07
+c0
+00
+04
 09
 20
 60
 00
 00
 70
-4b
-f7
-0c
+4c
+3d
+01
 20
 60
 00
 00
 70
-4b
-f7
-0f
+4c
+3d
+00
 20
 60
 00
 00
+20
+40
+40
+72
+20
+74
+00
+00
 6f
 e0
-c8
-2a
-20
-3a
+c9
+92
+1f
+e2
+04
+00
+6f
+e4
+4b
+ab
+c2
+9e
+84
+17
+18
+42
+7e
+00
+1f
+e0
+fe
+01
+1f
+e1
+7e
 03
-d8
+67
+e0
+c9
+92
+20
+40
+40
+95
+20
+20
+45
+ee
+6f
+e0
+cc
+3d
+24
+3a
+04
+22
+6f
+e4
+4b
+ab
+c2
+8e
+04
+1f
+18
+42
+7e
+00
+c1
+01
+00
+00
+1f
+e0
+fe
+01
+20
+20
+04
+14
+18
+42
+7e
+00
+c1
+01
+80
+00
+20
+20
+04
+1d
+18
+42
+7e
+00
+c1
+00
+00
+00
+1f
+e0
+ff
+ff
+20
+20
+04
+14
+6f
+e0
+cb
+f6
+20
+7a
+00
+00
+6f
+e0
+cb
+f7
+c0
+01
+04
+32
+c0
+02
+84
+34
+c0
+04
+04
+36
+c0
+05
+84
+38
+c0
+07
+04
+3a
+c0
+08
+84
+30
+20
+60
+00
+00
+70
+4b
+f7
+12
+20
+60
+00
+00
+70
+4b
+f7
+03
+20
+60
+00
+00
+70
+4b
+f7
+06
+20
+60
+00
+00
+70
+4b
+f7
+09
+20
+60
+00
+00
+70
+4b
+f7
+0c
+20
+60
+00
+00
+70
+4b
+f7
+0f
+20
+60
+00
+00
+6f
+e0
+c8
+2a
+20
+3a
+04
+26
 1f
 e2
 24
@@ -4051,7 +4363,7 @@
 c0
 57
 84
-00
+4e
 20
 60
 00
@@ -4066,8 +4378,8 @@
 00
 20
 20
-04
-e0
+05
+2e
 20
 60
 00
@@ -4127,31 +4439,31 @@
 c0
 00
 84
-0f
+5d
 c0
 01
 04
-12
+60
 c0
 01
 84
-14
+62
 c0
 02
 04
-16
+64
 c0
 02
 84
-6e
+bc
 c0
 03
 04
-94
+e2
 c0
 7f
 84
-0e
+5c
 20
 20
 13
@@ -4162,8 +4474,8 @@
 00
 20
 40
-03
-f5
+04
+43
 70
 4b
 f7
@@ -4211,7 +4523,7 @@
 24
 22
 84
-8c
+da
 6f
 e1
 4c
@@ -4223,23 +4535,23 @@
 24
 22
 84
-8c
+da
 20
 40
 04
-22
+70
 24
 34
 04
-8c
+da
 20
 20
 04
-8a
+d8
 20
 40
 04
-2d
+7b
 24
 74
 00
@@ -4347,7 +4659,7 @@
 20
 40
 04
-a4
+f2
 18
 42
 60
@@ -4363,7 +4675,7 @@
 20
 40
 04
-51
+9f
 1e
 f0
 fe
@@ -4443,7 +4755,7 @@
 20
 21
 04
-6c
+ba
 1f
 e0
 ff
@@ -4523,7 +4835,7 @@
 20
 40
 04
-a4
+f2
 18
 42
 60
@@ -4531,7 +4843,7 @@
 20
 20
 04
-51
+9f
 58
 00
 00
@@ -4539,7 +4851,7 @@
 20
 20
 04
-58
+a6
 70
 4b
 f7
@@ -4563,15 +4875,15 @@
 20
 22
 84
-8a
+d8
 20
 40
 04
-9b
+e9
 24
 34
 04
-8c
+da
 1a
 46
 7c
@@ -4579,7 +4891,7 @@
 20
 21
 04
-8c
+da
 1a
 40
 a5
@@ -4599,7 +4911,7 @@
 20
 40
 04
-8e
+dc
 20
 40
 5d
@@ -4639,7 +4951,7 @@
 20
 40
 04
-a4
+f2
 6f
 e1
 4c
@@ -4731,7 +5043,7 @@
 c0
 00
 04
-a1
+ef
 98
 46
 7e
@@ -4767,7 +5079,7 @@
 c2
 00
 04
-a4
+f2
 20
 60
 00
@@ -4819,7 +5131,7 @@
 20
 40
 04
-a8
+f6
 98
 46
 7c
@@ -4838,8 +5150,8 @@
 06
 c0
 ad
-04
-d0
+05
+1e
 1a
 22
 02
@@ -4854,8 +5166,8 @@
 03
 20
 21
-04
-d0
+05
+1e
 18
 c0
 8c
@@ -4870,8 +5182,8 @@
 00
 24
 22
-84
-d0
+85
+1e
 1f
 22
 7e
@@ -4894,8 +5206,8 @@
 00
 24
 22
-84
-bb
+85
+09
 e8
 41
 00
@@ -4919,15 +5231,15 @@
 20
 40
 04
-a8
+f6
 98
 46
 7c
 00
 24
 22
-84
-d0
+85
+1e
 20
 20
 7e
@@ -4946,12 +5258,12 @@
 00
 20
 40
-04
-b7
+05
+05
 24
 34
-04
-dc
+05
+2a
 6a
 21
 4b
@@ -4978,8 +5290,8 @@
 f3
 20
 20
-04
-d1
+05
+1f
 6f
 e1
 4b
@@ -5030,32 +5342,32 @@
 f7
 c0
 00
-84
-ef
+85
+3d
 c0
 02
-04
-f9
+05
+47
 c0
 03
 85
-18
+66
 c0
 05
 05
-3e
+8c
 c0
 06
 85
-33
+81
 c0
 08
 05
-1c
+6a
 20
 20
 05
-47
+95
 70
 47
 c6
@@ -5151,7 +5463,7 @@
 20
 40
 05
-20
+6e
 e7
 e0
 80
@@ -5191,7 +5503,7 @@
 24
 21
 05
-16
+64
 e7
 e1
 00
@@ -5219,7 +5531,7 @@
 20
 20
 05
-11
+5f
 70
 4b
 f7
@@ -5235,7 +5547,7 @@
 20
 20
 05
-29
+77
 70
 4b
 f7
@@ -5251,7 +5563,7 @@
 20
 20
 05
-29
+77
 6f
 e4
 4b
@@ -5259,11 +5571,11 @@
 c2
 89
 85
-25
+73
 c2
 89
 05
-27
+75
 58
 00
 00
@@ -5456,8 +5768,8 @@
 60
 00
 00
-bf
-d2
+30
+65
 aa
 55
 40
@@ -5639,12 +5951,12 @@
 55
 01
 00
-32
+3a
 4c
 ff
 aa
 55
-17
+14
 00
 10
 49
@@ -5668,6 +5980,19 @@
 ff
 ff
 ff
+aa
+55
+01
+00
+38
+4c
+ff
+aa
+55
+03
+00
+24
+49
 03
 00
 00
@@ -6443,589 +6768,264 @@
 69
 04
 7d
-20
-7e
-00
-09
-00
-ff
-ff
-aa
-55
-08
-00
-a3
-4a
-09
-5a
-0b
-f3
-09
-00
-ff
-ff
-aa
-55
-08
-00
-e3
-4b
-09
-a5
-0b
-f3
-09
-00
-ff
-ff
-aa
-55
-02
-00
-8d
-44
-2d
-49
-aa
-55
-01
-00
-8c
-44
-01
-aa
-55
-01
-00
-65
-48
-01
-aa
-55
-01
-00
-64
-48
-01
-aa
-55
-01
-00
-36
-48
-01
-aa
-55
-01
-00
-a8
-48
-06
-aa
-55
-02
-00
-38
-48
-c0
-12
-aa
-55
-03
-00
-54
-48
-19
-19
-1c
-aa
-55
-10
-00
-40
-48
-00
-13
-2c
-42
-06
-15
-36
-48
-0f
-1a
-3a
-4c
-11
-23
-31
-4d
-aa
-55
-01
-00
-5b
-48
-00
-aa
-55
-05
-00
-77
-48
-20
-15
-10
-05
-4e
-aa
-55
-05
-00
-8c
-48
-01
-0f
-0f
-0f
-0f
-aa
-55
-06
-00
-ad
-48
-0c
-f8
-00
-00
-77
-01
-aa
-55
-03
-00
-5c
-48
-00
-48
-60
-aa
-55
-01
-00
-7d
-48
-07
-aa
-55
-02
-00
-99
-48
-b5
-4a
-aa
-55
-01
-00
-ca
-48
-80
-aa
-55
-02
-00
-c2
-48
-14
-00
-aa
-55
-02
-00
-c0
-48
-50
-00
-aa
-55
-03
-00
-b8
-48
-00
-a6
-0e
-aa
-55
-03
-00
-b8
-49
-00
-50
-00
-aa
-55
-02
-00
-79
-44
-80
-1f
-aa
-55
-01
-00
-83
-44
-80
-aa
-55
-01
-00
-e8
-41
-01
-55
-aa
-aa
-55
-9b
-73
-33
-16
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+20
+7e
+00
+09
+00
 ff
 ff
+aa
+55
+08
+00
+a3
+4a
+09
+5a
+0b
+f3
+09
+00
 ff
 ff
+aa
+55
+08
+00
+e3
+4b
+09
+a5
+0b
+f3
+09
+00
 ff
 ff
+aa
+55
+02
+00
+8d
+44
+2d
+49
+aa
+55
+01
+00
+8c
+44
+01
+aa
+55
+01
+00
+65
+48
+01
+aa
+55
+01
+00
+64
+48
+01
+aa
+55
+01
+00
+36
+48
+01
+aa
+55
+01
+00
+a8
+48
+06
+aa
+55
+02
+00
+38
+48
+c0
+12
+aa
+55
+03
+00
+54
+48
+19
+19
+1c
+aa
+55
+10
+00
+40
+48
+00
+13
+2c
+42
+06
+15
+36
+48
+0f
+1a
+3a
+4c
+11
+23
+31
+4d
+aa
+55
+01
+00
+5b
+48
+00
+aa
+55
+05
+00
+77
+48
+20
+15
+10
+05
+4e
+aa
+55
+05
+00
+8c
+48
+01
+0f
+0f
+0f
+0f
+aa
+55
+06
+00
+ad
+48
+0c
+f8
+00
+00
+77
+01
+aa
+55
+03
+00
+5c
+48
+00
+48
+60
+aa
+55
+01
+00
+7d
+48
+07
+aa
+55
+02
+00
+99
+48
+b5
+4a
+aa
+55
+01
+00
+ca
+48
+80
+aa
+55
+02
+00
+c2
+48
+14
+00
+aa
+55
+02
+00
+c0
+48
+50
+00
+aa
+55
+03
+00
+b8
+48
+00
+a6
+0e
+aa
+55
+03
+00
+b8
+49
+00
+50
+00
+aa
+55
+02
+00
+79
+44
+80
+1f
+aa
+55
+01
+00
+83
+44
+80
+aa
+55
+01
+00
+e8
+41
+01
+aa
+55
+05
+00
+f0
+4b
+02
+40
+00
+75
+1b
+2f
+8a
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-04
-15
+d6
+92
Index: output/flash.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/output/flash.dat	(revision 1026)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/output/flash.dat	(working copy)
@@ -2,8 +2,8 @@
 02
 aa
 55
-4e
-15
+86
+16
 c2
 84
 00
@@ -39,19 +39,19 @@
 c0
 61
 82
-41
+4b
 c0
 63
 81
-55
+5f
 c0
 64
 81
-5b
+65
 c0
 65
 01
-8f
+99
 c0
 66
 00
@@ -59,43 +59,43 @@
 c0
 67
 03
-1f
+29
 c0
 67
-83
-bd
+84
+0b
 c0
 68
 02
-50
+5a
 c0
 68
 83
-4a
+5b
 c0
 6a
 03
-30
+3a
 c0
 6b
 01
-ba
+c4
 c0
 6c
 82
-61
+6b
 c0
 6d
 02
-c4
+ce
 c0
 6f
 03
-80
+ce
 c0
 74
 02
-d1
+db
 20
 20
 13
@@ -111,35 +111,35 @@
 c0
 43
 82
-cd
+d7
 c0
 50
 82
-e5
+ef
 c0
 60
 02
-ef
+f9
 c0
 6e
 82
-30
+3a
 c0
 71
 02
-0b
+15
 c0
 74
 82
-13
+1d
 c0
 75
 01
-1e
+28
 c0
 76
 03
-16
+20
 20
 20
 13
@@ -295,7 +295,7 @@
 20
 40
 04
-2d
+7b
 20
 34
 00
@@ -587,7 +587,7 @@
 24
 55
 80
-9c
+a6
 20
 40
 6d
@@ -595,7 +595,7 @@
 20
 40
 00
-c7
+d1
 20
 40
 41
@@ -606,6 +606,10 @@
 00
 20
 40
+00
+9d
+20
+40
 40
 8e
 20
@@ -619,15 +623,51 @@
 20
 40
 00
-d7
+e1
 20
 40
 03
-42
+4c
 20
 20
 3b
 c9
+20
+20
+00
+9f
+20
+60
+00
+00
+6f
+e0
+cc
+38
+c1
+7f
+80
+00
+c2
+83
+80
+a4
+70
+4c
+39
+00
+20
+60
+00
+00
+70
+4c
+39
+01
+20
+60
+00
+00
 6f
 e4
 4c
@@ -651,7 +691,7 @@
 24
 21
 00
-ae
+b8
 d8
 c0
 4c
@@ -703,7 +743,7 @@
 20
 40
 00
-c4
+ce
 6f
 e0
 cc
@@ -823,7 +863,7 @@
 20
 40
 00
-d1
+db
 6f
 e4
 4b
@@ -835,7 +875,7 @@
 20
 40
 00
-d4
+de
 20
 20
 3b
@@ -867,15 +907,15 @@
 58
 00
 00
-dc
+e6
 67
 e1
 48
 9b
 58
 00
-00
-f8
+01
+02
 67
 e1
 48
@@ -894,8 +934,8 @@
 f6
 24
 3a
-04
-e6
+05
+34
 20
 40
 3f
@@ -911,7 +951,7 @@
 c3
 0a
 80
-e5
+ef
 6f
 e0
 cb
@@ -931,7 +971,7 @@
 c2
 80
 80
-f4
+fe
 68
 48
 c7
@@ -1063,7 +1103,7 @@
 24
 21
 01
-0e
+18
 20
 40
 25
@@ -1075,11 +1115,11 @@
 24
 2c
 01
-14
+1e
 24
 37
 81
-14
+1e
 20
 40
 48
@@ -1103,7 +1143,7 @@
 c0
 08
 01
-16
+20
 20
 60
 00
@@ -1115,7 +1155,7 @@
 20
 20
 01
-04
+0e
 70
 4b
 a3
@@ -1147,7 +1187,7 @@
 20
 20
 03
-42
+4c
 20
 40
 26
@@ -1155,11 +1195,11 @@
 24
 34
 01
-a1
+ab
 20
 40
 01
-2d
+37
 20
 40
 26
@@ -1171,7 +1211,7 @@
 24
 3a
 01
-28
+32
 6f
 e4
 48
@@ -1235,23 +1275,23 @@
 24
 2c
 01
-46
+50
 24
 37
 81
-46
+50
 20
 40
 26
 72
 20
 40
-03
-ee
+04
+3c
 20
 40
 01
-39
+43
 20
 20
 26
@@ -1263,7 +1303,7 @@
 24
 5a
 01
-3d
+47
 70
 4b
 e1
@@ -1343,11 +1383,11 @@
 20
 40
 01
-50
+5a
 20
 20
 01
-2e
+38
 6f
 e0
 c8
@@ -1383,11 +1423,11 @@
 20
 40
 03
-3b
+45
 20
 40
 03
-42
+4c
 20
 20
 3e
@@ -1403,7 +1443,7 @@
 20
 40
 02
-86
+90
 20
 40
 40
@@ -1463,15 +1503,15 @@
 20
 40
 01
-6f
+79
 20
 40
 01
-7c
+86
 20
 20
 01
-83
+8d
 6f
 e1
 cb
@@ -1519,7 +1559,7 @@
 c2
 00
 01
-73
+7d
 20
 60
 00
@@ -1667,11 +1707,11 @@
 20
 40
 03
-42
+4c
 20
 20
 01
-a6
+b0
 6f
 e0
 c8
@@ -1679,7 +1719,7 @@
 20
 5a
 01
-ac
+b6
 6f
 e0
 c8
@@ -1771,7 +1811,7 @@
 20
 20
 01
-20
+2a
 1a
 62
 7e
@@ -1779,31 +1819,31 @@
 c0
 00
 81
-c3
+cd
 c0
 1e
 01
-e5
+ef
 c0
 1c
 81
-e3
+ed
 c0
 1d
 01
-ec
+f6
 c0
 19
 01
-cf
+d9
 c0
 22
 01
-d6
+e0
 c0
 0a
 81
-c5
+cf
 20
 20
 43
@@ -1863,7 +1903,7 @@
 c0
 00
 81
-d3
+dd
 70
 4b
 76
@@ -1979,7 +2019,7 @@
 24
 3a
 01
-98
+a2
 6f
 e0
 c8
@@ -1987,15 +2027,15 @@
 c0
 01
 01
-f3
+fd
 c0
 02
-01
-fe
+02
+08
 c0
 01
 82
-03
+0d
 20
 20
 48
@@ -2030,8 +2070,8 @@
 00
 20
 22
-81
-fc
+82
+06
 20
 20
 48
@@ -2051,7 +2091,7 @@
 c3
 17
 82
-08
+12
 6f
 e0
 cb
@@ -2059,7 +2099,7 @@
 c0
 00
 82
-08
+12
 20
 20
 48
@@ -2071,15 +2111,15 @@
 c3
 17
 82
-08
+12
 c2
 89
 82
-08
+12
 c2
 89
 02
-08
+12
 20
 20
 48
@@ -2095,7 +2135,7 @@
 20
 20
 01
-98
+a2
 70
 48
 8b
@@ -2143,7 +2183,7 @@
 20
 3a
 02
-1b
+25
 6f
 e1
 48
@@ -2171,11 +2211,11 @@
 24
 2c
 02
-21
+2b
 24
 37
 82
-21
+2b
 20
 40
 26
@@ -2231,7 +2271,7 @@
 c0
 02
 02
-2e
+38
 20
 20
 25
@@ -2262,8 +2302,8 @@
 a1
 c2
 81
-83
-f8
+84
+46
 c2
 80
 a3
@@ -2279,7 +2319,7 @@
 c0
 00
 82
-3a
+44
 20
 20
 26
@@ -2291,7 +2331,7 @@
 24
 34
 02
-32
+3c
 20
 40
 26
@@ -2327,7 +2367,7 @@
 c0
 00
 02
-46
+50
 20
 20
 3d
@@ -2379,7 +2419,7 @@
 20
 40
 02
-53
+5d
 20
 20
 40
@@ -2431,7 +2471,7 @@
 20
 3a
 02
-8d
+97
 67
 e0
 cb
@@ -2467,7 +2507,7 @@
 20
 40
 02
-8a
+94
 20
 40
 40
@@ -2479,7 +2519,7 @@
 20
 40
 02
-a2
+ac
 20
 40
 44
@@ -2495,7 +2535,7 @@
 20
 40
 02
-b9
+c3
 20
 40
 45
@@ -2527,15 +2567,15 @@
 20
 40
 02
-7c
+86
 20
 40
 02
-bc
+c6
 20
 20
 02
-79
+83
 da
 60
 4c
@@ -2587,7 +2627,7 @@
 20
 21
 02
-88
+92
 68
 48
 cb
@@ -2611,7 +2651,7 @@
 da
 40
 02
-8d
+97
 20
 20
 31
@@ -2667,11 +2707,11 @@
 20
 41
 02
-9c
+a6
 24
 41
 02
-a0
+aa
 20
 20
 48
@@ -2707,7 +2747,7 @@
 c0
 00
 02
-a8
+b2
 6f
 e4
 4b
@@ -2723,7 +2763,7 @@
 20
 20
 02
-ab
+b5
 6f
 e4
 4b
@@ -2759,7 +2799,7 @@
 20
 22
 82
-b2
+bc
 20
 20
 44
@@ -2767,7 +2807,7 @@
 20
 40
 02
-b7
+c1
 6f
 e0
 cb
@@ -2786,8 +2826,8 @@
 00
 da
 40
-01
-fc
+02
+06
 20
 20
 44
@@ -2819,7 +2859,7 @@
 da
 40
 02
-c1
+cb
 20
 20
 31
@@ -2831,7 +2871,7 @@
 c0
 00
 01
-98
+a2
 20
 20
 43
@@ -2915,7 +2955,7 @@
 c0
 04
 82
-d9
+e3
 20
 20
 4d
@@ -3015,7 +3055,7 @@
 c0
 02
 02
-f2
+fc
 20
 20
 19
@@ -3030,12 +3070,12 @@
 36
 c0
 05
-02
-f7
+03
+01
 c0
 09
 03
-06
+10
 20
 20
 1c
@@ -3063,7 +3103,7 @@
 c2
 81
 83
-01
+0b
 6f
 e1
 44
@@ -3090,12 +3130,12 @@
 00
 24
 22
-82
-fd
+83
+07
 24
 34
-02
-fd
+03
+07
 20
 20
 1e
@@ -3230,8 +3270,8 @@
 83
 20
 40
-40
-dc
+03
+54
 6f
 e0
 c8
@@ -3251,7 +3291,7 @@
 20
 40
 03
-2d
+37
 20
 20
 45
@@ -3279,7 +3319,7 @@
 c0
 05
 83
-37
+41
 20
 40
 42
@@ -3299,7 +3339,7 @@
 20
 40
 03
-3e
+48
 da
 60
 4b
@@ -3319,7 +3359,7 @@
 c0
 05
 83
-3e
+48
 20
 20
 42
@@ -3355,7 +3395,7 @@
 c0
 05
 83
-48
+52
 58
 00
 08
@@ -3372,6 +3412,34 @@
 20
 5b
 0c
+20
+40
+03
+92
+6f
+e0
+cc
+37
+24
+3a
+03
+a9
+6f
+e0
+cc
+32
+24
+3a
+03
+a8
+20
+40
+03
+5b
+20
+20
+40
+dd
 6f
 e0
 cb
@@ -3387,23 +3455,27 @@
 20
 40
 03
-53
+65
 20
 40
 03
-58
+6a
 20
 40
 03
-5d
+6f
 20
 40
 03
-62
+74
 20
 40
 03
-6f
+81
+20
+40
+03
+92
 20
 20
 41
@@ -3415,7 +3487,7 @@
 20
 40
 03
-7c
+8e
 20
 40
 41
@@ -3435,7 +3507,7 @@
 20
 40
 03
-7c
+8e
 20
 40
 41
@@ -3455,7 +3527,7 @@
 20
 40
 03
-7c
+8e
 20
 40
 41
@@ -3499,7 +3571,7 @@
 c0
 7f
 83
-6b
+7d
 20
 20
 41
@@ -3511,7 +3583,7 @@
 20
 40
 03
-7e
+90
 68
 48
 c9
@@ -3551,7 +3623,7 @@
 c0
 7f
 83
-78
+8a
 20
 20
 41
@@ -3563,7 +3635,7 @@
 20
 40
 03
-7e
+90
 68
 48
 c9
@@ -3588,454 +3660,694 @@
 20
 60
 93
-20
-40
-49
-90
-20
-40
-79
-36
-20
-40
-03
-85
-20
-40
-03
-99
-20
-20
-46
-4f
-6f
-e4
-4b
-ab
-c2
-97
+da
 40
-36
+00
+00
 6f
 e0
-c9
-0f
+cc
+38
 c1
 7f
 80
 00
-da
-20
-00
-00
-70
-4b
-96
-05
+6f
+e0
+cc
+39
+24
+3a
+03
+9f
 68
 48
-c9
-0f
+cc
+38
 20
 40
-03
-8e
-20
+3f
+56
+68
+48
+cc
+38
 20
 40
-2f
-6f
-e4
-4b
-ab
-c2
-96
-40
-48
-6f
+60
+59
+79
+20
+a4
+00
+1a
+42
+7e
+00
+67
 e0
-cb
-93
-1f
-e2
-26
+cc
+37
+20
+60
+00
 00
 6f
 e0
-c9
-10
-c0
-7f
-83
-95
-20
-20
-40
+cc
+38
+79
 3f
-6f
+fe
+07
+67
 e0
-c9
-0f
-20
-40
-03
-7e
+cc
+38
 68
 48
-c9
-0f
-20
-20
-41
-95
-6f
-e4
-4b
-ab
-c4
-1e
-80
-00
-6f
-e0
 cc
-32
-20
-40
-03
-7c
+38
 20
 40
-03
-a0
+3f
+54
 68
 48
 cc
-32
+38
 20
+40
+60
+59
+7d
 20
-3f
-56
-70
-4c
-36
+a4
 00
-68
-48
-cc
-32
-6f
-e0
-cc
-33
+20
+20
+03
+9c
+c0
+02
+03
+c3
 20
 40
 03
-af
+c6
+6f
+e2
+4c
+33
+d8
+40
+00
+a0
+98
+40
+84
+00
+1c
+42
+7e
+00
+98
+46
+7c
+00
+24
+61
+00
+00
 67
-e0
-cc
+e2
+4c
 33
 6f
 e0
 cc
-35
-20
-3a
+32
+c0
+00
 03
-ab
-6f
-e0
-cc
-34
-c1
+b7
+c0
+00
+83
+ba
+c0
+01
+03
+bd
+c0
+01
+83
+c0
+20
+60
 00
-80
 00
 70
 4c
-34
+32
+01
+70
+48
+d0
 01
 20
 20
-40
-69
-6f
-e0
-cc
-34
-c1
-00
-00
-00
+7e
+54
 70
 4c
-34
+32
+02
+70
+48
+d0
 00
 20
-60
+20
+7e
+54
+70
+4c
+32
+03
+70
+48
+d0
+01
+20
+20
+7e
+54
+70
+4c
+32
 00
+70
+48
+d0
 00
-1f
-e3
-fe
+20
+20
+7e
+54
+70
+4c
+32
 00
-1f
-e2
-24
+70
+48
+d0
 00
 20
-40
 60
-59
-79
-20
-a4
 00
-1a
-41
-7e
-07
+00
 68
-48
-cc
-36
-18
+4a
+4c
+33
+1c
 42
-0e
+7e
 00
-c0
-03
-83
-b9
-c0
+98
+46
+7c
 00
+24
+41
 03
-bb
+cb
 20
 60
 00
 00
-70
-4c
-35
-01
-20
-60
+58
 00
 00
-70
-4c
-35
 00
+67
+e2
+4c
+33
 20
 60
 00
 00
 20
 40
+49
+90
+20
 40
-72
+79
+36
 20
-74
-00
-00
-6f
-e0
-c9
-92
-1f
-e2
-04
-00
-6f
-e4
-4b
-ab
-c2
-9e
-83
-c9
-18
-42
-7e
-00
-1f
-e0
-fe
-01
-1f
-e1
-7e
+40
 03
-67
-e0
-c9
-92
+d3
 20
 40
-40
-95
+03
+e7
 20
 20
-45
-ee
-6f
-e0
-cc
-35
-24
-3a
-03
-d4
+46
+4f
 6f
 e4
 4b
 ab
 c2
-8e
-03
-d1
-18
-42
-7e
-00
+97
+40
+36
+6f
+e0
+c9
+0f
 c1
-01
+7f
+80
 00
+da
+20
 00
+00
+70
+4b
+96
+05
+68
+48
+c9
+0f
+20
+40
+03
+dc
+20
+20
+40
+2f
+6f
+e4
+4b
+ab
+c2
+96
+40
+48
+6f
+e0
+cb
+93
 1f
+e2
+26
+00
+6f
 e0
-fe
-01
+c9
+10
+c0
+7f
+83
+e3
+20
 20
+40
+3f
+6f
+e0
+c9
+0f
 20
+40
 03
-c6
-18
-42
-7e
-00
-c1
-01
+90
+68
+48
+c9
+0f
+20
+20
+41
+95
+6f
+e4
+4b
+ab
+c4
+1e
 80
 00
+6f
+e0
+cc
+3a
 20
+40
+03
+8e
 20
+40
 03
-cf
-18
-42
-7e
-00
-c1
-00
-00
+ee
+68
+48
+cc
+3a
+20
+20
+3f
+56
+70
+4c
+3e
 00
-1f
+68
+48
+cc
+3a
+6f
 e0
-ff
-ff
-20
+cc
+3b
 20
+40
 03
-c6
+fd
+67
+e0
+cc
+3b
 6f
 e0
-cb
-f6
+cc
+3d
 20
-7a
-00
-00
+3a
+03
+f9
 6f
 e0
-cb
-f7
-c0
-01
-03
-e4
-c0
-02
-83
-e6
-c0
-04
-03
-e8
-c0
-05
-83
-ea
-c0
-07
-03
-ec
-c0
-08
-83
-e2
-20
-60
+cc
+3c
+c1
 00
+80
 00
 70
-4b
-f7
-12
+4c
+3c
+01
 20
-60
+20
+40
+69
+6f
+e0
+cc
+3c
+c1
+00
 00
 00
 70
-4b
-f7
-03
+4c
+3c
+00
 20
 60
 00
 00
-70
-4b
-f7
-06
+1f
+e3
+fe
+00
+1f
+e2
+24
+00
 20
+40
 60
+59
+79
+20
+a4
 00
+1a
+41
+7e
+07
+68
+48
+cc
+3e
+18
+42
+0e
 00
-70
-4b
-f7
+c0
+03
+84
+07
+c0
+00
+04
 09
 20
 60
 00
 00
 70
-4b
-f7
-0c
+4c
+3d
+01
 20
 60
 00
 00
 70
-4b
-f7
-0f
+4c
+3d
+00
 20
 60
 00
 00
+20
+40
+40
+72
+20
+74
+00
+00
 6f
 e0
-c8
-2a
-20
-3a
+c9
+92
+1f
+e2
+04
+00
+6f
+e4
+4b
+ab
+c2
+9e
+84
+17
+18
+42
+7e
+00
+1f
+e0
+fe
+01
+1f
+e1
+7e
 03
-d8
+67
+e0
+c9
+92
+20
+40
+40
+95
+20
+20
+45
+ee
+6f
+e0
+cc
+3d
+24
+3a
+04
+22
+6f
+e4
+4b
+ab
+c2
+8e
+04
+1f
+18
+42
+7e
+00
+c1
+01
+00
+00
+1f
+e0
+fe
+01
+20
+20
+04
+14
+18
+42
+7e
+00
+c1
+01
+80
+00
+20
+20
+04
+1d
+18
+42
+7e
+00
+c1
+00
+00
+00
+1f
+e0
+ff
+ff
+20
+20
+04
+14
+6f
+e0
+cb
+f6
+20
+7a
+00
+00
+6f
+e0
+cb
+f7
+c0
+01
+04
+32
+c0
+02
+84
+34
+c0
+04
+04
+36
+c0
+05
+84
+38
+c0
+07
+04
+3a
+c0
+08
+84
+30
+20
+60
+00
+00
+70
+4b
+f7
+12
+20
+60
+00
+00
+70
+4b
+f7
+03
+20
+60
+00
+00
+70
+4b
+f7
+06
+20
+60
+00
+00
+70
+4b
+f7
+09
+20
+60
+00
+00
+70
+4b
+f7
+0c
+20
+60
+00
+00
+70
+4b
+f7
+0f
+20
+60
+00
+00
+6f
+e0
+c8
+2a
+20
+3a
+04
+26
 1f
 e2
 24
@@ -4051,7 +4363,7 @@
 c0
 57
 84
-00
+4e
 20
 60
 00
@@ -4066,8 +4378,8 @@
 00
 20
 20
-04
-e0
+05
+2e
 20
 60
 00
@@ -4127,31 +4439,31 @@
 c0
 00
 84
-0f
+5d
 c0
 01
 04
-12
+60
 c0
 01
 84
-14
+62
 c0
 02
 04
-16
+64
 c0
 02
 84
-6e
+bc
 c0
 03
 04
-94
+e2
 c0
 7f
 84
-0e
+5c
 20
 20
 13
@@ -4162,8 +4474,8 @@
 00
 20
 40
-03
-f5
+04
+43
 70
 4b
 f7
@@ -4211,7 +4523,7 @@
 24
 22
 84
-8c
+da
 6f
 e1
 4c
@@ -4223,23 +4535,23 @@
 24
 22
 84
-8c
+da
 20
 40
 04
-22
+70
 24
 34
 04
-8c
+da
 20
 20
 04
-8a
+d8
 20
 40
 04
-2d
+7b
 24
 74
 00
@@ -4347,7 +4659,7 @@
 20
 40
 04
-a4
+f2
 18
 42
 60
@@ -4363,7 +4675,7 @@
 20
 40
 04
-51
+9f
 1e
 f0
 fe
@@ -4443,7 +4755,7 @@
 20
 21
 04
-6c
+ba
 1f
 e0
 ff
@@ -4523,7 +4835,7 @@
 20
 40
 04
-a4
+f2
 18
 42
 60
@@ -4531,7 +4843,7 @@
 20
 20
 04
-51
+9f
 58
 00
 00
@@ -4539,7 +4851,7 @@
 20
 20
 04
-58
+a6
 70
 4b
 f7
@@ -4563,15 +4875,15 @@
 20
 22
 84
-8a
+d8
 20
 40
 04
-9b
+e9
 24
 34
 04
-8c
+da
 1a
 46
 7c
@@ -4579,7 +4891,7 @@
 20
 21
 04
-8c
+da
 1a
 40
 a5
@@ -4599,7 +4911,7 @@
 20
 40
 04
-8e
+dc
 20
 40
 5d
@@ -4639,7 +4951,7 @@
 20
 40
 04
-a4
+f2
 6f
 e1
 4c
@@ -4731,7 +5043,7 @@
 c0
 00
 04
-a1
+ef
 98
 46
 7e
@@ -4767,7 +5079,7 @@
 c2
 00
 04
-a4
+f2
 20
 60
 00
@@ -4819,7 +5131,7 @@
 20
 40
 04
-a8
+f6
 98
 46
 7c
@@ -4838,8 +5150,8 @@
 06
 c0
 ad
-04
-d0
+05
+1e
 1a
 22
 02
@@ -4854,8 +5166,8 @@
 03
 20
 21
-04
-d0
+05
+1e
 18
 c0
 8c
@@ -4870,8 +5182,8 @@
 00
 24
 22
-84
-d0
+85
+1e
 1f
 22
 7e
@@ -4894,8 +5206,8 @@
 00
 24
 22
-84
-bb
+85
+09
 e8
 41
 00
@@ -4919,15 +5231,15 @@
 20
 40
 04
-a8
+f6
 98
 46
 7c
 00
 24
 22
-84
-d0
+85
+1e
 20
 20
 7e
@@ -4946,12 +5258,12 @@
 00
 20
 40
-04
-b7
+05
+05
 24
 34
-04
-dc
+05
+2a
 6a
 21
 4b
@@ -4978,8 +5290,8 @@
 f3
 20
 20
-04
-d1
+05
+1f
 6f
 e1
 4b
@@ -5030,32 +5342,32 @@
 f7
 c0
 00
-84
-ef
+85
+3d
 c0
 02
-04
-f9
+05
+47
 c0
 03
 85
-18
+66
 c0
 05
 05
-3e
+8c
 c0
 06
 85
-33
+81
 c0
 08
 05
-1c
+6a
 20
 20
 05
-47
+95
 70
 47
 c6
@@ -5151,7 +5463,7 @@
 20
 40
 05
-20
+6e
 e7
 e0
 80
@@ -5191,7 +5503,7 @@
 24
 21
 05
-16
+64
 e7
 e1
 00
@@ -5219,7 +5531,7 @@
 20
 20
 05
-11
+5f
 70
 4b
 f7
@@ -5235,7 +5547,7 @@
 20
 20
 05
-29
+77
 70
 4b
 f7
@@ -5251,7 +5563,7 @@
 20
 20
 05
-29
+77
 6f
 e4
 4b
@@ -5259,11 +5571,11 @@
 c2
 89
 85
-25
+73
 c2
 89
 05
-27
+75
 58
 00
 00
@@ -5456,8 +5768,8 @@
 60
 00
 00
-bf
-d2
+30
+65
 aa
 55
 40
@@ -5639,12 +5951,12 @@
 55
 01
 00
-32
+3a
 4c
 ff
 aa
 55
-17
+14
 00
 10
 49
@@ -5668,6 +5980,19 @@
 ff
 ff
 ff
+aa
+55
+01
+00
+38
+4c
+ff
+aa
+55
+03
+00
+24
+49
 03
 00
 00
@@ -6443,589 +6768,264 @@
 69
 04
 7d
-20
-7e
-00
-09
-00
-ff
-ff
-aa
-55
-08
-00
-a3
-4a
-09
-5a
-0b
-f3
-09
-00
-ff
-ff
-aa
-55
-08
-00
-e3
-4b
-09
-a5
-0b
-f3
-09
-00
-ff
-ff
-aa
-55
-02
-00
-8d
-44
-2d
-49
-aa
-55
-01
-00
-8c
-44
-01
-aa
-55
-01
-00
-65
-48
-01
-aa
-55
-01
-00
-64
-48
-01
-aa
-55
-01
-00
-36
-48
-01
-aa
-55
-01
-00
-a8
-48
-06
-aa
-55
-02
-00
-38
-48
-c0
-12
-aa
-55
-03
-00
-54
-48
-19
-19
-1c
-aa
-55
-10
-00
-40
-48
-00
-13
-2c
-42
-06
-15
-36
-48
-0f
-1a
-3a
-4c
-11
-23
-31
-4d
-aa
-55
-01
-00
-5b
-48
-00
-aa
-55
-05
-00
-77
-48
-20
-15
-10
-05
-4e
-aa
-55
-05
-00
-8c
-48
-01
-0f
-0f
-0f
-0f
-aa
-55
-06
-00
-ad
-48
-0c
-f8
-00
-00
-77
-01
-aa
-55
-03
-00
-5c
-48
-00
-48
-60
-aa
-55
-01
-00
-7d
-48
-07
-aa
-55
-02
-00
-99
-48
-b5
-4a
-aa
-55
-01
-00
-ca
-48
-80
-aa
-55
-02
-00
-c2
-48
-14
-00
-aa
-55
-02
-00
-c0
-48
-50
-00
-aa
-55
-03
-00
-b8
-48
-00
-a6
-0e
-aa
-55
-03
-00
-b8
-49
-00
-50
-00
-aa
-55
-02
-00
-79
-44
-80
-1f
-aa
-55
-01
-00
-83
-44
-80
-aa
-55
-01
-00
-e8
-41
-01
-55
-aa
-aa
-55
-9b
-73
-33
-16
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+20
+7e
+00
+09
+00
 ff
 ff
+aa
+55
+08
+00
+a3
+4a
+09
+5a
+0b
+f3
+09
+00
 ff
 ff
+aa
+55
+08
+00
+e3
+4b
+09
+a5
+0b
+f3
+09
+00
 ff
 ff
+aa
+55
+02
+00
+8d
+44
+2d
+49
+aa
+55
+01
+00
+8c
+44
+01
+aa
+55
+01
+00
+65
+48
+01
+aa
+55
+01
+00
+64
+48
+01
+aa
+55
+01
+00
+36
+48
+01
+aa
+55
+01
+00
+a8
+48
+06
+aa
+55
+02
+00
+38
+48
+c0
+12
+aa
+55
+03
+00
+54
+48
+19
+19
+1c
+aa
+55
+10
+00
+40
+48
+00
+13
+2c
+42
+06
+15
+36
+48
+0f
+1a
+3a
+4c
+11
+23
+31
+4d
+aa
+55
+01
+00
+5b
+48
+00
+aa
+55
+05
+00
+77
+48
+20
+15
+10
+05
+4e
+aa
+55
+05
+00
+8c
+48
+01
+0f
+0f
+0f
+0f
+aa
+55
+06
+00
+ad
+48
+0c
+f8
+00
+00
+77
+01
+aa
+55
+03
+00
+5c
+48
+00
+48
+60
+aa
+55
+01
+00
+7d
+48
+07
+aa
+55
+02
+00
+99
+48
+b5
+4a
+aa
+55
+01
+00
+ca
+48
+80
+aa
+55
+02
+00
+c2
+48
+14
+00
+aa
+55
+02
+00
+c0
+48
+50
+00
+aa
+55
+03
+00
+b8
+48
+00
+a6
+0e
+aa
+55
+03
+00
+b8
+49
+00
+50
+00
+aa
+55
+02
+00
+79
+44
+80
+1f
+aa
+55
+01
+00
+83
+44
+80
+aa
+55
+01
+00
+e8
+41
+01
+aa
+55
+05
+00
+f0
+4b
+02
+40
+00
+75
+1b
+2f
+8a
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-04
-15
+d6
+92
Index: output/memmap.format
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/output/memmap.format	(revision 1026)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/output/memmap.format	(working copy)
@@ -2222,11 +2222,16 @@
 0x4c1d mem_g24_ota_reset_timer
 0x4c1e mem_le_name_patch_len
 0x4c1f mem_le_name_patch
-0x4c32 mem_dpi_another_button_gpio
-0x4c33 mem_dpi_another_press_status
-0x4c34 mem_dpi_another_button_state
-0x4c35 mem_dpi_another_button_down_enable
-0x4c36 mem_mouse_key_temp_patch
+0x4c32 mem_fire_key_status
+0x4c33 mem_fire_key_delay
+0x4c37 mem_fire_key_flag
+0x4c38 mem_firebutton_gpio
+0x4c39 mem_mouse_firebutton_connect_vin_flag
+0x4c3a mem_dpi_another_button_gpio
+0x4c3b mem_dpi_another_press_status
+0x4c3c mem_dpi_another_button_state
+0x4c3d mem_dpi_another_button_down_enable
+0x4c3e mem_mouse_key_temp_patch
 0x48d0 mem_remote_car_hard_soft_switch
 0x48d1 mem_remote_car_queue_each_size
 0x48d2 mem_remote_car_queue_length
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/program/patch.prog	(revision 1026)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/program/patch.prog	(working copy)
@@ -1,4 +1,6 @@
 
+define G24_OTA
+define FIRE_KEY
 
 	bbit1 8,pf_patch_ext
 	beq patch00_0,p_soft_reset
@@ -94,7 +96,7 @@
 	jam 0x29,core_syn_afc_cfg1
 	branch set_sync_on_16m	
 
-
+ifdef G24_OTA
 p_g24_load_ota_config_poweron:
 	call iicd_load_gpio_init
 	call p_g24_check_ota_data
@@ -108,7 +110,7 @@
 	byteswap pdata,pdata
 	store 2,mem_addr_mi
 	branch load_storage_loop
-	
+endif	
 	
 p_adc_init_data:
 	arg mem_temp_block2,rega
@@ -207,12 +209,15 @@
 /////////////////////////////////// g24 250Hz use lpm//////////////////////////////////////
 p_app_init:
 p_mouse_init:
+ifdef G24_OTA
 	ncall p_g24_load_ota_config_poweron,wake
+endif
 	ncall p_mouse_le_name_load,wake
 	call enable_authrom
 	call p_mouse_setting_config
 	call mouse_init_sunt
 	rtn wake
+	call p_mouse_load_default_param
 	call mouse_dpi_config
 	call mouse_usb_check_enable
 	call mouse_drawing_optima_init
@@ -220,6 +225,24 @@
 	call p_mouse_sensor_powerdown
 	branch mouse_init+8
 
+p_mouse_load_default_param:
+ifdef FIRE_KEY
+	branch p_mouse_firebutton_connect_state_check
+endif
+	rtn
+ifdef FIRE_KEY
+p_mouse_firebutton_connect_state_check:
+	fetch 1,mem_firebutton_gpio
+	rtneq GPIO_DISABLE
+	bbit1 gpio_active_bit,p_mouse_firebutton_connect_vin
+p_mouse_firebutton_connect_gnd:	
+	jam 0,mem_mouse_firebutton_connect_vin_flag
+	rtn
+p_mouse_firebutton_connect_vin:
+	jam 1,mem_mouse_firebutton_connect_vin_flag
+	rtn
+endif
+
 p_mouse_le_name_load:
 	fetch 8,mem_le_name_patch
 	rtn blank
@@ -305,8 +328,10 @@
 
 p_mouse_24g_package_data:		// 250Hz
 	rtnmark0 mark_24g
+ifdef G24_OTA
 	fetch 1,mem_g24_ota_mode
 	nbranch p_mouse_24g_package_ota,blank
+endif
 	call mouse_motion
 	nrtn user
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
@@ -411,7 +436,9 @@
 	nbranch p_g24_retransmit,sync
 	nbranch p_g24_retransmit,user3
 	call g24_ackpayload_parse
+ifdef G24_OTA
 	call p_g24_mouse_parse_rx
+endif
 	call p_mouse_wakeup_24g
 	branch g24_transmit_no_ack
 
@@ -740,7 +767,9 @@
 p_g24_transmit_dispatch:
 	rtnmark0 mark_24g
 	fetch 1,mem_24g_conn_sm
+ifdef G24_OTA
 	bbit1 STATE_24G_OTA,p_g24_ota_dispatch
+endif
 	bbit1 STATE_24G_PAIR,g24_pair_dispatch
 	bbit1 STATE_24G_RECONN,g24_reconn_dispatch
 	fetch 1,mem_24g_transmit_by_interrupt
@@ -1064,7 +1093,7 @@
 	call mouse_dpi_config
 	call mouse_zwheel
 	call mouse_t_zwheel
-	call mouse_key
+	call p_mouse_key
 	fetch 1,mem_mouse_key
 	and_into 0x1f,pdata
 	store 1,mem_mouse_key
@@ -1115,6 +1144,17 @@
 
 
 //////////////////////////////modify key start///////////////////////////////////////////////
+p_mouse_key:
+ifdef FIRE_KEY
+	call p_mouse_check_firekey_gpio
+	fetch 1,mem_fire_key_flag
+	nbranch p_fire_key_press,blank
+	fetch 1,mem_fire_key_status
+	nbranch p_fire_key_process,blank
+endif
+	call p_mouse_check_key_gpio
+	branch mouse_key+1
+
 p_mouse_check_key_gpio:	//when mem_matrix_public_gpio=0xff
 	fetch 1,mem_sensor_shutdown_flag
 	ncall mouse_check_key_gpio_once,blank
@@ -1124,6 +1164,9 @@
 	call p_mouse_check_mkey_gpio
 	call p_mouse_check_bkkey_gpio
 	call p_mouse_check_fwkey_gpio
+ifdef FIRE_KEY	
+	call p_mouse_check_firekey_gpio
+endif
 	branch mouse_check_key_gpio_next
 
 p_mouse_check_lkey_gpio:
@@ -1187,6 +1230,95 @@
 	arg gpcfg_output_low,temp
 	branch gpio_config_function_int	
 
+/////////////////////////////////////////////firekey start//////////////////////////////////////////
+
+ifdef FIRE_KEY
+p_mouse_check_firekey_gpio:
+	arg 0,regb
+	fetch 1,mem_firebutton_gpio
+	rtneq GPIO_DISABLE
+	fetch 1,mem_mouse_firebutton_connect_vin_flag
+	nbranch p_mouse_check_firekey_connect_vin,blank
+p_mouse_check_firekey_connect_gnd:
+	fetcht 1,mem_firebutton_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_firebutton_gpio
+	call gpio_get_bit
+	setflag true,0,regb
+p_mouse_firekey_state_store:	
+	copy regb,pdata
+	store 1,mem_fire_key_flag
+	rtn
+
+p_mouse_check_firekey_connect_vin:
+	fetch 1,mem_firebutton_gpio
+	set0 gpio_active_bit,pdata
+	store 1,mem_firebutton_gpio
+	fetcht 1,mem_firebutton_gpio
+	call mouse_gpio_config_input_pd
+	fetcht 1,mem_firebutton_gpio
+	call gpio_get_bit
+	nsetflag true,0,regb
+	branch p_mouse_firekey_state_store
+
+p_fire_key_process: 
+	beq 4,p_fire_key_process_end
+p_fire_key_press:
+	call p_firekey_clkn_bt_timer_check 
+	fetch 4,mem_fire_key_delay
+	arg 0xa0,temp      
+	iadd temp,temp
+	copy clkn_bt,pdata
+	isub temp,null
+	nrtn positive
+	store 4,mem_fire_key_delay 
+	fetch 1,mem_fire_key_status
+	beq 0,p_fire_key_process_start
+	beq 1,p_fire_key_process_release1
+	beq 2,p_fire_key_process_start2
+	beq 3,p_fire_key_process_release2
+	rtn
+
+p_fire_key_process_start:
+	jam 1,mem_fire_key_status
+	jam 1,mem_mouse_key
+	branch enable_user
+
+p_fire_key_process_release1:
+	jam 2,mem_fire_key_status
+	jam 0,mem_mouse_key
+	branch enable_user
+
+p_fire_key_process_start2:
+	jam 3,mem_fire_key_status
+	jam 1,mem_mouse_key
+	branch enable_user
+
+p_fire_key_process_release2:
+	jam 0,mem_fire_key_status
+	jam 0,mem_mouse_key
+	branch enable_user
+
+p_fire_key_process_end:
+	jam 0,mem_fire_key_status
+	jam 0,mem_mouse_key
+	rtn
+
+p_firekey_clkn_bt_timer_check:
+	fetcht 4,mem_fire_key_delay
+	copy clkn_bt,pdata
+	isub temp,null
+	ncall p_firekey_clkn_bt_timer_timeout,positive
+	rtn
+p_firekey_clkn_bt_timer_timeout:
+	setarg 0
+	store 4,mem_fire_key_delay
+	rtn
+
+endif
+
+/////////////////////////////////////////////firekey end//////////////////////////////////////////
+
 p_mouse_idle:
 	call mouse_low_voltage_led_no_enter_lpm
 	call ui_check_paring_button
@@ -1314,7 +1446,8 @@
 //////////////////////////////modify key end///////////////////////////////////////////////
 
 
-
+///////////////////////////// 2.4g ota start ///////////////////////////////////////////////////////////	
+ifdef G24_OTA
 p_g24_parse_rx_ota_sm:
 	fetch 1,mem_g24_ota_mode
 	rtn blank
@@ -1350,8 +1483,7 @@
 p_g24_ota_sm_tx_data:
 	jam G24_OTA_SM_TX_DATA_OK,mem_g24_ota_sm
 	rtn		
-	
-	
+
 p_g24_mouse_parse_rx:
 	fetch 1,mem_24g_rxdata_length
 	branch  p_g24_parse_rx_ota_sm, blank
@@ -1363,18 +1495,14 @@
 	beq DATATYPE_OTA,p_g24_rx_ota	//mouse
 	rtn
 
-
 p_g24_ota_mode_enable:
 	jam 1,mem_g24_ota_mode
 //	jam CLEAR_INIT,mem_24g_mode_init
 	jam 0,mem_lpm_mode
 	branch p_ota_init
-	
 
 p_g24_ota_dispatch:
-
 	rtn
-	
 
 p_g24_ota_transmit:
 	jam DATATYPE_OTA,mem_24g_txbuf
@@ -1384,8 +1512,7 @@
 	nrtn user3
 	call g24_txbuf_clear
 	branch g24_ackpayload_parse
-	
-	
+
 p_g24_rx_ota:
 	fetch 1,mem_24g_rxpayload
 	rtnne DATATYPE_OTA
@@ -1402,7 +1529,7 @@
 	beq G24_OTA_CMD_RESET,p_g24_mouse_ota_process_reset
 	beq G24_OTA_CMD_PING,p_g24_mouse_ota_process_ping
 	branch assert
-	
+
 p_g24_mouse_ota_process_ping:
 	rtn
 
@@ -1419,11 +1546,9 @@
 p_g24_mouse_ota_process_config:
 	jam G24_OTA_SM_RX_CONFIG,mem_g24_ota_sm
 	rtn
-	
 
 p_g24_mouse_ota_process_set_config_end:
 	jam G24_OTA_SM_RX_SET_CONFIG_END,mem_g24_ota_sm
-
 	ifetch 2,contr
 	ifetcht 2,contr
 	fetchr rega, 2,mem_g24_ota_rx_alllen
@@ -1448,7 +1573,6 @@
 	isub temp,null
 	nbranch disable_user,zero
 	branch enable_user
-	
 
 p_g24_check_ota_data:
 	fetch 2,mem_g24_ota_config_addr
@@ -1495,7 +1619,7 @@
 	setarg 0xffff
 	iand alarm,alarm
 	branch enable_user
-	
+
 p_g24_check_ota_data_loop:
 	fetch 2,mem_pdatatemp
 	rtn blank
@@ -1528,13 +1652,10 @@
 
 p_g24_check_ota_data_loopend:
 	setarg 0
-	branch p_g24_check_ota_data_loop2
-	
+	branch p_g24_check_ota_data_loop2	
 
-	
 p_g24_mouse_ota_process_data:
 	jam G24_OTA_SM_RX_DATA,mem_g24_ota_sm
-
 	ifetch 1,contr
 	copy contr,rega
 	fetcht 1,mem_g24_ota_rx_data_count
@@ -1563,8 +1684,7 @@
 	call p_g24_mouse_data_sum	
 	fetch 2,mem_g24_ota_rx_sum
 	iadd temp,pdata
-	store 2,mem_g24_ota_rx_sum
-
+	store 2,mem_g24_ota_rx_sum	
 p_g24_mouse_ota_process_ok:	
 	jam G24_OTA_STATUS_SUCCESS,mem_g24_ota_rtn_state
 	rtn
@@ -1581,7 +1701,6 @@
 	iadd temp,pdata
 	copy regb,temp
 	branch iicd_write_ota_data 
-	
 
 p_g24_mouse_ota_process_reset:
 	fetch 1,mem_g24_ota_sm
@@ -1592,7 +1711,6 @@
 	jam G24_OTA_SM_RX_RESET,mem_g24_ota_sm
 	rtn
 	
-	
 p_g24_cmd_ota_data_check_count:
 	fetcht 1,mem_g24_ota_rx_data_count
 	store 1,mem_g24_ota_rx_data_count
@@ -1600,7 +1718,7 @@
 	isub temp,pdata
 	beq  1,enable_user	
 	branch disable_user
-	
+
 p_g24_cmd_ota_data_check_count_0:	
 	sub temp,0xff,null
 	branch enable_user,zero
@@ -1612,7 +1730,6 @@
 	loop p_g24_mouse_data_sum
 	rtn
 	
-
 //input loopcnt :len ; contr :data ptr 
 //ouput pdata :crc
 p_g24_mouse_ota_crc:
@@ -1634,7 +1751,6 @@
 	branch enable_user,zero
 	branch disable_user
 
-
 p_g24_mouse_ota_check_data:
 	ifetch 1,contr
 	bne 0x5a,p_g24_mouse_ota_load_fail
@@ -1662,9 +1778,8 @@
 	isub temp,null
 	nbranch p_g24_mouse_ota_load_fail,zero	
 p_g24_mouse_ota_load_success:
-	branch enable_user
+	branch enable_user	
 
-	
 p_g24_mouse_ota_load_fail:
 	branch disable_user
 
@@ -1687,7 +1802,6 @@
 	isub temp,pdata	
 	rtn
 
-
 p_ota_init:
 	setarg 0
 	store 2,mem_g24_ota_rx_alllen
@@ -1753,7 +1867,7 @@
 	jam TYPE_MS,mem_24g_data_type
 	jam G24_OTA_SM_TX_INFO,mem_g24_ota_sm
 	rtn	
-	
+
 p_dongle_usb_cmd_ota_info_dongle_empty:
 	setarg 0
 	branch p_dongle_usb_cmd_ota_info_dongle_common
@@ -1785,7 +1899,6 @@
 	setarg G24_OTA_STORAGE_FLASH
 	rtn
 	
-
 p_mouse_24g_package_ota_common_ok:
 	jam TYPE_MS,mem_24g_data_type
 	jam DATATYPE_OTA,mem_24g_txbuf
@@ -1800,10 +1913,8 @@
 	jam G24_OTA_TARGET_MOUSE,mem_24g_txbuf+3
 	rtn
 
-	
 p_mouse_24g_package_ota_data:
 	jam G24_OTA_SM_TX_DATA_OK,mem_g24_ota_sm
-	
 	jam G24_OTA_CMD_DATA,mem_24g_txbuf+1
 	fetch 1,mem_g24_ota_rx_data_count
 	store 1,mem_24g_txbuf+4	
@@ -1815,12 +1926,10 @@
 	jam G24_OTA_TARGET_MOUSE,mem_24g_txbuf+3
 	rtn
 
-
 p_mouse_24g_package_ota_set_config_end:
 	jam G24_OTA_SM_TX_SET_CONFIG_END_OK,mem_g24_ota_sm
 	jam G24_OTA_CMD_SET_CONFIG_END,mem_24g_txbuf+1
 	jam 4,mem_24g_datalen
-	
 	jam TYPE_MS,mem_24g_data_type
 	jam DATATYPE_OTA,mem_24g_txbuf
 	fetch 1,mem_g24_ota_rtn_state
@@ -1828,7 +1937,6 @@
 	jam G24_OTA_TARGET_MOUSE,mem_24g_txbuf+3
 	rtn
 
-	
 p_mouse_24g_package_ping:
 	jam DATATYPE_OTA,mem_24g_txbuf
 	jam G24_OTA_CMD_PING,mem_24g_txbuf+1
@@ -1839,7 +1947,7 @@
 	jam TYPE_MS,mem_24g_data_type
 	jam 4,mem_24g_datalen
 	rtn
-	
+
 p_mouse_24g_package_data_ota:
 	copy pdata,rega //length
 	jam 0,mem_g24_ota_prepare_send_len
@@ -1847,3 +1955,6 @@
 	arg mem_g24_ota_txbuf,regb //tx buff		
 	rtn
 
+///////////////////////////// 2.4g ota start ///////////////////////////////////////////////////////////	
+endif
+
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/sched/mouse.dat	(revision 1026)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/sched/mouse.dat	(working copy)
@@ -134,6 +134,7 @@
 mem_config_low_voltage_alarm_gpio:ff
 mem_config_device_bt2_led_gpio:ff
 mem_dpi_led_gpio:ff #03
+mem_firebutton_gpio:ff
 
 mem_sensor_angle_default:03	#00--6CLK   01--9CLK   02--12CLK   03--3CLK
 mem_sensor_angle_switch:00	#00--6CLK   01--9CLK   02--12CLK   03--3CLK
