Index: format/rom.format
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_public_sdk/format/rom.format	(revision 1900)
+++ /YC1308AC/branch/mouse_project/mouse_public_sdk/format/rom.format	(working copy)
@@ -9766,6 +9766,19 @@
 1 mem_sensor_s201_dpi_3
 1 mem_sensor_s201_dpi_4
 
+//rgb
+1 mem_rgb_led_off_enable
+1 mem_rgb_led_on_enable
+1 mem_rgb_led_off_enable_timer
+1 mem_rgb_led_on_enable_timer
+2 mem_rgb_led_on_timer
+
+2 mem_rgb_led_off_check_count
+2 mem_rgb_led_on_check_count
+1 mem_rgb_led_on_continue_1min_timeout_flag
+1 mem_mbutton_function_disable
+1 mem_mouse_rgb_ctrl_gpio
+
 )
 
 
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_public_sdk/output/eeprom.dat	(revision 1900)
+++ /YC1308AC/branch/mouse_project/mouse_public_sdk/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-be
+c6
 19
 c2
 84
@@ -79,7 +79,7 @@
 c0
 67
 86
-37
+39
 c0
 68
 03
@@ -87,7 +87,7 @@
 c0
 68
 85
-5c
+5e
 c0
 69
 83
@@ -95,7 +95,7 @@
 c0
 6a
 05
-3c
+3e
 c0
 6b
 02
@@ -115,7 +115,7 @@
 c0
 6f
 05
-cf
+d1
 c0
 6f
 80
@@ -195,7 +195,7 @@
 c0
 76
 86
-67
+69
 20
 20
 13
@@ -1275,7 +1275,7 @@
 20
 40
 05
-4e
+50
 20
 20
 3b
@@ -1939,7 +1939,7 @@
 20
 20
 05
-4e
+50
 20
 40
 26
@@ -2167,7 +2167,7 @@
 20
 20
 05
-e2
+e4
 6f
 e0
 c9
@@ -2291,11 +2291,11 @@
 20
 40
 05
-47
+49
 20
 40
 05
-4e
+50
 20
 20
 3e
@@ -2343,7 +2343,7 @@
 20
 40
 05
-8f
+91
 d8
 40
 00
@@ -2551,7 +2551,7 @@
 20
 40
 05
-8f
+91
 20
 20
 3e
@@ -3107,7 +3107,7 @@
 20
 40
 05
-4e
+50
 20
 20
 02
@@ -5327,7 +5327,7 @@
 20
 40
 05
-55
+57
 6f
 e0
 c8
@@ -5342,16 +5342,24 @@
 d0
 24
 34
-47
-28
+05
+39
 20
 40
 05
-39
+3b
 20
 20
 45
 44
+20
+40
+47
+28
+20
+60
+00
+00
 6f
 e0
 c9
@@ -5375,7 +5383,7 @@
 c0
 05
 85
-43
+45
 20
 40
 42
@@ -5395,7 +5403,7 @@
 20
 40
 05
-4a
+4c
 da
 60
 4b
@@ -5415,7 +5423,7 @@
 c0
 05
 85
-4a
+4c
 20
 20
 42
@@ -5451,7 +5459,7 @@
 c0
 05
 85
-53
+55
 20
 20
 42
@@ -5467,7 +5475,7 @@
 20
 40
 05
-95
+97
 6f
 e0
 cc
@@ -5475,7 +5483,7 @@
 24
 3a
 05
-ac
+ae
 6f
 e0
 cc
@@ -5483,11 +5491,11 @@
 24
 3a
 05
-ab
+ad
 20
 40
 05
-5c
+5e
 20
 20
 40
@@ -5507,27 +5515,27 @@
 20
 40
 05
-66
+68
 20
 40
 05
-6b
+6d
 20
 40
 05
-70
+72
 20
 40
 05
-75
+77
 20
 40
 05
-82
+84
 20
 40
 05
-95
+97
 20
 20
 41
@@ -5539,7 +5547,7 @@
 20
 40
 05
-8f
+91
 20
 40
 41
@@ -5559,7 +5567,7 @@
 20
 40
 05
-8f
+91
 20
 40
 41
@@ -5579,7 +5587,7 @@
 20
 40
 05
-8f
+91
 20
 40
 41
@@ -5623,7 +5631,7 @@
 c0
 7f
 85
-7e
+80
 20
 20
 41
@@ -5635,7 +5643,7 @@
 20
 40
 05
-92
+94
 68
 48
 c9
@@ -5675,7 +5683,7 @@
 c0
 7f
 85
-8b
+8d
 20
 20
 41
@@ -5687,7 +5695,7 @@
 20
 40
 05
-92
+94
 68
 48
 c9
@@ -5739,7 +5747,7 @@
 24
 3a
 05
-a2
+a4
 68
 48
 cc
@@ -5807,15 +5815,15 @@
 20
 20
 05
-9f
+a1
 c0
 02
 05
-c4
+c6
 20
 40
 05
-c7
+c9
 6f
 e2
 4c
@@ -5851,19 +5859,19 @@
 c0
 00
 05
-ba
+bc
 c0
 00
 85
-bd
+bf
 c0
 01
 05
-c0
+c2
 c0
 01
 85
-c2
+c4
 20
 60
 00
@@ -5899,7 +5907,7 @@
 20
 20
 05
-bb
+bd
 70
 4c
 32
@@ -5907,7 +5915,7 @@
 20
 20
 05
-be
+c0
 70
 4c
 32
@@ -5935,7 +5943,7 @@
 24
 41
 05
-cc
+ce
 20
 60
 00
@@ -5955,7 +5963,7 @@
 20
 40
 05
-d5
+d7
 20
 40
 79
@@ -5963,15 +5971,15 @@
 20
 40
 05
-e2
+e4
 20
 40
 05
-f6
+f8
 20
 40
 05
-d9
+db
 20
 20
 46
@@ -5999,11 +6007,11 @@
 c2
 94
 85
-dd
+df
 c2
 9b
 85
-dd
+df
 20
 60
 00
@@ -6015,7 +6023,7 @@
 c2
 83
 05
-e0
+e2
 20
 20
 46
@@ -6059,7 +6067,7 @@
 20
 40
 05
-eb
+ed
 20
 20
 40
@@ -6087,7 +6095,7 @@
 c0
 7f
 85
-f2
+f4
 20
 20
 40
@@ -6099,7 +6107,7 @@
 20
 40
 05
-92
+94
 68
 48
 c9
@@ -6122,8 +6130,8 @@
 3a
 24
 3a
-05
-ff
+06
+01
 6f
 e0
 cc
@@ -6131,11 +6139,11 @@
 20
 40
 05
-8f
+91
 20
 40
 06
-0f
+11
 68
 48
 cc
@@ -6159,7 +6167,7 @@
 20
 40
 05
-92
+94
 70
 4c
 3f
@@ -6175,11 +6183,11 @@
 20
 40
 06
-28
+2a
 20
 40
 06
-13
+15
 68
 48
 cc
@@ -6223,7 +6231,7 @@
 20
 40
 06
-1e
+20
 67
 e0
 cc
@@ -6235,7 +6243,7 @@
 20
 3a
 06
-1a
+1c
 6f
 e0
 cc
@@ -6299,11 +6307,11 @@
 c0
 03
 86
-33
+35
 c0
 00
 06
-35
+37
 20
 60
 00
@@ -6343,11 +6351,11 @@
 c0
 03
 86
-33
+35
 c0
 00
 06
-35
+37
 20
 60
 00
@@ -6391,7 +6399,7 @@
 c2
 9e
 86
-43
+45
 18
 42
 7e
@@ -6423,7 +6431,7 @@
 24
 3a
 06
-60
+62
 6f
 e4
 4b
@@ -6431,7 +6439,7 @@
 c2
 8e
 06
-54
+56
 18
 42
 7e
@@ -6443,11 +6451,11 @@
 c0
 00
 06
-50
+52
 c0
 01
 06
-4e
+50
 20
 60
 00
@@ -6459,7 +6467,7 @@
 20
 20
 06
-40
+42
 58
 00
 00
@@ -6467,7 +6475,7 @@
 20
 20
 06
-40
+42
 58
 00
 00
@@ -6475,7 +6483,7 @@
 20
 20
 06
-40
+42
 58
 00
 00
@@ -6483,7 +6491,7 @@
 20
 20
 06
-40
+42
 18
 42
 7e
@@ -6495,15 +6503,15 @@
 c0
 00
 06
-50
+52
 c0
 01
 06
-52
+54
 c0
 01
 86
-4e
+50
 20
 60
 00
@@ -6519,15 +6527,15 @@
 c0
 00
 06
-52
+54
 c0
 00
 86
-4e
+50
 c0
 01
 86
-4c
+4e
 20
 60
 00
@@ -6539,7 +6547,7 @@
 c2
 8e
 06
-5a
+5c
 18
 42
 7e
@@ -6551,11 +6559,11 @@
 c0
 00
 06
-4c
+4e
 c0
 00
 86
-4e
+50
 20
 60
 00
@@ -6592,8 +6600,8 @@
 20
 26
 f6
-89
-d4
+f1
+51
 aa
 55
 40
@@ -6817,6 +6825,13 @@
 ff
 aa
 55
+01
+00
+b4
+4c
+ff
+aa
+55
 03
 00
 24
@@ -7933,31 +7948,16 @@
 02
 40
 00
-0a
+19
 1f
 55
 aa
 aa
 55
-dc
-92
-c7
-0c
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+ea
+95
+19
+d2
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-9a
-82
+86
+5d
Index: output/flash.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_public_sdk/output/flash.dat	(revision 1900)
+++ /YC1308AC/branch/mouse_project/mouse_public_sdk/output/flash.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-be
+c6
 19
 c2
 84
@@ -79,7 +79,7 @@
 c0
 67
 86
-37
+39
 c0
 68
 03
@@ -87,7 +87,7 @@
 c0
 68
 85
-5c
+5e
 c0
 69
 83
@@ -95,7 +95,7 @@
 c0
 6a
 05
-3c
+3e
 c0
 6b
 02
@@ -115,7 +115,7 @@
 c0
 6f
 05
-cf
+d1
 c0
 6f
 80
@@ -195,7 +195,7 @@
 c0
 76
 86
-67
+69
 20
 20
 13
@@ -1275,7 +1275,7 @@
 20
 40
 05
-4e
+50
 20
 20
 3b
@@ -1939,7 +1939,7 @@
 20
 20
 05
-4e
+50
 20
 40
 26
@@ -2167,7 +2167,7 @@
 20
 20
 05
-e2
+e4
 6f
 e0
 c9
@@ -2291,11 +2291,11 @@
 20
 40
 05
-47
+49
 20
 40
 05
-4e
+50
 20
 20
 3e
@@ -2343,7 +2343,7 @@
 20
 40
 05
-8f
+91
 d8
 40
 00
@@ -2551,7 +2551,7 @@
 20
 40
 05
-8f
+91
 20
 20
 3e
@@ -3107,7 +3107,7 @@
 20
 40
 05
-4e
+50
 20
 20
 02
@@ -5327,7 +5327,7 @@
 20
 40
 05
-55
+57
 6f
 e0
 c8
@@ -5342,16 +5342,24 @@
 d0
 24
 34
-47
-28
+05
+39
 20
 40
 05
-39
+3b
 20
 20
 45
 44
+20
+40
+47
+28
+20
+60
+00
+00
 6f
 e0
 c9
@@ -5375,7 +5383,7 @@
 c0
 05
 85
-43
+45
 20
 40
 42
@@ -5395,7 +5403,7 @@
 20
 40
 05
-4a
+4c
 da
 60
 4b
@@ -5415,7 +5423,7 @@
 c0
 05
 85
-4a
+4c
 20
 20
 42
@@ -5451,7 +5459,7 @@
 c0
 05
 85
-53
+55
 20
 20
 42
@@ -5467,7 +5475,7 @@
 20
 40
 05
-95
+97
 6f
 e0
 cc
@@ -5475,7 +5483,7 @@
 24
 3a
 05
-ac
+ae
 6f
 e0
 cc
@@ -5483,11 +5491,11 @@
 24
 3a
 05
-ab
+ad
 20
 40
 05
-5c
+5e
 20
 20
 40
@@ -5507,27 +5515,27 @@
 20
 40
 05
-66
+68
 20
 40
 05
-6b
+6d
 20
 40
 05
-70
+72
 20
 40
 05
-75
+77
 20
 40
 05
-82
+84
 20
 40
 05
-95
+97
 20
 20
 41
@@ -5539,7 +5547,7 @@
 20
 40
 05
-8f
+91
 20
 40
 41
@@ -5559,7 +5567,7 @@
 20
 40
 05
-8f
+91
 20
 40
 41
@@ -5579,7 +5587,7 @@
 20
 40
 05
-8f
+91
 20
 40
 41
@@ -5623,7 +5631,7 @@
 c0
 7f
 85
-7e
+80
 20
 20
 41
@@ -5635,7 +5643,7 @@
 20
 40
 05
-92
+94
 68
 48
 c9
@@ -5675,7 +5683,7 @@
 c0
 7f
 85
-8b
+8d
 20
 20
 41
@@ -5687,7 +5695,7 @@
 20
 40
 05
-92
+94
 68
 48
 c9
@@ -5739,7 +5747,7 @@
 24
 3a
 05
-a2
+a4
 68
 48
 cc
@@ -5807,15 +5815,15 @@
 20
 20
 05
-9f
+a1
 c0
 02
 05
-c4
+c6
 20
 40
 05
-c7
+c9
 6f
 e2
 4c
@@ -5851,19 +5859,19 @@
 c0
 00
 05
-ba
+bc
 c0
 00
 85
-bd
+bf
 c0
 01
 05
-c0
+c2
 c0
 01
 85
-c2
+c4
 20
 60
 00
@@ -5899,7 +5907,7 @@
 20
 20
 05
-bb
+bd
 70
 4c
 32
@@ -5907,7 +5915,7 @@
 20
 20
 05
-be
+c0
 70
 4c
 32
@@ -5935,7 +5943,7 @@
 24
 41
 05
-cc
+ce
 20
 60
 00
@@ -5955,7 +5963,7 @@
 20
 40
 05
-d5
+d7
 20
 40
 79
@@ -5963,15 +5971,15 @@
 20
 40
 05
-e2
+e4
 20
 40
 05
-f6
+f8
 20
 40
 05
-d9
+db
 20
 20
 46
@@ -5999,11 +6007,11 @@
 c2
 94
 85
-dd
+df
 c2
 9b
 85
-dd
+df
 20
 60
 00
@@ -6015,7 +6023,7 @@
 c2
 83
 05
-e0
+e2
 20
 20
 46
@@ -6059,7 +6067,7 @@
 20
 40
 05
-eb
+ed
 20
 20
 40
@@ -6087,7 +6095,7 @@
 c0
 7f
 85
-f2
+f4
 20
 20
 40
@@ -6099,7 +6107,7 @@
 20
 40
 05
-92
+94
 68
 48
 c9
@@ -6122,8 +6130,8 @@
 3a
 24
 3a
-05
-ff
+06
+01
 6f
 e0
 cc
@@ -6131,11 +6139,11 @@
 20
 40
 05
-8f
+91
 20
 40
 06
-0f
+11
 68
 48
 cc
@@ -6159,7 +6167,7 @@
 20
 40
 05
-92
+94
 70
 4c
 3f
@@ -6175,11 +6183,11 @@
 20
 40
 06
-28
+2a
 20
 40
 06
-13
+15
 68
 48
 cc
@@ -6223,7 +6231,7 @@
 20
 40
 06
-1e
+20
 67
 e0
 cc
@@ -6235,7 +6243,7 @@
 20
 3a
 06
-1a
+1c
 6f
 e0
 cc
@@ -6299,11 +6307,11 @@
 c0
 03
 86
-33
+35
 c0
 00
 06
-35
+37
 20
 60
 00
@@ -6343,11 +6351,11 @@
 c0
 03
 86
-33
+35
 c0
 00
 06
-35
+37
 20
 60
 00
@@ -6391,7 +6399,7 @@
 c2
 9e
 86
-43
+45
 18
 42
 7e
@@ -6423,7 +6431,7 @@
 24
 3a
 06
-60
+62
 6f
 e4
 4b
@@ -6431,7 +6439,7 @@
 c2
 8e
 06
-54
+56
 18
 42
 7e
@@ -6443,11 +6451,11 @@
 c0
 00
 06
-50
+52
 c0
 01
 06
-4e
+50
 20
 60
 00
@@ -6459,7 +6467,7 @@
 20
 20
 06
-40
+42
 58
 00
 00
@@ -6467,7 +6475,7 @@
 20
 20
 06
-40
+42
 58
 00
 00
@@ -6475,7 +6483,7 @@
 20
 20
 06
-40
+42
 58
 00
 00
@@ -6483,7 +6491,7 @@
 20
 20
 06
-40
+42
 18
 42
 7e
@@ -6495,15 +6503,15 @@
 c0
 00
 06
-50
+52
 c0
 01
 06
-52
+54
 c0
 01
 86
-4e
+50
 20
 60
 00
@@ -6519,15 +6527,15 @@
 c0
 00
 06
-52
+54
 c0
 00
 86
-4e
+50
 c0
 01
 86
-4c
+4e
 20
 60
 00
@@ -6539,7 +6547,7 @@
 c2
 8e
 06
-5a
+5c
 18
 42
 7e
@@ -6551,11 +6559,11 @@
 c0
 00
 06
-4c
+4e
 c0
 00
 86
-4e
+50
 20
 60
 00
@@ -6592,8 +6600,8 @@
 20
 26
 f6
-89
-d4
+f1
+51
 aa
 55
 40
@@ -6817,6 +6825,13 @@
 ff
 aa
 55
+01
+00
+b4
+4c
+ff
+aa
+55
 03
 00
 24
@@ -7933,31 +7948,16 @@
 02
 40
 00
-0a
+19
 1f
 55
 aa
 aa
 55
-dc
-92
-c7
-0c
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+ea
+95
+19
+d2
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-9a
-82
+86
+5d
Index: output/memmap.format
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_public_sdk/output/memmap.format	(revision 1900)
+++ /YC1308AC/branch/mouse_project/mouse_public_sdk/output/memmap.format	(working copy)
@@ -2282,6 +2282,16 @@
 0x4ca5 mem_sensor_s201_dpi_2
 0x4ca6 mem_sensor_s201_dpi_3
 0x4ca7 mem_sensor_s201_dpi_4
+0x4ca8 mem_rgb_led_off_enable
+0x4ca9 mem_rgb_led_on_enable
+0x4caa mem_rgb_led_off_enable_timer
+0x4cab mem_rgb_led_on_enable_timer
+0x4cac mem_rgb_led_on_timer
+0x4cae mem_rgb_led_off_check_count
+0x4cb0 mem_rgb_led_on_check_count
+0x4cb2 mem_rgb_led_on_continue_1min_timeout_flag
+0x4cb3 mem_mbutton_function_disable
+0x4cb4 mem_mouse_rgb_ctrl_gpio
 0x48d0 mem_remote_car_hard_soft_switch
 0x48d1 mem_remote_car_queue_each_size
 0x48d2 mem_remote_car_queue_length
Index: output/otp.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_public_sdk/output/otp.dat	(revision 1900)
+++ /YC1308AC/branch/mouse_project/mouse_public_sdk/output/otp.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-be
+c6
 19
 c2
 84
@@ -79,7 +79,7 @@
 c0
 67
 86
-37
+39
 c0
 68
 03
@@ -87,7 +87,7 @@
 c0
 68
 85
-5c
+5e
 c0
 69
 83
@@ -95,7 +95,7 @@
 c0
 6a
 05
-3c
+3e
 c0
 6b
 02
@@ -115,7 +115,7 @@
 c0
 6f
 05
-cf
+d1
 c0
 6f
 80
@@ -195,7 +195,7 @@
 c0
 76
 86
-67
+69
 20
 20
 13
@@ -1275,7 +1275,7 @@
 20
 40
 05
-4e
+50
 20
 20
 3b
@@ -1939,7 +1939,7 @@
 20
 20
 05
-4e
+50
 20
 40
 26
@@ -2167,7 +2167,7 @@
 20
 20
 05
-e2
+e4
 6f
 e0
 c9
@@ -2291,11 +2291,11 @@
 20
 40
 05
-47
+49
 20
 40
 05
-4e
+50
 20
 20
 3e
@@ -2343,7 +2343,7 @@
 20
 40
 05
-8f
+91
 d8
 40
 00
@@ -2551,7 +2551,7 @@
 20
 40
 05
-8f
+91
 20
 20
 3e
@@ -3107,7 +3107,7 @@
 20
 40
 05
-4e
+50
 20
 20
 02
@@ -5327,7 +5327,7 @@
 20
 40
 05
-55
+57
 6f
 e0
 c8
@@ -5342,16 +5342,24 @@
 d0
 24
 34
-47
-28
+05
+39
 20
 40
 05
-39
+3b
 20
 20
 45
 44
+20
+40
+47
+28
+20
+60
+00
+00
 6f
 e0
 c9
@@ -5375,7 +5383,7 @@
 c0
 05
 85
-43
+45
 20
 40
 42
@@ -5395,7 +5403,7 @@
 20
 40
 05
-4a
+4c
 da
 60
 4b
@@ -5415,7 +5423,7 @@
 c0
 05
 85
-4a
+4c
 20
 20
 42
@@ -5451,7 +5459,7 @@
 c0
 05
 85
-53
+55
 20
 20
 42
@@ -5467,7 +5475,7 @@
 20
 40
 05
-95
+97
 6f
 e0
 cc
@@ -5475,7 +5483,7 @@
 24
 3a
 05
-ac
+ae
 6f
 e0
 cc
@@ -5483,11 +5491,11 @@
 24
 3a
 05
-ab
+ad
 20
 40
 05
-5c
+5e
 20
 20
 40
@@ -5507,27 +5515,27 @@
 20
 40
 05
-66
+68
 20
 40
 05
-6b
+6d
 20
 40
 05
-70
+72
 20
 40
 05
-75
+77
 20
 40
 05
-82
+84
 20
 40
 05
-95
+97
 20
 20
 41
@@ -5539,7 +5547,7 @@
 20
 40
 05
-8f
+91
 20
 40
 41
@@ -5559,7 +5567,7 @@
 20
 40
 05
-8f
+91
 20
 40
 41
@@ -5579,7 +5587,7 @@
 20
 40
 05
-8f
+91
 20
 40
 41
@@ -5623,7 +5631,7 @@
 c0
 7f
 85
-7e
+80
 20
 20
 41
@@ -5635,7 +5643,7 @@
 20
 40
 05
-92
+94
 68
 48
 c9
@@ -5675,7 +5683,7 @@
 c0
 7f
 85
-8b
+8d
 20
 20
 41
@@ -5687,7 +5695,7 @@
 20
 40
 05
-92
+94
 68
 48
 c9
@@ -5739,7 +5747,7 @@
 24
 3a
 05
-a2
+a4
 68
 48
 cc
@@ -5807,15 +5815,15 @@
 20
 20
 05
-9f
+a1
 c0
 02
 05
-c4
+c6
 20
 40
 05
-c7
+c9
 6f
 e2
 4c
@@ -5851,19 +5859,19 @@
 c0
 00
 05
-ba
+bc
 c0
 00
 85
-bd
+bf
 c0
 01
 05
-c0
+c2
 c0
 01
 85
-c2
+c4
 20
 60
 00
@@ -5899,7 +5907,7 @@
 20
 20
 05
-bb
+bd
 70
 4c
 32
@@ -5907,7 +5915,7 @@
 20
 20
 05
-be
+c0
 70
 4c
 32
@@ -5935,7 +5943,7 @@
 24
 41
 05
-cc
+ce
 20
 60
 00
@@ -5955,7 +5963,7 @@
 20
 40
 05
-d5
+d7
 20
 40
 79
@@ -5963,15 +5971,15 @@
 20
 40
 05
-e2
+e4
 20
 40
 05
-f6
+f8
 20
 40
 05
-d9
+db
 20
 20
 46
@@ -5999,11 +6007,11 @@
 c2
 94
 85
-dd
+df
 c2
 9b
 85
-dd
+df
 20
 60
 00
@@ -6015,7 +6023,7 @@
 c2
 83
 05
-e0
+e2
 20
 20
 46
@@ -6059,7 +6067,7 @@
 20
 40
 05
-eb
+ed
 20
 20
 40
@@ -6087,7 +6095,7 @@
 c0
 7f
 85
-f2
+f4
 20
 20
 40
@@ -6099,7 +6107,7 @@
 20
 40
 05
-92
+94
 68
 48
 c9
@@ -6122,8 +6130,8 @@
 3a
 24
 3a
-05
-ff
+06
+01
 6f
 e0
 cc
@@ -6131,11 +6139,11 @@
 20
 40
 05
-8f
+91
 20
 40
 06
-0f
+11
 68
 48
 cc
@@ -6159,7 +6167,7 @@
 20
 40
 05
-92
+94
 70
 4c
 3f
@@ -6175,11 +6183,11 @@
 20
 40
 06
-28
+2a
 20
 40
 06
-13
+15
 68
 48
 cc
@@ -6223,7 +6231,7 @@
 20
 40
 06
-1e
+20
 67
 e0
 cc
@@ -6235,7 +6243,7 @@
 20
 3a
 06
-1a
+1c
 6f
 e0
 cc
@@ -6299,11 +6307,11 @@
 c0
 03
 86
-33
+35
 c0
 00
 06
-35
+37
 20
 60
 00
@@ -6343,11 +6351,11 @@
 c0
 03
 86
-33
+35
 c0
 00
 06
-35
+37
 20
 60
 00
@@ -6391,7 +6399,7 @@
 c2
 9e
 86
-43
+45
 18
 42
 7e
@@ -6423,7 +6431,7 @@
 24
 3a
 06
-60
+62
 6f
 e4
 4b
@@ -6431,7 +6439,7 @@
 c2
 8e
 06
-54
+56
 18
 42
 7e
@@ -6443,11 +6451,11 @@
 c0
 00
 06
-50
+52
 c0
 01
 06
-4e
+50
 20
 60
 00
@@ -6459,7 +6467,7 @@
 20
 20
 06
-40
+42
 58
 00
 00
@@ -6467,7 +6475,7 @@
 20
 20
 06
-40
+42
 58
 00
 00
@@ -6475,7 +6483,7 @@
 20
 20
 06
-40
+42
 58
 00
 00
@@ -6483,7 +6491,7 @@
 20
 20
 06
-40
+42
 18
 42
 7e
@@ -6495,15 +6503,15 @@
 c0
 00
 06
-50
+52
 c0
 01
 06
-52
+54
 c0
 01
 86
-4e
+50
 20
 60
 00
@@ -6519,15 +6527,15 @@
 c0
 00
 06
-52
+54
 c0
 00
 86
-4e
+50
 c0
 01
 86
-4c
+4e
 20
 60
 00
@@ -6539,7 +6547,7 @@
 c2
 8e
 06
-5a
+5c
 18
 42
 7e
@@ -6551,11 +6559,11 @@
 c0
 00
 06
-4c
+4e
 c0
 00
 86
-4e
+50
 20
 60
 00
@@ -6592,8 +6600,8 @@
 20
 26
 f6
-89
-d4
+f1
+51
 aa
 55
 40
@@ -6817,6 +6825,13 @@
 ff
 aa
 55
+01
+00
+b4
+4c
+ff
+aa
+55
 03
 00
 24
@@ -7933,13 +7948,13 @@
 03
 01
 00
-0a
+19
 1f
 55
 aa
 aa
 55
-9e
-92
-69
-b4
+ac
+95
+7b
+ae
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_public_sdk/output/program.lis	(revision 1900)
+++ /YC1308AC/branch/mouse_project/mouse_public_sdk/output/program.lis	(working copy)
@@ -18,16 +18,16 @@
 000f c0650276 beq patch19_2 ,p_mouse_lpm_before_common 
 0010 c06600c8 beq patch19_4 ,p_mouse_adc_read_start 
 0011 c067052b beq patch19_6 ,p_mouse_motion 
-0012 c0678637 beq patch19_7 ,p_mouse_dpi_process 
+0012 c0678639 beq patch19_7 ,p_mouse_dpi_process 
 0013 c0680351 beq patch1a_0 ,p_mouse_seting_dpi 
-0014 c068855c beq patch1a_1 ,p_mouse_check_key_gpio 
+0014 c068855e beq patch1a_1 ,p_mouse_check_key_gpio 
 0015 c069836e beq patch1a_3 ,p_mouse_init_sunt 
-0016 c06a053c beq patch1a_4 ,p_mouse_sensor_poweron 
+0016 c06a053e beq patch1a_4 ,p_mouse_sensor_poweron 
 0017 c06b0298 beq patch1a_6 ,p_mouse_priority_bb_event 
 0018 c06c8396 beq patch1b_1 ,p_mouse_bb_event_timer 
 0019 c06d04b3 beq patch1b_2 ,p_mouse_start_discovery 
 001a c06d84bd beq patch1b_3 ,p_mouse_stop_discovery 
-001b c06f05cf beq patch1b_6 ,p_mouse_idle 
+001b c06f05d1 beq patch1b_6 ,p_mouse_idle 
 001c c06f8052 beq patch1b_7 ,p_mouse_ready_reconnection_by_button 
 001d c070804a beq patch1c_1 ,p_mouse_led_off 
 001e c0710046 beq patch1c_2 ,p_mouse_led_on 
@@ -49,7 +49,7 @@
 002c c0748311 beq patch3d_1 ,p_g24_reconn_dispatch 
 002d c07501e4 beq patch3d_2 ,p_g24_transmit_no_interrupt 
 002e c076051e beq patch3d_4 ,p_g24_lpm_wait 
-002f c0768667 beq patch3d_5 ,p_power_ctrl_start 
+002f c0768669 beq patch3d_5 ,p_power_ctrl_start 
 0030 2020137c branch loop 
 
 p_soft_reset:
@@ -413,7 +413,7 @@
 013a 20403d8a call mouse_usb_check_enable 
 013b 20404728 call mouse_drawing_optima_init 
 013c 20400196 call p_mouse_cb_fuction 
-013d 2040054e call p_mouse_sensor_powerdown 
+013d 20400550 call p_mouse_sensor_powerdown 
 013e 20203bc9 branch mouse_init + 8 
 
 p_mouse_double_dpi_judge:
@@ -629,7 +629,7 @@
 01e0 67e0cba4 store 1 ,mem_mouse_search_dongle_action 
 01e1 6fe14bbc fetch 2 ,mem_mouse_24g_search_dongle_time_init 
 01e2 67e14ab2 store 2 ,mem_mouse_no_data_timer 
-01e3 2020054e branch p_mouse_sensor_powerdown 
+01e3 20200550 branch p_mouse_sensor_powerdown 
 
 p_g24_transmit_no_interrupt:
 01e4 20402631 call g24_txdata_prep 
@@ -706,7 +706,7 @@
 p_mouse_dpi_check_once:
 021a 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
 021b c4140000 rtnbit0 mouse_enable_select_device_by_dpi_button 
-021c 202005e2 branch p_mouse_dpi_check 
+021c 202005e4 branch p_mouse_dpi_check 
 
 p_mouse_select_device_by_pb_button:
 021d 6fe0c91b fetch 1 ,mem_config_select_device_button_gpio 
@@ -751,8 +751,8 @@
 0238 58000006 setarg pan_reg_config 
 0239 20405b0d call twspi_read 
 023a c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
-023b 20400547 call p_mouse_sensor_reset 
-023c 2040054e call p_mouse_sensor_powerdown 
+023b 20400549 call p_mouse_sensor_reset 
+023c 20400550 call p_mouse_sensor_powerdown 
 023d 20203e23 branch mouse_app_enter_hibernate + 3 
 
 p_mouse_setgpio_hibernate:
@@ -766,7 +766,7 @@
 0245 6848c910 fetcht 1 ,mem_matrix_public_gpio 
 0246 20406042 call gpio_clr_wake 
 0247 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-0248 2040058f call p_mouse_gpio_config_output_high 
+0248 20400591 call p_mouse_gpio_config_output_high 
 0249 d8400003 arg 3 ,temp 
 024a 20403f56 call mouse_gpio_config_input_pu 
 024b 20400276 call p_mouse_lpm_before_common 
@@ -834,7 +834,7 @@
 0279 20406050 call gpio_config_input 
 027a 20403f88 call mouse_wheel_check 
 027b 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-027c 2040058f call p_mouse_gpio_config_output_high 
+027c 20400591 call p_mouse_gpio_config_output_high 
 027d 20203e44 branch mouse_lpm_before_common + 4 
 
 p_g24_nodata_transmit:
@@ -1008,6 +1008,8 @@
 02ff c31e4839 bbit0 mouse_enable_wheel_wake_up_cancel ,mouse_24g_attempt_fail_enter_hibernate 
 
 p_mouse_24g_hibernate_set:
+
+p_mouse_24g_hibernate_set_next:
 0300 7048a500 jam 0 ,mem_24g_attempt_fail_flag 
 0301 20402652 call g24_transmit_next_packet 
 0302 5fffffff setarg -1 
@@ -1015,7 +1017,7 @@
 0304 58000000 setarg 0 
 0305 67e3c8d0 store 7 ,mem_mouse_key 
 0306 704be101 jam 1 ,mem_sensor_shutdown_flag 
-0307 2040054e call p_mouse_sensor_powerdown 
+0307 20400550 call p_mouse_sensor_powerdown 
 0308 20200283 branch p_g24_long_sleep 
 
 p_g24_pair_dispatch:
@@ -1804,461 +1806,465 @@
 052f 20400353 call p_mouse_seting_sensor_type 
 0530 20403f7e call mouse_zwheel 
 0531 20403f83 call mouse_t_zwheel 
-0532 20400555 call p_mouse_key 
+0532 20400557 call p_mouse_key 
 0533 6fe0c8d0 fetch 1 ,mem_mouse_key 
 0534 1fe17e1f and_into 0x1f ,pdata 
 0535 67e0c8d0 store 1 ,mem_mouse_key 
-0536 24344728 nbranch mouse_drawing_optima_init ,user 
-0537 20400539 call p_mouse_drawing_optima 
+0536 24340539 nbranch p_mouse_motion_nodata ,user 
+0537 2040053b call p_mouse_drawing_optima 
 0538 20204544 branch mouse_no_data_timer_init 
 
+p_mouse_motion_nodata:
+0539 20404728 call mouse_drawing_optima_init 
+053a 20600000 rtn 
+
 p_mouse_drawing_optima:
-0539 6fe0c927 fetch 1 ,mem_config_sensor_type 
-053a c1018000 rtneq p3212 
-053b 2020471a branch mouse_drawing_optima 
+053b 6fe0c927 fetch 1 ,mem_config_sensor_type 
+053c c1018000 rtneq p3212 
+053d 2020471a branch mouse_drawing_optima 
 
 p_mouse_sensor_poweron:
-053c 20403f65 call mouse_sensor_spi_init 
-053d 6fe0c927 fetch 1 ,mem_config_sensor_type 
-053e c0058543 beq ka8g2 ,p_mouse_ka8g2_sensor_init 
-053f 20404232 call mouse_sensor_reset 
-0540 da604aa3 arg mem_sensor_poweron_init ,regc 
-0541 2040422b call mouse_sensor_wr_seq 
-0542 2020408e branch mouse_dpi_config 
+053e 20403f65 call mouse_sensor_spi_init 
+053f 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0540 c0058545 beq ka8g2 ,p_mouse_ka8g2_sensor_init 
+0541 20404232 call mouse_sensor_reset 
+0542 da604aa3 arg mem_sensor_poweron_init ,regc 
+0543 2040422b call mouse_sensor_wr_seq 
+0544 2020408e branch mouse_dpi_config 
 
 p_mouse_ka8g2_sensor_init:
-0543 2040054a call p_mouse_ka8g2_sensor_reset 
-0544 da604be3 arg mem_ka8g2_sensor_poweron_init ,regc 
-0545 2040422b call mouse_sensor_wr_seq 
-0546 2020408e branch mouse_dpi_config 
+0545 2040054c call p_mouse_ka8g2_sensor_reset 
+0546 da604be3 arg mem_ka8g2_sensor_poweron_init ,regc 
+0547 2040422b call mouse_sensor_wr_seq 
+0548 2020408e branch mouse_dpi_config 
 
 p_mouse_sensor_reset:
-0547 6fe0c927 fetch 1 ,mem_config_sensor_type 
-0548 c005854a beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
-0549 20204232 branch mouse_sensor_reset 
+0549 6fe0c927 fetch 1 ,mem_config_sensor_type 
+054a c005854c beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
+054b 20204232 branch mouse_sensor_reset 
 
 p_mouse_ka8g2_sensor_reset:
-054a 58009706 setarg 0x9706 
-054b 20405b0c call twspi_write 
-054c 20002ee0 nop 12000 
-054d 20600000 rtn 
+054c 58009706 setarg 0x9706 
+054d 20405b0c call twspi_write 
+054e 20002ee0 nop 12000 
+054f 20600000 rtn 
 
 p_mouse_sensor_powerdown:
-054e 204041a7 call mouse_init_sunt 
-054f 20403f65 call mouse_sensor_spi_init 
-0550 6fe0c927 fetch 1 ,mem_config_sensor_type 
-0551 c0058553 beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
-0552 2020423e branch mouse_sensor_powerdown_end 
+0550 204041a7 call mouse_init_sunt 
+0551 20403f65 call mouse_sensor_spi_init 
+0552 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0553 c0058555 beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
+0554 2020423e branch mouse_sensor_powerdown_end 
 
 p_mouse_ka8g2_sensor_powerdown:
-0553 58001f06 setarg 0x1f06 
-0554 20205b0c branch twspi_write 
+0555 58001f06 setarg 0x1f06 
+0556 20205b0c branch twspi_write 
 
 p_mouse_key:
-0555 20400595 call p_mouse_check_firekey_gpio 
-0556 6fe0cc37 fetch 1 ,mem_fire_key_flag 
-0557 243a05ac nbranch p_fire_key_press ,blank 
-0558 6fe0cc32 fetch 1 ,mem_fire_key_status 
-0559 243a05ab nbranch p_fire_key_process ,blank 
-055a 2040055c call p_mouse_check_key_gpio 
-055b 202040dd branch mouse_key + 1 
+0557 20400597 call p_mouse_check_firekey_gpio 
+0558 6fe0cc37 fetch 1 ,mem_fire_key_flag 
+0559 243a05ae nbranch p_fire_key_press ,blank 
+055a 6fe0cc32 fetch 1 ,mem_fire_key_status 
+055b 243a05ad nbranch p_fire_key_process ,blank 
+055c 2040055e call p_mouse_check_key_gpio 
+055d 202040dd branch mouse_key + 1 
 
 p_mouse_check_key_gpio:
-055c 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-055d 245a4121 ncall mouse_check_key_gpio_once ,blank 
-055e da200000 arg 0 ,rega 
-055f 20400566 call p_mouse_check_lkey_gpio 
-0560 2040056b call p_mouse_check_rkey_gpio 
-0561 20400570 call p_mouse_check_mkey_gpio 
-0562 20400575 call p_mouse_check_bkkey_gpio 
-0563 20400582 call p_mouse_check_fwkey_gpio 
-0564 20400595 call p_mouse_check_firekey_gpio 
-0565 2020411e branch mouse_check_key_gpio_next 
+055e 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+055f 245a4121 ncall mouse_check_key_gpio_once ,blank 
+0560 da200000 arg 0 ,rega 
+0561 20400568 call p_mouse_check_lkey_gpio 
+0562 2040056d call p_mouse_check_rkey_gpio 
+0563 20400572 call p_mouse_check_mkey_gpio 
+0564 20400577 call p_mouse_check_bkkey_gpio 
+0565 20400584 call p_mouse_check_fwkey_gpio 
+0566 20400597 call p_mouse_check_firekey_gpio 
+0567 2020411e branch mouse_check_key_gpio_next 
 
 p_mouse_check_lkey_gpio:
-0566 6fe0c918 fetch 1 ,mem_lbutton_gpio 
-0567 2040058f call p_mouse_gpio_config_output_high 
-0568 20404124 call mouse_check_lkey_gpio 
-0569 6848c918 fetcht 1 ,mem_lbutton_gpio 
-056a 20203f56 branch mouse_gpio_config_input_pu 
+0568 6fe0c918 fetch 1 ,mem_lbutton_gpio 
+0569 20400591 call p_mouse_gpio_config_output_high 
+056a 20404124 call mouse_check_lkey_gpio 
+056b 6848c918 fetcht 1 ,mem_lbutton_gpio 
+056c 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_rkey_gpio:
-056b 6fe0c919 fetch 1 ,mem_rbutton_gpio 
-056c 2040058f call p_mouse_gpio_config_output_high 
-056d 2040412a call mouse_check_rkey_gpio 
-056e 6848c919 fetcht 1 ,mem_rbutton_gpio 
-056f 20203f56 branch mouse_gpio_config_input_pu 
+056d 6fe0c919 fetch 1 ,mem_rbutton_gpio 
+056e 20400591 call p_mouse_gpio_config_output_high 
+056f 2040412a call mouse_check_rkey_gpio 
+0570 6848c919 fetcht 1 ,mem_rbutton_gpio 
+0571 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_mkey_gpio:
-0570 6fe0c91a fetch 1 ,mem_mbutton_gpio 
-0571 2040058f call p_mouse_gpio_config_output_high 
-0572 20404130 call mouse_check_mkey_gpio 
-0573 6848c91a fetcht 1 ,mem_mbutton_gpio 
-0574 20203f56 branch mouse_gpio_config_input_pu 
+0572 6fe0c91a fetch 1 ,mem_mbutton_gpio 
+0573 20400591 call p_mouse_gpio_config_output_high 
+0574 20404130 call mouse_check_mkey_gpio 
+0575 6848c91a fetcht 1 ,mem_mbutton_gpio 
+0576 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_bkkey_gpio:
-0575 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-0576 c17f8000 rtneq gpio_disable 
-0577 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
-0578 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
-0579 1fe22600 copy pdata ,regc 
-057a 6848c90d fetcht 1 ,mem_bk_button_gpio 
-057b 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-057c c07f857e beq gpio_disable ,p_mouse_3io6key_bk_check 
-057d 2020413e branch mouse_check_bkkey_gpio_next 
+0577 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+0578 c17f8000 rtneq gpio_disable 
+0579 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
+057a 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
+057b 1fe22600 copy pdata ,regc 
+057c 6848c90d fetcht 1 ,mem_bk_button_gpio 
+057d 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+057e c07f8580 beq gpio_disable ,p_mouse_3io6key_bk_check 
+057f 2020413e branch mouse_check_bkkey_gpio_next 
 
 p_mouse_3io6key_bk_check:
-057e 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-057f 20400592 call p_mouse_gpio_config_output_low 
-0580 6848c90d fetcht 1 ,mem_bk_button_gpio 
-0581 2020414b branch mouse_3io6key_bk_check 
+0580 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+0581 20400594 call p_mouse_gpio_config_output_low 
+0582 6848c90d fetcht 1 ,mem_bk_button_gpio 
+0583 2020414b branch mouse_3io6key_bk_check 
 
 p_mouse_check_fwkey_gpio:
-0582 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-0583 c17f8000 rtneq gpio_disable 
-0584 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
-0585 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
-0586 1fe22600 copy pdata ,regc 
-0587 6848c90e fetcht 1 ,mem_fw_button_gpio 
-0588 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-0589 c07f858b beq gpio_disable ,p_mouse_3io6key_fw_check 
-058a 20204157 branch mouse_check_fwkey_gpio_next 
+0584 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+0585 c17f8000 rtneq gpio_disable 
+0586 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
+0587 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
+0588 1fe22600 copy pdata ,regc 
+0589 6848c90e fetcht 1 ,mem_fw_button_gpio 
+058a 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+058b c07f858d beq gpio_disable ,p_mouse_3io6key_fw_check 
+058c 20204157 branch mouse_check_fwkey_gpio_next 
 
 p_mouse_3io6key_fw_check:
-058b 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-058c 20400592 call p_mouse_gpio_config_output_low 
-058d 6848c90e fetcht 1 ,mem_fw_button_gpio 
-058e 20204164 branch mouse_3io6key_fw_check 
+058d 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+058e 20400594 call p_mouse_gpio_config_output_low 
+058f 6848c90e fetcht 1 ,mem_fw_button_gpio 
+0590 20204164 branch mouse_3io6key_fw_check 
 
 p_mouse_gpio_config_output_high:
-058f c17f8000 rtneq gpio_disable 
-0590 d840003f arg gpcfg_output_high ,temp 
-0591 20206093 branch gpio_config_function_int 
+0591 c17f8000 rtneq gpio_disable 
+0592 d840003f arg gpcfg_output_high ,temp 
+0593 20206093 branch gpio_config_function_int 
 
 p_mouse_gpio_config_output_low:
-0592 c17f8000 rtneq gpio_disable 
-0593 d840003e arg gpcfg_output_low ,temp 
-0594 20206093 branch gpio_config_function_int 
+0594 c17f8000 rtneq gpio_disable 
+0595 d840003e arg gpcfg_output_low ,temp 
+0596 20206093 branch gpio_config_function_int 
 
 p_mouse_check_firekey_gpio:
-0595 da400000 arg 0 ,regb 
-0596 6fe0cc38 fetch 1 ,mem_firebutton_gpio 
-0597 c17f8000 rtneq gpio_disable 
-0598 6fe0cc39 fetch 1 ,mem_mouse_firebutton_connect_vin_flag 
-0599 243a05a2 nbranch p_mouse_check_firekey_connect_vin ,blank 
+0597 da400000 arg 0 ,regb 
+0598 6fe0cc38 fetch 1 ,mem_firebutton_gpio 
+0599 c17f8000 rtneq gpio_disable 
+059a 6fe0cc39 fetch 1 ,mem_mouse_firebutton_connect_vin_flag 
+059b 243a05a4 nbranch p_mouse_check_firekey_connect_vin ,blank 
 
 p_mouse_check_firekey_connect_gnd:
-059a 6848cc38 fetcht 1 ,mem_firebutton_gpio 
-059b 20403f56 call mouse_gpio_config_input_pu 
 059c 6848cc38 fetcht 1 ,mem_firebutton_gpio 
-059d 20406059 call gpio_get_bit 
-059e 7920a400 setflag true ,0 ,regb 
+059d 20403f56 call mouse_gpio_config_input_pu 
+059e 6848cc38 fetcht 1 ,mem_firebutton_gpio 
+059f 20406059 call gpio_get_bit 
+05a0 7920a400 setflag true ,0 ,regb 
 
 p_mouse_firekey_state_store:
-059f 1a427e00 copy regb ,pdata 
-05a0 67e0cc37 store 1 ,mem_fire_key_flag 
-05a1 20600000 rtn 
+05a1 1a427e00 copy regb ,pdata 
+05a2 67e0cc37 store 1 ,mem_fire_key_flag 
+05a3 20600000 rtn 
 
 p_mouse_check_firekey_connect_vin:
-05a2 6fe0cc38 fetch 1 ,mem_firebutton_gpio 
-05a3 793ffe07 set0 gpio_active_bit ,pdata 
-05a4 67e0cc38 store 1 ,mem_firebutton_gpio 
-05a5 6848cc38 fetcht 1 ,mem_firebutton_gpio 
-05a6 20403f54 call mouse_gpio_config_input_pd 
+05a4 6fe0cc38 fetch 1 ,mem_firebutton_gpio 
+05a5 793ffe07 set0 gpio_active_bit ,pdata 
+05a6 67e0cc38 store 1 ,mem_firebutton_gpio 
 05a7 6848cc38 fetcht 1 ,mem_firebutton_gpio 
-05a8 20406059 call gpio_get_bit 
-05a9 7d20a400 nsetflag true ,0 ,regb 
-05aa 2020059f branch p_mouse_firekey_state_store 
+05a8 20403f54 call mouse_gpio_config_input_pd 
+05a9 6848cc38 fetcht 1 ,mem_firebutton_gpio 
+05aa 20406059 call gpio_get_bit 
+05ab 7d20a400 nsetflag true ,0 ,regb 
+05ac 202005a1 branch p_mouse_firekey_state_store 
 
 p_fire_key_process:
-05ab c00205c4 beq 4 ,p_fire_key_process_end 
+05ad c00205c6 beq 4 ,p_fire_key_process_end 
 
 p_fire_key_press:
-05ac 204005c7 call p_firekey_clkn_bt_timer_check 
-05ad 6fe24c33 fetch 4 ,mem_fire_key_delay 
-05ae d84000a0 arg 0xa0 ,temp 
-05af 98408400 iadd temp ,temp 
-05b0 1c427e00 copy clkn_bt ,pdata 
-05b1 98467c00 isub temp ,null 
-05b2 24610000 nrtn positive 
-05b3 67e24c33 store 4 ,mem_fire_key_delay 
-05b4 6fe0cc32 fetch 1 ,mem_fire_key_status 
-05b5 c00005ba beq 0 ,p_fire_key_process_start 
-05b6 c00085bd beq 1 ,p_fire_key_process_release1 
-05b7 c00105c0 beq 2 ,p_fire_key_process_start2 
-05b8 c00185c2 beq 3 ,p_fire_key_process_release2 
-05b9 20600000 rtn 
+05ae 204005c9 call p_firekey_clkn_bt_timer_check 
+05af 6fe24c33 fetch 4 ,mem_fire_key_delay 
+05b0 d84000a0 arg 0xa0 ,temp 
+05b1 98408400 iadd temp ,temp 
+05b2 1c427e00 copy clkn_bt ,pdata 
+05b3 98467c00 isub temp ,null 
+05b4 24610000 nrtn positive 
+05b5 67e24c33 store 4 ,mem_fire_key_delay 
+05b6 6fe0cc32 fetch 1 ,mem_fire_key_status 
+05b7 c00005bc beq 0 ,p_fire_key_process_start 
+05b8 c00085bf beq 1 ,p_fire_key_process_release1 
+05b9 c00105c2 beq 2 ,p_fire_key_process_start2 
+05ba c00185c4 beq 3 ,p_fire_key_process_release2 
+05bb 20600000 rtn 
 
 p_fire_key_process_start:
-05ba 704c3201 jam 1 ,mem_fire_key_status 
+05bc 704c3201 jam 1 ,mem_fire_key_status 
 
 p_fire_key_down:
-05bb 7048d001 jam 1 ,mem_mouse_key 
-05bc 20207e54 branch enable_user 
+05bd 7048d001 jam 1 ,mem_mouse_key 
+05be 20207e54 branch enable_user 
 
 p_fire_key_process_release1:
-05bd 704c3202 jam 2 ,mem_fire_key_status 
+05bf 704c3202 jam 2 ,mem_fire_key_status 
 
 p_fire_key_release:
-05be 7048d000 jam 0 ,mem_mouse_key 
-05bf 20207e54 branch enable_user 
+05c0 7048d000 jam 0 ,mem_mouse_key 
+05c1 20207e54 branch enable_user 
 
 p_fire_key_process_start2:
-05c0 704c3203 jam 3 ,mem_fire_key_status 
-05c1 202005bb branch p_fire_key_down 
+05c2 704c3203 jam 3 ,mem_fire_key_status 
+05c3 202005bd branch p_fire_key_down 
 
 p_fire_key_process_release2:
-05c2 704c3200 jam 0 ,mem_fire_key_status 
-05c3 202005be branch p_fire_key_release 
+05c4 704c3200 jam 0 ,mem_fire_key_status 
+05c5 202005c0 branch p_fire_key_release 
 
 p_fire_key_process_end:
-05c4 704c3200 jam 0 ,mem_fire_key_status 
-05c5 7048d000 jam 0 ,mem_mouse_key 
-05c6 20600000 rtn 
+05c6 704c3200 jam 0 ,mem_fire_key_status 
+05c7 7048d000 jam 0 ,mem_mouse_key 
+05c8 20600000 rtn 
 
 p_firekey_clkn_bt_timer_check:
-05c7 684a4c33 fetcht 4 ,mem_fire_key_delay 
-05c8 1c427e00 copy clkn_bt ,pdata 
-05c9 98467c00 isub temp ,null 
-05ca 244105cc ncall p_firekey_clkn_bt_timer_timeout ,positive 
-05cb 20600000 rtn 
+05c9 684a4c33 fetcht 4 ,mem_fire_key_delay 
+05ca 1c427e00 copy clkn_bt ,pdata 
+05cb 98467c00 isub temp ,null 
+05cc 244105ce ncall p_firekey_clkn_bt_timer_timeout ,positive 
+05cd 20600000 rtn 
 
 p_firekey_clkn_bt_timer_timeout:
-05cc 58000000 setarg 0 
-05cd 67e24c33 store 4 ,mem_fire_key_delay 
-05ce 20600000 rtn 
+05ce 58000000 setarg 0 
+05cf 67e24c33 store 4 ,mem_fire_key_delay 
+05d0 20600000 rtn 
 
 p_mouse_idle:
-05cf 204005d5 call p_mouse_low_voltage_led_no_enter_lpm 
-05d0 20407936 call ui_check_paring_button 
-05d1 204005e2 call p_mouse_dpi_check 
-05d2 204005f6 call p_mouse_dpi_another_gpio_check 
-05d3 204005d9 call p_mouse_select_device_check 
-05d4 20204650 branch mouse_idle + 5 
+05d1 204005d7 call p_mouse_low_voltage_led_no_enter_lpm 
+05d2 20407936 call ui_check_paring_button 
+05d3 204005e4 call p_mouse_dpi_check 
+05d4 204005f8 call p_mouse_dpi_another_gpio_check 
+05d5 204005db call p_mouse_select_device_check 
+05d6 20204650 branch mouse_idle + 5 
 
 p_mouse_low_voltage_led_no_enter_lpm:
-05d5 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
-05d6 c301c990 bbit0 mouse_enable_low_led ,mouse_low_voltage_led_no_enter_lpm 
+05d7 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+05d8 c301c990 bbit0 mouse_enable_low_led ,mouse_low_voltage_led_no_enter_lpm 
 
 p_mouse_low_voltage_led_no_enter_lpm_next:
-05d7 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-05d8 20204992 branch mouse_low_voltage_led_no_enter_lpm + 2 
+05d9 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05da 20204992 branch mouse_low_voltage_led_no_enter_lpm + 2 
 
 p_mouse_select_device_check:
-05d9 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-05da c29485dd bbit1 mouse_enable_select_device_by_pb_button ,p_mouse_select_device_by_pb_button_check_judge 
-05db c29b85dd bbit1 mouse_enable_pb_button_long_press_disconvery ,p_mouse_select_device_by_pb_button_check_judge 
-05dc 20600000 rtn 
+05db 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05dc c29485df bbit1 mouse_enable_select_device_by_pb_button ,p_mouse_select_device_by_pb_button_check_judge 
+05dd c29b85df bbit1 mouse_enable_pb_button_long_press_disconvery ,p_mouse_select_device_by_pb_button_check_judge 
+05de 20600000 rtn 
 
 p_mouse_select_device_by_pb_button_check_judge:
-05dd 6fe1478c fetch 2 ,mem_ui_state_map 
-05de c28305e0 bbit1 ui_state_bt_discovery ,p_mouse_select_device_by_pb_button_check_once 
-05df 2020465a branch mouse_select_device_by_pb_button 
+05df 6fe1478c fetch 2 ,mem_ui_state_map 
+05e0 c28305e2 bbit1 ui_state_bt_discovery ,p_mouse_select_device_by_pb_button_check_once 
+05e1 2020465a branch mouse_select_device_by_pb_button 
 
 p_mouse_select_device_by_pb_button_check_once:
-05e0 704b9403 jam 0x03 ,mem_mouse_pbkey_press_status 
-05e1 2020021d branch p_mouse_select_device_by_pb_button 
+05e2 704b9403 jam 0x03 ,mem_mouse_pbkey_press_status 
+05e3 2020021d branch p_mouse_select_device_by_pb_button 
 
 p_mouse_dpi_check:
-05e2 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-05e3 c2974036 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
-05e4 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-05e5 c17f8000 rtneq gpio_disable 
-05e6 da200000 arg 0 ,rega 
-05e7 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
-05e8 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-05e9 204005eb call p_mouse_dpi_key_check 
-05ea 2020402f branch mouse_dpi_check_next 
+05e4 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05e5 c2974036 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
+05e6 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+05e7 c17f8000 rtneq gpio_disable 
+05e8 da200000 arg 0 ,rega 
+05e9 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
+05ea 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+05eb 204005ed call p_mouse_dpi_key_check 
+05ec 2020402f branch mouse_dpi_check_next 
 
 p_mouse_dpi_key_check:
-05eb 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-05ec c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
-05ed 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
-05ee 1fe22600 copy pdata ,regc 
-05ef 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-05f0 c07f85f2 beq gpio_disable ,p_mouse_3io6key_dpi_check 
-05f1 2020403f branch mouse_dpi_key_check_next 
+05ed 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05ee c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
+05ef 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
+05f0 1fe22600 copy pdata ,regc 
+05f1 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+05f2 c07f85f4 beq gpio_disable ,p_mouse_3io6key_dpi_check 
+05f3 2020403f branch mouse_dpi_key_check_next 
 
 p_mouse_3io6key_dpi_check:
-05f2 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-05f3 20400592 call p_mouse_gpio_config_output_low 
-05f4 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-05f5 20204195 branch mouse_3io6key_check 
+05f4 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+05f5 20400594 call p_mouse_gpio_config_output_low 
+05f6 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+05f7 20204195 branch mouse_3io6key_check 
 
 p_mouse_dpi_another_gpio_check:
-05f6 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-05f7 c41e8000 rtnbit0 mouse_enable_double_dpi_key 
-05f8 6fe0cc3a fetch 1 ,mem_mouse_another_dpi_connect_vin_flag 
-05f9 243a05ff nbranch p_mouse_dpi_another_gpio_connect_vin_check ,blank 
+05f8 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+05f9 c41e8000 rtnbit0 mouse_enable_double_dpi_key 
+05fa 6fe0cc3a fetch 1 ,mem_mouse_another_dpi_connect_vin_flag 
+05fb 243a0601 nbranch p_mouse_dpi_another_gpio_connect_vin_check ,blank 
 
 p_mouse_dpi_another_gpio_connect_gnd_check:
-05fa 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-05fb 2040058f call p_mouse_gpio_config_output_high 
-05fc 2040060f call p_mouse_dpi_another_check 
-05fd 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-05fe 20203f56 branch mouse_gpio_config_input_pu 
+05fc 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+05fd 20400591 call p_mouse_gpio_config_output_high 
+05fe 20400611 call p_mouse_dpi_another_check 
+05ff 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+0600 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_dpi_another_gpio_connect_vin_check:
-05ff 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-0600 793ffe07 set0 gpio_active_bit ,pdata 
-0601 67e0cc3b store 1 ,mem_dpi_another_button_gpio 
-0602 20400592 call p_mouse_gpio_config_output_low 
-0603 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
-0604 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-0605 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
-0606 20400628 call p_mouse_check_key_connect_vin_new 
-0607 20400613 call p_mouse_dpi_another_state_check 
-0608 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-0609 20203f56 branch mouse_gpio_config_input_pu 
+0601 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+0602 793ffe07 set0 gpio_active_bit ,pdata 
+0603 67e0cc3b store 1 ,mem_dpi_another_button_gpio 
+0604 20400594 call p_mouse_gpio_config_output_low 
+0605 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
+0606 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+0607 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
+0608 2040062a call p_mouse_check_key_connect_vin_new 
+0609 20400615 call p_mouse_dpi_another_state_check 
+060a 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+060b 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_dpi_another_down_new:
-060a 20403f56 call mouse_gpio_config_input_pu 
-060b 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-060c c1008000 rtneq dpi_button_state_down 
-060d 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
-060e 20204069 branch mouse_dpi_process 
+060c 20403f56 call mouse_gpio_config_input_pu 
+060d 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+060e c1008000 rtneq dpi_button_state_down 
+060f 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
+0610 20204069 branch mouse_dpi_process 
 
 p_mouse_dpi_another_check:
-060f 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
-0610 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-0611 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
-0612 2040061e call p_mouse_check_key_connect_gnd_new 
+0611 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
+0612 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+0613 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
+0614 20400620 call p_mouse_check_key_connect_gnd_new 
 
 p_mouse_dpi_another_state_check:
-0613 67e0cc3c store 1 ,mem_dpi_another_press_status 
-0614 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
-0615 203a061a branch p_mouse_dpi_another_up ,blank 
+0615 67e0cc3c store 1 ,mem_dpi_another_press_status 
+0616 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
+0617 203a061c branch p_mouse_dpi_another_up ,blank 
 
 p_mouse_dpi_another_down:
-0616 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-0617 c1008000 rtneq dpi_button_state_down 
-0618 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
-0619 20204069 branch mouse_dpi_process 
+0618 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+0619 c1008000 rtneq dpi_button_state_down 
+061a 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
+061b 20204069 branch mouse_dpi_process 
 
 p_mouse_dpi_another_up:
-061a 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-061b c1000000 rtneq dpi_button_state_up 
-061c 704c3d00 jam dpi_button_state_up ,mem_dpi_another_button_state 
-061d 20600000 rtn 
+061c 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+061d c1000000 rtneq dpi_button_state_up 
+061e 704c3d00 jam dpi_button_state_up ,mem_dpi_another_button_state 
+061f 20600000 rtn 
 
 p_mouse_check_key_connect_gnd_new:
-061e 1fe3fe00 lshift pdata ,pdata 
-061f 1fe22400 copy pdata ,regb 
-0620 20406059 call gpio_get_bit 
-0621 7920a400 setflag true ,0 ,regb 
-0622 1a417e07 and regb ,0x07 ,pdata 
-0623 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
-0624 18420e00 copy temp ,queue 
-0625 c0038633 beq 0x07 ,p_mouse_key_press 
-0626 c0000635 beq 0x00 ,p_mouse_key_release 
-0627 20600000 rtn 
+0620 1fe3fe00 lshift pdata ,pdata 
+0621 1fe22400 copy pdata ,regb 
+0622 20406059 call gpio_get_bit 
+0623 7920a400 setflag true ,0 ,regb 
+0624 1a417e07 and regb ,0x07 ,pdata 
+0625 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
+0626 18420e00 copy temp ,queue 
+0627 c0038635 beq 0x07 ,p_mouse_key_press 
+0628 c0000637 beq 0x00 ,p_mouse_key_release 
+0629 20600000 rtn 
 
 p_mouse_check_key_connect_vin_new:
-0628 1fe3fe00 lshift pdata ,pdata 
-0629 1fe22400 copy pdata ,regb 
-062a 20403f54 call mouse_gpio_config_input_pd 
-062b 20406059 call gpio_get_bit 
-062c 7920a400 setflag true ,0 ,regb 
-062d 1a417e07 and regb ,0x07 ,pdata 
-062e 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
-062f 18420e00 copy temp ,queue 
-0630 c0038633 beq 0x07 ,p_mouse_key_press 
-0631 c0000635 beq 0x00 ,p_mouse_key_release 
-0632 20600000 rtn 
+062a 1fe3fe00 lshift pdata ,pdata 
+062b 1fe22400 copy pdata ,regb 
+062c 20403f54 call mouse_gpio_config_input_pd 
+062d 20406059 call gpio_get_bit 
+062e 7920a400 setflag true ,0 ,regb 
+062f 1a417e07 and regb ,0x07 ,pdata 
+0630 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
+0631 18420e00 copy temp ,queue 
+0632 c0038635 beq 0x07 ,p_mouse_key_press 
+0633 c0000637 beq 0x00 ,p_mouse_key_release 
+0634 20600000 rtn 
 
 p_mouse_key_press:
-0633 704c3e01 jam 1 ,mem_dpi_another_button_down_enable 
-0634 20600000 rtn 
+0635 704c3e01 jam 1 ,mem_dpi_another_button_down_enable 
+0636 20600000 rtn 
 
 p_mouse_key_release:
-0635 704c3e00 jam 0 ,mem_dpi_another_button_down_enable 
-0636 20600000 rtn 
+0637 704c3e00 jam 0 ,mem_dpi_another_button_down_enable 
+0638 20600000 rtn 
 
 p_mouse_dpi_process:
-0637 20404072 call mouse_dpi_ghost_check 
-0638 20740000 rtn user 
-0639 6fe0c992 fetch 1 ,mem_mouse_dpi 
-063a 1fe20400 copy pdata ,temp 
-063b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-063c c29e8643 bbit1 mouse_enable_double_dpi_key ,p_mouse_double_dpi_check 
-063d 18427e00 copy temp ,pdata 
-063e 1fe0fe01 increase 1 ,pdata 
-063f 1fe17e03 and pdata ,0x03 ,pdata 
+0639 20404072 call mouse_dpi_ghost_check 
+063a 20740000 rtn user 
+063b 6fe0c992 fetch 1 ,mem_mouse_dpi 
+063c 1fe20400 copy pdata ,temp 
+063d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+063e c29e8645 bbit1 mouse_enable_double_dpi_key ,p_mouse_double_dpi_check 
+063f 18427e00 copy temp ,pdata 
+0640 1fe0fe01 increase 1 ,pdata 
+0641 1fe17e03 and pdata ,0x03 ,pdata 
 
 p_mouse_dpi_store:
-0640 67e0c992 store 1 ,mem_mouse_dpi 
-0641 20400351 call p_mouse_seting_dpi 
-0642 202045ee branch mouse_store_device_info_delay 
+0642 67e0c992 store 1 ,mem_mouse_dpi 
+0643 20400351 call p_mouse_seting_dpi 
+0644 202045ee branch mouse_store_device_info_delay 
 
 p_mouse_double_dpi_check:
-0643 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
-0644 243a0660 nbranch p_mouse_another_dpi_button_down ,blank 
+0645 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
+0646 243a0662 nbranch p_mouse_another_dpi_button_down ,blank 
 
 p_mouse_dpi_increase:
-0645 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0646 c28e0654 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_increase_level_4 
-0647 18427e00 copy temp ,pdata 
-0648 c1008000 rtneq mouse_dpi_level2 
+0647 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0648 c28e0656 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_increase_level_4 
+0649 18427e00 copy temp ,pdata 
+064a c1008000 rtneq mouse_dpi_level2 
 
 p_mouse_dpi_increase_level:
-0649 c0000650 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
-064a c001064e beq mouse_dpi_level3 ,p_mouse_dpi_level_2 
-064b 20600000 rtn 
+064b c0000652 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
+064c c0010650 beq mouse_dpi_level3 ,p_mouse_dpi_level_2 
+064d 20600000 rtn 
 
 p_mouse_dpi_level_1:
-064c 58000002 setarg 2 
-064d 20200640 branch p_mouse_dpi_store 
+064e 58000002 setarg 2 
+064f 20200642 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_2:
-064e 58000000 setarg 0 
-064f 20200640 branch p_mouse_dpi_store 
+0650 58000000 setarg 0 
+0651 20200642 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_3:
-0650 58000001 setarg 1 
-0651 20200640 branch p_mouse_dpi_store 
+0652 58000001 setarg 1 
+0653 20200642 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_4:
-0652 58000003 setarg 3 
-0653 20200640 branch p_mouse_dpi_store 
+0654 58000003 setarg 3 
+0655 20200642 branch p_mouse_dpi_store 
 
 p_mouse_dpi_increase_level_4:
-0654 18427e00 copy temp ,pdata 
-0655 c1008000 rtneq mouse_dpi_level2 
-0656 c0000650 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
-0657 c0010652 beq mouse_dpi_level3 ,p_mouse_dpi_level_4 
-0658 c001864e beq mouse_dpi_level4 ,p_mouse_dpi_level_2 
-0659 20600000 rtn 
+0656 18427e00 copy temp ,pdata 
+0657 c1008000 rtneq mouse_dpi_level2 
+0658 c0000652 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
+0659 c0010654 beq mouse_dpi_level3 ,p_mouse_dpi_level_4 
+065a c0018650 beq mouse_dpi_level4 ,p_mouse_dpi_level_2 
+065b 20600000 rtn 
 
 p_mouse_dpi_decrease_level_4:
-065a 18427e00 copy temp ,pdata 
-065b c1010000 rtneq mouse_dpi_level3 
-065c c0000652 beq mouse_dpi_level1 ,p_mouse_dpi_level_4 
-065d c000864e beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
-065e c001864c beq mouse_dpi_level4 ,p_mouse_dpi_level_1 
-065f 20600000 rtn 
+065c 18427e00 copy temp ,pdata 
+065d c1010000 rtneq mouse_dpi_level3 
+065e c0000654 beq mouse_dpi_level1 ,p_mouse_dpi_level_4 
+065f c0008650 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
+0660 c001864e beq mouse_dpi_level4 ,p_mouse_dpi_level_1 
+0661 20600000 rtn 
 
 p_mouse_another_dpi_button_down:
 
 p_mouse_dpi_decrease:
-0660 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0661 c28e065a bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_decrease_level_4 
-0662 18427e00 copy temp ,pdata 
-0663 c1010000 rtneq mouse_dpi_level3 
+0662 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0663 c28e065c bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_decrease_level_4 
+0664 18427e00 copy temp ,pdata 
+0665 c1010000 rtneq mouse_dpi_level3 
 
 p_mouse_dpi_decrease_level:
-0664 c000064c beq mouse_dpi_level1 ,p_mouse_dpi_level_1 
-0665 c000864e beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
-0666 20600000 rtn 
+0666 c000064e beq mouse_dpi_level1 ,p_mouse_dpi_level_1 
+0667 c0008650 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
+0668 20600000 rtn 
 
 p_power_ctrl_start:
-0667 6fe1478c fetch 2 ,mem_ui_state_map 
-0668 c3858000 rtnbit1 ui_state_ble_adv 
-0669 c3838000 rtnbit1 ui_state_bt_reconnect 
-066a c3830000 rtnbit1 ui_state_bt_discovery 
-066b 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
-066c 204025cb call rssi_average 
-066d 6048c8c7 storet 1 ,mem_rssi_avg_received 
-066e 202026f6 branch power_ctrl_rssi_avg_compare 
+0669 6fe1478c fetch 2 ,mem_ui_state_map 
+066a c3858000 rtnbit1 ui_state_ble_adv 
+066b c3838000 rtnbit1 ui_state_bt_reconnect 
+066c c3830000 rtnbit1 ui_state_bt_discovery 
+066d 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
+066e 204025cb call rssi_average 
+066f 6048c8c7 storet 1 ,mem_rssi_avg_received 
+0670 202026f6 branch power_ctrl_rssi_avg_compare 
               org 0x3bc1
 
 mouse_init:
Index: output/ramcode.rom
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_public_sdk/output/ramcode.rom	(revision 1900)
+++ /YC1308AC/branch/mouse_project/mouse_public_sdk/output/ramcode.rom	(working copy)
@@ -16,16 +16,16 @@
 c0650276
 c06600c8
 c067052b
-c0678637
+c0678639
 c0680351
-c068855c
+c068855e
 c069836e
-c06a053c
+c06a053e
 c06b0298
 c06c8396
 c06d04b3
 c06d84bd
-c06f05cf
+c06f05d1
 c06f8052
 c070804a
 c0710046
@@ -45,7 +45,7 @@
 c0748311
 c07501e4
 c076051e
-c0768667
+c0768669
 2020137c
 20800000
 204030f3
@@ -315,7 +315,7 @@
 20403d8a
 20404728
 20400196
-2040054e
+20400550
 20203bc9
 6fe44bab
 c41e8000
@@ -481,7 +481,7 @@
 67e0cba4
 6fe14bbc
 67e14ab2
-2020054e
+20200550
 20402631
 2434027e
 204001f4
@@ -538,7 +538,7 @@
 20207d66
 6fe44bab
 c4140000
-202005e2
+202005e4
 6fe0c91b
 c17f8000
 da200000
@@ -569,8 +569,8 @@
 58000006
 20405b0d
 c281be23
-20400547
-2040054e
+20400549
+20400550
 20203e23
 204042e9
 20407fdc
@@ -582,7 +582,7 @@
 6848c910
 20406042
 6fe0c920
-2040058f
+20400591
 d8400003
 20403f56
 20400276
@@ -634,7 +634,7 @@
 20406050
 20403f88
 6fe0c91f
-2040058f
+20400591
 20203e44
 6fe0c8a7
 205a028a
@@ -773,7 +773,7 @@
 58000000
 67e3c8d0
 704be101
-2040054e
+20400550
 20200283
 70488b00
 6fe14beb
@@ -1328,29 +1328,31 @@
 20400353
 20403f7e
 20403f83
-20400555
+20400557
 6fe0c8d0
 1fe17e1f
 67e0c8d0
-24344728
-20400539
+24340539
+2040053b
 20204544
+20404728
+20600000
 6fe0c927
 c1018000
 2020471a
 20403f65
 6fe0c927
-c0058543
+c0058545
 20404232
 da604aa3
 2040422b
 2020408e
-2040054a
+2040054c
 da604be3
 2040422b
 2020408e
 6fe0c927
-c005854a
+c005854c
 20204232
 58009706
 20405b0c
@@ -1359,39 +1361,39 @@
 204041a7
 20403f65
 6fe0c927
-c0058553
+c0058555
 2020423e
 58001f06
 20205b0c
-20400595
+20400597
 6fe0cc37
-243a05ac
+243a05ae
 6fe0cc32
-243a05ab
-2040055c
+243a05ad
+2040055e
 202040dd
 6fe0cbe1
 245a4121
 da200000
-20400566
-2040056b
-20400570
-20400575
-20400582
-20400595
+20400568
+2040056d
+20400572
+20400577
+20400584
+20400597
 2020411e
 6fe0c918
-2040058f
+20400591
 20404124
 6848c918
 20203f56
 6fe0c919
-2040058f
+20400591
 2040412a
 6848c919
 20203f56
 6fe0c91a
-2040058f
+20400591
 20404130
 6848c91a
 20203f56
@@ -1402,10 +1404,10 @@
 1fe22600
 6848c90d
 6fe0c910
-c07f857e
+c07f8580
 2020413e
 6fe0c90d
-20400592
+20400594
 6848c90d
 2020414b
 6fe0c90e
@@ -1415,10 +1417,10 @@
 1fe22600
 6848c90e
 6fe0c910
-c07f858b
+c07f858d
 20204157
 6fe0c90e
-20400592
+20400594
 6848c90e
 20204164
 c17f8000
@@ -1431,7 +1433,7 @@
 6fe0cc38
 c17f8000
 6fe0cc39
-243a05a2
+243a05a4
 6848cc38
 20403f56
 6848cc38
@@ -1448,9 +1450,9 @@
 6848cc38
 20406059
 7d20a400
-2020059f
-c00205c4
-204005c7
+202005a1
+c00205c6
+204005c9
 6fe24c33
 d84000a0
 98408400
@@ -1459,10 +1461,10 @@
 24610000
 67e24c33
 6fe0cc32
-c00005ba
-c00085bd
-c00105c0
-c00185c2
+c00005bc
+c00085bf
+c00105c2
+c00185c4
 20600000
 704c3201
 7048d001
@@ -1471,36 +1473,36 @@
 7048d000
 20207e54
 704c3203
-202005bb
+202005bd
 704c3200
-202005be
+202005c0
 704c3200
 7048d000
 20600000
 684a4c33
 1c427e00
 98467c00
-244105cc
+244105ce
 20600000
 58000000
 67e24c33
 20600000
-204005d5
+204005d7
 20407936
-204005e2
-204005f6
-204005d9
+204005e4
+204005f8
+204005db
 20204650
 6fe0cc40
 c301c990
 6fe44bab
 20204992
 6fe44bab
-c29485dd
-c29b85dd
+c29485df
+c29b85df
 20600000
 6fe1478c
-c28305e0
+c28305e2
 2020465a
 704b9403
 2020021d
@@ -1511,37 +1513,37 @@
 da200000
 704b9605
 6848c90f
-204005eb
+204005ed
 2020402f
 6fe44bab
 c2964048
 6fe0cb93
 1fe22600
 6fe0c910
-c07f85f2
+c07f85f4
 2020403f
 6fe0c90f
-20400592
+20400594
 6848c90f
 20204195
 6fe44bab
 c41e8000
 6fe0cc3a
-243a05ff
+243a0601
 6fe0cc3b
-2040058f
-2040060f
+20400591
+20400611
 6848cc3b
 20203f56
 6fe0cc3b
 793ffe07
 67e0cc3b
-20400592
+20400594
 704c3f00
 6848cc3b
 6fe0cc3c
-20400628
-20400613
+2040062a
+20400615
 6848cc3b
 20203f56
 20403f56
@@ -1552,10 +1554,10 @@
 704c3f00
 6848cc3b
 6fe0cc3c
-2040061e
+20400620
 67e0cc3c
 6fe0cc3e
-203a061a
+203a061c
 6fe0cc3d
 c1008000
 704c3d01
@@ -1571,8 +1573,8 @@
 1a417e07
 6848cc3f
 18420e00
-c0038633
-c0000635
+c0038635
+c0000637
 20600000
 1fe3fe00
 1fe22400
@@ -1582,8 +1584,8 @@
 1a417e07
 6848cc3f
 18420e00
-c0038633
-c0000635
+c0038635
+c0000637
 20600000
 704c3e01
 20600000
@@ -1594,7 +1596,7 @@
 6fe0c992
 1fe20400
 6fe44bab
-c29e8643
+c29e8645
 18427e00
 1fe0fe01
 1fe17e03
@@ -1602,40 +1604,40 @@
 20400351
 202045ee
 6fe0cc3e
-243a0660
+243a0662
 6fe44bab
-c28e0654
+c28e0656
 18427e00
 c1008000
-c0000650
-c001064e
+c0000652
+c0010650
 20600000
 58000002
-20200640
+20200642
 58000000
-20200640
+20200642
 58000001
-20200640
+20200642
 58000003
-20200640
+20200642
 18427e00
 c1008000
-c0000650
-c0010652
-c001864e
+c0000652
+c0010654
+c0018650
 20600000
 18427e00
 c1010000
-c0000652
-c000864e
-c001864c
+c0000654
+c0008650
+c001864e
 20600000
 6fe44bab
-c28e065a
+c28e065c
 18427e00
 c1010000
-c000064c
-c000864e
+c000064e
+c0008650
 20600000
 6fe1478c
 c3858000
Index: output/sched.rom
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_public_sdk/output/sched.rom	(revision 1900)
+++ /YC1308AC/branch/mouse_project/mouse_public_sdk/output/sched.rom	(working copy)
@@ -213,6 +213,7 @@
 mem_dpi_led_gpio:ff #03
 mem_firebutton_gpio:ff
 
+mem_mouse_rgb_ctrl_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
 mem_config_sensor_dpi:00		#00--1200   01--1600
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_public_sdk/program/patch.prog	(revision 1900)
+++ /YC1308AC/branch/mouse_project/mouse_public_sdk/program/patch.prog	(working copy)
@@ -6,6 +6,8 @@
 define DOUBLE_DPI_KEY
 define LOGO_LED
 define S201X_SENSOR
+//define RGB_LED
+//define RGB_LED_MKEY
 
 
 	bbit1 8,pf_patch_ext
@@ -1070,6 +1072,12 @@
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
 	bbit0 MOUSE_ENABLE_WHEEL_WAKE_UP_CANCEL,mouse_24g_attempt_fail_enter_hibernate
 p_mouse_24g_hibernate_set:
+ifdef RGB_LED
+	set0 mark_24g,mark
+	jam 0,mem_rgb_led_on_continue_1min_timeout_flag
+	branch p_mouse_rgb_led_off_time_init
+else
+p_mouse_24g_hibernate_set_next:
 	jam 0,mem_24g_attempt_fail_flag
 	call g24_transmit_next_packet
 	setarg -1
@@ -1079,7 +1087,7 @@
 	jam 1,mem_sensor_shutdown_flag
 	call p_mouse_sensor_powerdown
 	branch p_g24_long_sleep
-	
+endif
 p_g24_pair_dispatch:
 	jam DEFAULT_24G_DEVICE,mem_24g_reconn_type
 	fetch 2,mem_24g_pair_count
@@ -1145,6 +1153,10 @@
 	branch g24_pair_init_param
 
 p_g24_dispatch:
+ifdef RGB_LED
+	fetch 1,mem_sensor_shutdown_flag
+	ncall p_mouse_enable_g24_mark,blank
+endif
 	bmark1 mark_24g_rxmode,g24_receive_dispatch
 p_g24_transmit_dispatch:
 	rtnmark0 mark_24g
@@ -1154,6 +1166,18 @@
 endif
 	branch g24_transmit_dispatch+2
 
+ifdef RGB_LED
+p_mouse_enable_g24_mark:
+	jam ON,mem_rgb_led_on_enable
+	call p_mouse_rgb_led_on_enable_timer_init
+	set1 mark_24g,mark
+	rtn
+p_mouse_rgb_led_on_enable_timer_init:	
+	jam OFF,mem_rgb_led_off_enable	//gpio ouput active 1s enable rgb led
+	jam 11,mem_rgb_led_on_enable_timer
+	rtn
+endif
+
 p_mouse_start_work:
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
 	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_first_start_auto_pair_mode
@@ -1297,7 +1321,11 @@
 	call mouse_device_poweron_timer
 	call p_mouse_dpi_led_blink_delay_timer
 	call p_mouse_led_multi_timer
-
+ifdef RGB_LED
+	call p_mouse_rgb_led_off_enable_timer
+	call p_mouse_rgb_led_on_enable_timer
+	call p_mouse_rgb_led_on_timer
+endif
 	call mouse_dpi_key_check_long_press
 	call mouse_bt_discovery_check
 	call p_mouse_commbination_key_process
@@ -1332,6 +1360,81 @@
 	arg soft_reset_chip,regb
 	branch timer_single_step	
 
+ifdef RGB_LED
+/**************************rgb led start************************/
+/*********************
+****rgb on--mbutton output active 1s****
+****rgb off--mbutton output active 3s****
+**********************/
+p_mouse_rgb_led_off_enable_timer:
+	fetch 1,mem_rgb_led_off_enable
+	rtn blank
+	arg mem_rgb_led_off_enable_timer,regc
+	arg p_mouse_rgb_led_off_timeout,regb
+	branch timer_single_step
+
+p_mouse_rgb_led_off_timeout:
+	call p_mouse_mbutton_function_enable
+	fetch 1,mem_rgb_led_on_continue_1min_timeout_flag
+	nrtn blank
+	jam 0,mem_rgb_led_on_continue_1min_timeout_flag
+	branch p_mouse_24g_hibernate_set_next
+	
+p_mouse_rgb_led_off_time_init:
+	jam 0x1e,mem_rgb_led_off_enable_timer
+	jam ON,mem_rgb_led_off_enable
+p_mouse_mbutton_function_disable:
+ifdef RGB_LED_MKEY
+	jam ON,mem_mbutton_function_disable
+endif
+	fetcht 1,mem_mouse_rgb_ctrl_gpio
+	call gpio_config_output
+	fetcht 1,mem_mouse_rgb_ctrl_gpio
+	branch gpio_out_active
+
+p_mouse_rgb_led_on_enable_timer:
+	fetch 1,mem_rgb_led_off_enable
+	nrtn blank
+	fetch 1,mem_rgb_led_on_enable_timer
+	rtn blank
+	beq 1,p_mouse_rgb_led_enable_timeout
+	increase -1,pdata
+	store 1,mem_rgb_led_on_enable_timer
+	branch p_mouse_mbutton_function_disable
+
+p_mouse_rgb_led_enable_timeout:
+	jam 0,mem_rgb_led_on_enable_timer
+p_mouse_mbutton_function_enable:
+ifdef RGB_LED_MKEY
+	jam OFF,mem_mbutton_function_disable
+endif
+	fetcht 1,mem_mouse_rgb_ctrl_gpio
+	call gpio_out_inactive
+	nop 12000
+	fetcht 1,mem_mouse_rgb_ctrl_gpio
+	branch mouse_gpio_config_input_pu
+
+p_mouse_rgb_led_on_timer:
+	fetch 1,mem_rgb_led_on_enable
+	nrtn blank
+	fetch 1,mem_rgb_led_off_enable
+	nrtn blank
+p_mouse_rgb_led_on:
+	fetch 2,mem_rgb_led_on_timer
+	increase 1,pdata
+	store 2,mem_rgb_led_on_timer
+	arg 0x0258,temp	//1min
+	isub temp,null
+	call p_mouse_rgb_led_on_continue_1min,zero
+	rtn
+
+p_mouse_rgb_led_on_continue_1min:
+	jam 1,mem_rgb_led_on_continue_1min_timeout_flag
+	call p_mouse_rgb_led_on_timer_init
+	branch p_mouse_rgb_led_off_time_init
+
+endif
+
 //================led multi start===================//
 
 //===multi led parm init===//
@@ -1873,15 +1976,53 @@
 	fetch 1,mem_mouse_key
 	and_into 0x1f,pdata
 	store 1,mem_mouse_key
-	nbranch mouse_drawing_optima_init,user
+	nbranch p_mouse_motion_nodata,user
 	call p_mouse_drawing_optima
+ifdef RGB_LED
+	call p_mouse_rgb_led_on_check
+endif
 	branch mouse_no_data_timer_init
 
+p_mouse_motion_nodata:	
+	call mouse_drawing_optima_init
+ifdef RGB_LED
+	fetch 2,mem_rgb_led_off_check_count
+	increase 1,pdata
+	store 2,mem_rgb_led_off_check_count
+	arg 0x0258,temp
+	isub temp,null
+	nrtn zero
+	setarg 0
+	store 2,mem_rgb_led_off_check_count
+	jam OFF,mem_rgb_led_on_enable
+endif
+	rtn
+
 p_mouse_drawing_optima:
 	fetch 1,mem_config_sensor_type
 	rtneq P3212
 	branch mouse_drawing_optima
 
+ifdef RGB_LED
+p_mouse_rgb_led_on_check:
+	fetch 2,mem_rgb_led_on_check_count
+	increase 1,pdata
+	store 2,mem_rgb_led_on_check_count
+	arg 0x0258,temp
+	isub temp,null
+	nrtn zero
+	setarg 0
+	store 2,mem_rgb_led_on_check_count
+	fetch 1,mem_rgb_led_on_enable
+	rtneq ON
+	jam ON,mem_rgb_led_on_enable
+	jam OFF,mem_rgb_led_off_enable
+	jam 11,mem_rgb_led_on_enable_timer
+p_mouse_rgb_led_on_timer_init:
+	setarg 0
+	store 2,mem_rgb_led_on_timer
+	rtn
+endif
 p_mouse_sensor_poweron:
 	call mouse_sensor_spi_init
 	fetch 1,mem_config_sensor_type
@@ -1958,6 +2099,10 @@
 	fetcht 1,mem_rbutton_gpio
 	branch mouse_gpio_config_input_pu
 p_mouse_check_mkey_gpio:
+ifdef RGB_LED_MKEY
+	fetch 1,mem_mbutton_function_disable
+	nrtn blank
+endif
 	fetch 1,mem_mbutton_gpio
 	call p_mouse_gpio_config_output_high
 	call mouse_check_mkey_gpio
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_public_sdk/sched/mouse.dat	(revision 1900)
+++ /YC1308AC/branch/mouse_project/mouse_public_sdk/sched/mouse.dat	(working copy)
@@ -146,6 +146,7 @@
 mem_dpi_led_gpio:ff #03
 mem_firebutton_gpio:ff
 
+mem_mouse_rgb_ctrl_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
 mem_config_sensor_dpi:00		#00--1200   01--1600
