Index: format/app_mouse.format
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Multimode/SlideSwitch_3mode_PC-60_8670/format/app_mouse.format	(revision 5330)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Multimode/SlideSwitch_3mode_PC-60_8670/format/app_mouse.format	(working copy)
@@ -386,7 +386,7 @@
 64 mem_le_tx_buffer2_omemalloc_new
 64 mem_le_tx_buffer3_omemalloc_new
 
-42 mem_sensor_sg8670_init
+46 mem_sensor_sg8670_init
 16 mem_sensor_sg8670_dpi_1
 16 mem_sensor_sg8670_dpi_2
 16 mem_sensor_sg8670_dpi_3
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Multimode/SlideSwitch_3mode_PC-60_8670/output/eeprom.dat	(revision 5330)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Multimode/SlideSwitch_3mode_PC-60_8670/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-7a
+7e
 15
 c2
 84
@@ -67,7 +67,7 @@
 c0
 67
 85
-2e
+2f
 c0
 68
 02
@@ -75,7 +75,7 @@
 c0
 68
 84
-4a
+4b
 c0
 69
 82
@@ -83,7 +83,7 @@
 c0
 6a
 04
-29
+2a
 c0
 6b
 01
@@ -103,7 +103,7 @@
 c0
 6f
 04
-bd
+be
 c0
 74
 03
@@ -679,7 +679,7 @@
 20
 40
 04
-3b
+3c
 6f
 e0
 c9
@@ -1227,7 +1227,7 @@
 20
 20
 04
-3b
+3c
 20
 40
 26
@@ -1459,11 +1459,11 @@
 20
 40
 04
-34
+35
 20
 40
 04
-3b
+3c
 20
 20
 3e
@@ -1775,7 +1775,7 @@
 20
 40
 04
-3b
+3c
 20
 20
 01
@@ -2707,7 +2707,7 @@
 da
 60
 4d
-78
+7c
 20
 20
 42
@@ -2715,7 +2715,7 @@
 da
 60
 4d
-88
+8c
 20
 20
 42
@@ -2723,7 +2723,7 @@
 da
 60
 4d
-98
+9c
 20
 20
 42
@@ -2731,7 +2731,7 @@
 da
 60
 4d
-a8
+ac
 20
 20
 42
@@ -4091,7 +4091,7 @@
 20
 40
 04
-43
+44
 6f
 e0
 c8
@@ -4199,11 +4199,11 @@
 67
 e1
 4d
-b8
+bc
 6f
 e0
 cd
-b9
+bd
 1f
 e6
 7c
@@ -4215,7 +4215,7 @@
 6f
 e1
 4d
-b8
+bc
 20
 60
 00
@@ -4227,7 +4227,7 @@
 67
 e1
 4d
-b8
+bc
 20
 60
 00
@@ -4260,6 +4260,10 @@
 01
 80
 00
+c1
+06
+00
+00
 20
 20
 47
@@ -4275,7 +4279,7 @@
 c0
 05
 84
-30
+31
 20
 40
 42
@@ -4295,7 +4299,7 @@
 20
 40
 04
-37
+38
 da
 60
 4b
@@ -4315,7 +4319,7 @@
 c0
 05
 84
-37
+38
 20
 20
 42
@@ -4351,7 +4355,7 @@
 c0
 05
 84
-41
+42
 58
 00
 08
@@ -4371,7 +4375,7 @@
 20
 40
 04
-81
+82
 6f
 e0
 cc
@@ -4379,7 +4383,7 @@
 24
 3a
 04
-98
+99
 6f
 e0
 cc
@@ -4387,11 +4391,11 @@
 24
 3a
 04
-97
+98
 20
 40
 04
-4a
+4b
 20
 20
 40
@@ -4411,27 +4415,27 @@
 20
 40
 04
-54
+55
 20
 40
 04
-59
+5a
 20
 40
 04
-5e
+5f
 20
 40
 04
-63
+64
 20
 40
 04
-70
+71
 20
 40
 04
-81
+82
 20
 20
 41
@@ -4443,7 +4447,7 @@
 20
 40
 04
-7d
+7e
 20
 40
 41
@@ -4463,7 +4467,7 @@
 20
 40
 04
-7d
+7e
 20
 40
 41
@@ -4483,7 +4487,7 @@
 20
 40
 04
-7d
+7e
 20
 40
 41
@@ -4527,7 +4531,7 @@
 c0
 7f
 84
-6c
+6d
 20
 20
 41
@@ -4539,7 +4543,7 @@
 20
 40
 04
-7f
+80
 68
 48
 c9
@@ -4579,7 +4583,7 @@
 c0
 7f
 84
-79
+7a
 20
 20
 41
@@ -4591,7 +4595,7 @@
 20
 40
 04
-7f
+80
 68
 48
 c9
@@ -4635,7 +4639,7 @@
 24
 3a
 04
-8e
+8f
 68
 48
 cc
@@ -4703,15 +4707,15 @@
 20
 20
 04
-8b
+8c
 c0
 02
 04
-b2
+b3
 20
 40
 04
-b5
+b6
 6f
 e2
 4c
@@ -4747,19 +4751,19 @@
 c0
 00
 04
-a6
+a7
 c0
 00
 84
-a9
+aa
 c0
 01
 04
-ac
+ad
 c0
 01
 84
-af
+b0
 20
 60
 00
@@ -4839,7 +4843,7 @@
 24
 41
 04
-ba
+bb
 20
 60
 00
@@ -4867,11 +4871,11 @@
 20
 40
 04
-d8
+d9
 20
 40
 04
-ec
+ed
 20
 40
 46
@@ -4879,7 +4883,7 @@
 20
 40
 04
-c4
+c5
 20
 20
 46
@@ -4911,7 +4915,7 @@
 20
 20
 84
-d1
+d2
 6f
 e0
 c9
@@ -4963,7 +4967,7 @@
 20
 20
 04
-ce
+cf
 6f
 e4
 4b
@@ -4995,7 +4999,7 @@
 20
 40
 04
-e1
+e2
 20
 20
 40
@@ -5023,7 +5027,7 @@
 c0
 7f
 84
-e8
+e9
 20
 20
 40
@@ -5035,7 +5039,7 @@
 20
 40
 04
-7f
+80
 68
 48
 c9
@@ -5059,7 +5063,7 @@
 24
 3a
 04
-f5
+f6
 6f
 e0
 cc
@@ -5067,11 +5071,11 @@
 20
 40
 04
-7d
+7e
 20
 40
 05
-06
+07
 68
 48
 cc
@@ -5099,7 +5103,7 @@
 20
 40
 04
-7f
+80
 70
 4c
 3f
@@ -5115,11 +5119,11 @@
 20
 40
 05
-1f
+20
 20
 40
 05
-0a
+0b
 68
 48
 cc
@@ -5163,7 +5167,7 @@
 20
 40
 05
-15
+16
 67
 e0
 cc
@@ -5175,7 +5179,7 @@
 20
 3a
 05
-11
+12
 6f
 e0
 cc
@@ -5239,11 +5243,11 @@
 c0
 03
 85
-2a
+2b
 c0
 00
 05
-2c
+2d
 20
 60
 00
@@ -5283,11 +5287,11 @@
 c0
 03
 85
-2a
+2b
 c0
 00
 05
-2c
+2d
 20
 60
 00
@@ -5331,7 +5335,7 @@
 c2
 9e
 85
-3a
+3b
 18
 42
 7e
@@ -5363,7 +5367,7 @@
 24
 3a
 05
-57
+58
 6f
 e4
 4b
@@ -5371,7 +5375,7 @@
 c2
 8e
 05
-4b
+4c
 18
 42
 7e
@@ -5383,11 +5387,11 @@
 c0
 00
 05
-47
+48
 c0
 01
 05
-45
+46
 20
 60
 00
@@ -5399,7 +5403,7 @@
 20
 20
 05
-37
+38
 58
 00
 00
@@ -5407,7 +5411,7 @@
 20
 20
 05
-37
+38
 58
 00
 00
@@ -5415,7 +5419,7 @@
 20
 20
 05
-37
+38
 58
 00
 00
@@ -5423,7 +5427,7 @@
 20
 20
 05
-37
+38
 18
 42
 7e
@@ -5435,15 +5439,15 @@
 c0
 00
 05
-47
+48
 c0
 01
 05
-49
+4a
 c0
 01
 85
-45
+46
 20
 60
 00
@@ -5459,15 +5463,15 @@
 c0
 00
 05
-49
+4a
 c0
 00
 85
-45
+46
 c0
 01
 85
-43
+44
 20
 60
 00
@@ -5479,7 +5483,7 @@
 c2
 8e
 05
-51
+52
 18
 42
 7e
@@ -5491,17 +5495,17 @@
 c0
 00
 05
-43
+44
 c0
 00
 85
-45
+46
 20
 60
 00
 00
-57
-cf
+f9
+42
 aa
 55
 40
@@ -6493,7 +6497,7 @@
 55
 10
 00
-a8
+ac
 4d
 09
 5a
@@ -6515,7 +6519,7 @@
 55
 10
 00
-98
+9c
 4d
 09
 5a
@@ -6537,7 +6541,7 @@
 55
 10
 00
-88
+8c
 4d
 09
 5a
@@ -6559,7 +6563,7 @@
 55
 10
 00
-78
+7c
 4d
 09
 5a
@@ -6579,7 +6583,7 @@
 ff
 aa
 55
-2a
+2e
 00
 4e
 4d
@@ -6587,16 +6591,20 @@
 26
 09
 5a
-28
+0f
 04
+28
+0e
 29
-b0
+10
 5b
 00
 4e
 1a
 4f
 00
+70
+00
 7e
 01
 40
@@ -6610,13 +6618,13 @@
 47
 af
 4a
-40
+00
 4c
-03
+04
 4d
 00
 4e
-02
+03
 7e
 00
 7f
@@ -6940,15 +6948,15 @@
 02
 40
 00
-29
+31
 1b
 55
 aa
 aa
 55
-62
+2d
 b6
-6f
+81
 ee
 ff
 ff
@@ -8180,13 +8188,5 @@
 ff
 ff
 ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-82
-7e
+f7
+9e
Index: output/memmap.format
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Multimode/SlideSwitch_3mode_PC-60_8670/output/memmap.format	(revision 5330)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Multimode/SlideSwitch_3mode_PC-60_8670/output/memmap.format	(working copy)
@@ -2252,11 +2252,11 @@
 0x4cce mem_le_tx_buffer2_omemalloc_new
 0x4d0e mem_le_tx_buffer3_omemalloc_new
 0x4d4e mem_sensor_sg8670_init
-0x4d78 mem_sensor_sg8670_dpi_1
-0x4d88 mem_sensor_sg8670_dpi_2
-0x4d98 mem_sensor_sg8670_dpi_3
-0x4da8 mem_sensor_sg8670_dpi_4
-0x4db8 mem_mouse_temp_data
+0x4d7c mem_sensor_sg8670_dpi_1
+0x4d8c mem_sensor_sg8670_dpi_2
+0x4d9c mem_sensor_sg8670_dpi_3
+0x4dac mem_sensor_sg8670_dpi_4
+0x4dbc mem_mouse_temp_data
 0x48d0 mem_remote_car_hard_soft_switch
 0x48d1 mem_remote_car_queue_each_size
 0x48d2 mem_remote_car_queue_length
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Multimode/SlideSwitch_3mode_PC-60_8670/output/program.lis	(revision 5330)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Multimode/SlideSwitch_3mode_PC-60_8670/output/program.lis	(working copy)
@@ -15,16 +15,16 @@
 000c c06501aa beq patch19_2 ,p_mouse_lpm_before_common 
 000d c0660080 beq patch19_4 ,p_mouse_adc_read_start 
 000e c06703f6 beq patch19_6 ,p_mouse_motion 
-000f c067852e beq patch19_7 ,p_mouse_dpi_process 
+000f c067852f beq patch19_7 ,p_mouse_dpi_process 
 0010 c0680299 beq patch1a_0 ,p_mouse_seting_dpi 
-0011 c068844a beq patch1a_1 ,p_mouse_check_key_gpio 
+0011 c068844b beq patch1a_1 ,p_mouse_check_key_gpio 
 0012 c06982ab beq patch1a_3 ,p_mouse_init_sunt 
-0013 c06a0429 beq patch1a_4 ,p_mouse_sensor_poweron 
+0013 c06a042a beq patch1a_4 ,p_mouse_sensor_poweron 
 0014 c06b01d5 beq patch1a_6 ,p_mouse_priority_bb_event 
 0015 c06c82ce beq patch1b_1 ,p_mouse_bb_event_timer 
 0016 c06d0378 beq patch1b_2 ,p_mouse_start_discovery 
 0017 c06d8375 beq patch1b_3 ,p_mouse_stop_discovery 
-0018 c06f04bd beq patch1b_6 ,p_mouse_idle 
+0018 c06f04be beq patch1b_6 ,p_mouse_idle 
 0019 c07403a8 beq patch1d_0 ,p_hid_rx_process 
 001a 2020137c branch loop 
 
@@ -204,7 +204,7 @@
 00a5 20403d8a call mouse_usb_check_enable 
 00a6 20404728 call mouse_drawing_optima_init 
 00a7 204000ed call p_mouse_cb_fuction 
-00a8 2040043b call p_mouse_sensor_powerdown 
+00a8 2040043c call p_mouse_sensor_powerdown 
 00a9 6fe0c92a fetch 1 ,mem_usb_addr 
 00aa c3838000 rtnbit1 7 
 
@@ -393,7 +393,7 @@
 012e 67e0cba4 store 1 ,mem_mouse_search_dongle_action 
 012f 6fe14bbc fetch 2 ,mem_mouse_24g_search_dongle_time_init 
 0130 67e14ab2 store 2 ,mem_mouse_no_data_timer 
-0131 2020043b branch p_mouse_sensor_powerdown 
+0131 2020043c branch p_mouse_sensor_powerdown 
 
 p_g24_transmit_no_interrupt:
 0132 20402631 call g24_txdata_prep 
@@ -473,8 +473,8 @@
 0168 58000006 setarg pan_reg_config 
 0169 20405b0d call twspi_read 
 016a c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
-016b 20400434 call p_mouse_sensor_reset 
-016c 2040043b call p_mouse_sensor_powerdown 
+016b 20400435 call p_mouse_sensor_reset 
+016c 2040043c call p_mouse_sensor_powerdown 
 016d 20203e23 branch mouse_app_enter_hibernate + 3 
 
 p_mouse_setgpio_hibernate:
@@ -570,7 +570,7 @@
 01b7 58000000 setarg 0 
 01b8 67e3c8d0 store 7 ,mem_mouse_key 
 01b9 704be101 jam 1 ,mem_sensor_shutdown_flag 
-01ba 2040043b call p_mouse_sensor_powerdown 
+01ba 2040043c call p_mouse_sensor_powerdown 
 01bb 202001c1 branch p_g24_long_sleep 
 
 p_g24_nodata_transmit:
@@ -879,19 +879,19 @@
 02a2 c00182a9 beq mouse_dpi_level4 ,p_mouse_set_sg8670_dpi_4 
 
 p_mouse_set_sg8670_dpi_1:
-02a3 da604d78 arg mem_sensor_sg8670_dpi_1 ,regc 
+02a3 da604d7c arg mem_sensor_sg8670_dpi_1 ,regc 
 02a4 2020422b branch mouse_sensor_wr_seq 
 
 p_mouse_set_sg8670_dpi_2:
-02a5 da604d88 arg mem_sensor_sg8670_dpi_2 ,regc 
+02a5 da604d8c arg mem_sensor_sg8670_dpi_2 ,regc 
 02a6 2020422b branch mouse_sensor_wr_seq 
 
 p_mouse_set_sg8670_dpi_3:
-02a7 da604d98 arg mem_sensor_sg8670_dpi_3 ,regc 
+02a7 da604d9c arg mem_sensor_sg8670_dpi_3 ,regc 
 02a8 2020422b branch mouse_sensor_wr_seq 
 
 p_mouse_set_sg8670_dpi_4:
-02a9 da604da8 arg mem_sensor_sg8670_dpi_4 ,regc 
+02a9 da604dac arg mem_sensor_sg8670_dpi_4 ,regc 
 02aa 2020422b branch mouse_sensor_wr_seq 
 
 p_mouse_init_sunt:
@@ -1347,7 +1347,7 @@
 03fa 20400404 call p_mouse_data_zoom 
 03fb 20403f7e call mouse_zwheel 
 03fc 20403f83 call mouse_t_zwheel 
-03fd 20400443 call p_mouse_key 
+03fd 20400444 call p_mouse_key 
 03fe 6fe0c8d0 fetch 1 ,mem_mouse_key 
 03ff 1fe17e1f and_into 0x1f ,pdata 
 0400 67e0c8d0 store 1 ,mem_mouse_key 
@@ -1382,16 +1382,16 @@
 p_mouse_xy_zoom:
 0416 1fe20400 copy pdata ,temp 
 0417 9840fe00 iadd temp ,pdata 
-0418 67e14db8 store 2 ,mem_mouse_temp_data 
-0419 6fe0cdb9 fetch 1 ,mem_mouse_temp_data + 1 
+0418 67e14dbc store 2 ,mem_mouse_temp_data 
+0419 6fe0cdbd fetch 1 ,mem_mouse_temp_data + 1 
 041a 1fe67c07 sub pdata ,0x7 ,null 
 041b 2441041e ncall p_mouse_xy_forward_overflow ,positive 
-041c 6fe14db8 fetch 2 ,mem_mouse_temp_data 
+041c 6fe14dbc fetch 2 ,mem_mouse_temp_data 
 041d 20600000 rtn 
 
 p_mouse_xy_forward_overflow:
 041e 580007ff setarg 0x7ff 
-041f 67e14db8 store 2 ,mem_mouse_temp_data 
+041f 67e14dbc store 2 ,mem_mouse_temp_data 
 0420 20600000 rtn 
 
 p_mouse_check_sensor_data:
@@ -1404,444 +1404,445 @@
 p_mouse_drawing_optima:
 0426 6fe0c927 fetch 1 ,mem_config_sensor_type 
 0427 c1018000 rtneq p3212 
-0428 2020471a branch mouse_drawing_optima 
+0428 c1060000 rtneq sg8670 
+0429 2020471a branch mouse_drawing_optima 
 
 p_mouse_sensor_poweron:
-0429 20403f65 call mouse_sensor_spi_init 
-042a 6fe0c927 fetch 1 ,mem_config_sensor_type 
-042b c0058430 beq ka8g2 ,p_mouse_ka8g2_sensor_init 
-042c 20404232 call mouse_sensor_reset 
-042d da604aa3 arg mem_sensor_poweron_init ,regc 
-042e 2040422b call mouse_sensor_wr_seq 
-042f 2020029b branch p_mouse_seting_sensor_type 
+042a 20403f65 call mouse_sensor_spi_init 
+042b 6fe0c927 fetch 1 ,mem_config_sensor_type 
+042c c0058431 beq ka8g2 ,p_mouse_ka8g2_sensor_init 
+042d 20404232 call mouse_sensor_reset 
+042e da604aa3 arg mem_sensor_poweron_init ,regc 
+042f 2040422b call mouse_sensor_wr_seq 
+0430 2020029b branch p_mouse_seting_sensor_type 
 
 p_mouse_ka8g2_sensor_init:
-0430 20400437 call p_mouse_ka8g2_sensor_reset 
-0431 da604be3 arg mem_ka8g2_sensor_poweron_init ,regc 
-0432 2040422b call mouse_sensor_wr_seq 
-0433 2020029b branch p_mouse_seting_sensor_type 
+0431 20400438 call p_mouse_ka8g2_sensor_reset 
+0432 da604be3 arg mem_ka8g2_sensor_poweron_init ,regc 
+0433 2040422b call mouse_sensor_wr_seq 
+0434 2020029b branch p_mouse_seting_sensor_type 
 
 p_mouse_sensor_reset:
-0434 6fe0c927 fetch 1 ,mem_config_sensor_type 
-0435 c0058437 beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
-0436 20204232 branch mouse_sensor_reset 
+0435 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0436 c0058438 beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
+0437 20204232 branch mouse_sensor_reset 
 
 p_mouse_ka8g2_sensor_reset:
-0437 58009706 setarg 0x9706 
-0438 20405b0c call twspi_write 
-0439 20002ee0 nop 12000 
-043a 20600000 rtn 
+0438 58009706 setarg 0x9706 
+0439 20405b0c call twspi_write 
+043a 20002ee0 nop 12000 
+043b 20600000 rtn 
 
 p_mouse_sensor_powerdown:
-043b 204041a7 call mouse_init_sunt 
-043c 20403f65 call mouse_sensor_spi_init 
-043d 6fe0c927 fetch 1 ,mem_config_sensor_type 
-043e c0058441 beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
-043f 58000806 setarg 0x0806 
-0440 20205b0c branch twspi_write 
+043c 204041a7 call mouse_init_sunt 
+043d 20403f65 call mouse_sensor_spi_init 
+043e 6fe0c927 fetch 1 ,mem_config_sensor_type 
+043f c0058442 beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
+0440 58000806 setarg 0x0806 
+0441 20205b0c branch twspi_write 
 
 p_mouse_ka8g2_sensor_powerdown:
-0441 58001f06 setarg 0x1f06 
-0442 20205b0c branch twspi_write 
+0442 58001f06 setarg 0x1f06 
+0443 20205b0c branch twspi_write 
 
 p_mouse_key:
-0443 20400481 call p_mouse_check_firekey_gpio 
-0444 6fe0cc37 fetch 1 ,mem_fire_key_flag 
-0445 243a0498 nbranch p_fire_key_press ,blank 
-0446 6fe0cc32 fetch 1 ,mem_fire_key_status 
-0447 243a0497 nbranch p_fire_key_process ,blank 
-0448 2040044a call p_mouse_check_key_gpio 
-0449 202040dd branch mouse_key + 1 
+0444 20400482 call p_mouse_check_firekey_gpio 
+0445 6fe0cc37 fetch 1 ,mem_fire_key_flag 
+0446 243a0499 nbranch p_fire_key_press ,blank 
+0447 6fe0cc32 fetch 1 ,mem_fire_key_status 
+0448 243a0498 nbranch p_fire_key_process ,blank 
+0449 2040044b call p_mouse_check_key_gpio 
+044a 202040dd branch mouse_key + 1 
 
 p_mouse_check_key_gpio:
-044a 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-044b 245a4121 ncall mouse_check_key_gpio_once ,blank 
-044c da200000 arg 0 ,rega 
-044d 20400454 call p_mouse_check_lkey_gpio 
-044e 20400459 call p_mouse_check_rkey_gpio 
-044f 2040045e call p_mouse_check_mkey_gpio 
-0450 20400463 call p_mouse_check_bkkey_gpio 
-0451 20400470 call p_mouse_check_fwkey_gpio 
-0452 20400481 call p_mouse_check_firekey_gpio 
-0453 2020411e branch mouse_check_key_gpio_next 
+044b 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+044c 245a4121 ncall mouse_check_key_gpio_once ,blank 
+044d da200000 arg 0 ,rega 
+044e 20400455 call p_mouse_check_lkey_gpio 
+044f 2040045a call p_mouse_check_rkey_gpio 
+0450 2040045f call p_mouse_check_mkey_gpio 
+0451 20400464 call p_mouse_check_bkkey_gpio 
+0452 20400471 call p_mouse_check_fwkey_gpio 
+0453 20400482 call p_mouse_check_firekey_gpio 
+0454 2020411e branch mouse_check_key_gpio_next 
 
 p_mouse_check_lkey_gpio:
-0454 6fe0c918 fetch 1 ,mem_lbutton_gpio 
-0455 2040047d call p_mouse_gpio_config_output_high 
-0456 20404124 call mouse_check_lkey_gpio 
-0457 6848c918 fetcht 1 ,mem_lbutton_gpio 
-0458 20203f56 branch mouse_gpio_config_input_pu 
+0455 6fe0c918 fetch 1 ,mem_lbutton_gpio 
+0456 2040047e call p_mouse_gpio_config_output_high 
+0457 20404124 call mouse_check_lkey_gpio 
+0458 6848c918 fetcht 1 ,mem_lbutton_gpio 
+0459 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_rkey_gpio:
-0459 6fe0c919 fetch 1 ,mem_rbutton_gpio 
-045a 2040047d call p_mouse_gpio_config_output_high 
-045b 2040412a call mouse_check_rkey_gpio 
-045c 6848c919 fetcht 1 ,mem_rbutton_gpio 
-045d 20203f56 branch mouse_gpio_config_input_pu 
+045a 6fe0c919 fetch 1 ,mem_rbutton_gpio 
+045b 2040047e call p_mouse_gpio_config_output_high 
+045c 2040412a call mouse_check_rkey_gpio 
+045d 6848c919 fetcht 1 ,mem_rbutton_gpio 
+045e 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_mkey_gpio:
-045e 6fe0c91a fetch 1 ,mem_mbutton_gpio 
-045f 2040047d call p_mouse_gpio_config_output_high 
-0460 20404130 call mouse_check_mkey_gpio 
-0461 6848c91a fetcht 1 ,mem_mbutton_gpio 
-0462 20203f56 branch mouse_gpio_config_input_pu 
+045f 6fe0c91a fetch 1 ,mem_mbutton_gpio 
+0460 2040047e call p_mouse_gpio_config_output_high 
+0461 20404130 call mouse_check_mkey_gpio 
+0462 6848c91a fetcht 1 ,mem_mbutton_gpio 
+0463 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_bkkey_gpio:
-0463 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-0464 c17f8000 rtneq gpio_disable 
-0465 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
-0466 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
-0467 1fe22600 copy pdata ,regc 
-0468 6848c90d fetcht 1 ,mem_bk_button_gpio 
-0469 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-046a c07f846c beq gpio_disable ,p_mouse_3io6key_bk_check 
-046b 2020413e branch mouse_check_bkkey_gpio_next 
+0464 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+0465 c17f8000 rtneq gpio_disable 
+0466 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
+0467 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
+0468 1fe22600 copy pdata ,regc 
+0469 6848c90d fetcht 1 ,mem_bk_button_gpio 
+046a 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+046b c07f846d beq gpio_disable ,p_mouse_3io6key_bk_check 
+046c 2020413e branch mouse_check_bkkey_gpio_next 
 
 p_mouse_3io6key_bk_check:
-046c 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-046d 2040047f call p_mouse_gpio_config_output_low 
-046e 6848c90d fetcht 1 ,mem_bk_button_gpio 
-046f 2020414b branch mouse_3io6key_bk_check 
+046d 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+046e 20400480 call p_mouse_gpio_config_output_low 
+046f 6848c90d fetcht 1 ,mem_bk_button_gpio 
+0470 2020414b branch mouse_3io6key_bk_check 
 
 p_mouse_check_fwkey_gpio:
-0470 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-0471 c17f8000 rtneq gpio_disable 
-0472 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
-0473 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
-0474 1fe22600 copy pdata ,regc 
-0475 6848c90e fetcht 1 ,mem_fw_button_gpio 
-0476 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-0477 c07f8479 beq gpio_disable ,p_mouse_3io6key_fw_check 
-0478 20204157 branch mouse_check_fwkey_gpio_next 
+0471 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+0472 c17f8000 rtneq gpio_disable 
+0473 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
+0474 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
+0475 1fe22600 copy pdata ,regc 
+0476 6848c90e fetcht 1 ,mem_fw_button_gpio 
+0477 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+0478 c07f847a beq gpio_disable ,p_mouse_3io6key_fw_check 
+0479 20204157 branch mouse_check_fwkey_gpio_next 
 
 p_mouse_3io6key_fw_check:
-0479 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-047a 2040047f call p_mouse_gpio_config_output_low 
-047b 6848c90e fetcht 1 ,mem_fw_button_gpio 
-047c 20204164 branch mouse_3io6key_fw_check 
+047a 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+047b 20400480 call p_mouse_gpio_config_output_low 
+047c 6848c90e fetcht 1 ,mem_fw_button_gpio 
+047d 20204164 branch mouse_3io6key_fw_check 
 
 p_mouse_gpio_config_output_high:
-047d d840003f arg gpcfg_output_high ,temp 
-047e 20206093 branch gpio_config_function_int 
+047e d840003f arg gpcfg_output_high ,temp 
+047f 20206093 branch gpio_config_function_int 
 
 p_mouse_gpio_config_output_low:
-047f d840003e arg gpcfg_output_low ,temp 
-0480 20206093 branch gpio_config_function_int 
+0480 d840003e arg gpcfg_output_low ,temp 
+0481 20206093 branch gpio_config_function_int 
 
 p_mouse_check_firekey_gpio:
-0481 da400000 arg 0 ,regb 
-0482 6fe0cc38 fetch 1 ,mem_firebutton_gpio 
-0483 c17f8000 rtneq gpio_disable 
-0484 6fe0cc39 fetch 1 ,mem_mouse_firebutton_connect_vin_flag 
-0485 243a048e nbranch p_mouse_check_firekey_connect_vin ,blank 
+0482 da400000 arg 0 ,regb 
+0483 6fe0cc38 fetch 1 ,mem_firebutton_gpio 
+0484 c17f8000 rtneq gpio_disable 
+0485 6fe0cc39 fetch 1 ,mem_mouse_firebutton_connect_vin_flag 
+0486 243a048f nbranch p_mouse_check_firekey_connect_vin ,blank 
 
 p_mouse_check_firekey_connect_gnd:
-0486 6848cc38 fetcht 1 ,mem_firebutton_gpio 
-0487 20403f56 call mouse_gpio_config_input_pu 
-0488 6848cc38 fetcht 1 ,mem_firebutton_gpio 
-0489 20406059 call gpio_get_bit 
-048a 7920a400 setflag true ,0 ,regb 
+0487 6848cc38 fetcht 1 ,mem_firebutton_gpio 
+0488 20403f56 call mouse_gpio_config_input_pu 
+0489 6848cc38 fetcht 1 ,mem_firebutton_gpio 
+048a 20406059 call gpio_get_bit 
+048b 7920a400 setflag true ,0 ,regb 
 
 p_mouse_firekey_state_store:
-048b 1a427e00 copy regb ,pdata 
-048c 67e0cc37 store 1 ,mem_fire_key_flag 
-048d 20600000 rtn 
+048c 1a427e00 copy regb ,pdata 
+048d 67e0cc37 store 1 ,mem_fire_key_flag 
+048e 20600000 rtn 
 
 p_mouse_check_firekey_connect_vin:
-048e 6fe0cc38 fetch 1 ,mem_firebutton_gpio 
-048f 793ffe07 set0 gpio_active_bit ,pdata 
-0490 67e0cc38 store 1 ,mem_firebutton_gpio 
-0491 6848cc38 fetcht 1 ,mem_firebutton_gpio 
-0492 20403f54 call mouse_gpio_config_input_pd 
-0493 6848cc38 fetcht 1 ,mem_firebutton_gpio 
-0494 20406059 call gpio_get_bit 
-0495 7d20a400 nsetflag true ,0 ,regb 
-0496 2020048b branch p_mouse_firekey_state_store 
+048f 6fe0cc38 fetch 1 ,mem_firebutton_gpio 
+0490 793ffe07 set0 gpio_active_bit ,pdata 
+0491 67e0cc38 store 1 ,mem_firebutton_gpio 
+0492 6848cc38 fetcht 1 ,mem_firebutton_gpio 
+0493 20403f54 call mouse_gpio_config_input_pd 
+0494 6848cc38 fetcht 1 ,mem_firebutton_gpio 
+0495 20406059 call gpio_get_bit 
+0496 7d20a400 nsetflag true ,0 ,regb 
+0497 2020048c branch p_mouse_firekey_state_store 
 
 p_fire_key_process:
-0497 c00204b2 beq 4 ,p_fire_key_process_end 
+0498 c00204b3 beq 4 ,p_fire_key_process_end 
 
 p_fire_key_press:
-0498 204004b5 call p_firekey_clkn_bt_timer_check 
-0499 6fe24c33 fetch 4 ,mem_fire_key_delay 
-049a d84000a0 arg 0xa0 ,temp 
-049b 98408400 iadd temp ,temp 
-049c 1c427e00 copy clkn_bt ,pdata 
-049d 98467c00 isub temp ,null 
-049e 24610000 nrtn positive 
-049f 67e24c33 store 4 ,mem_fire_key_delay 
-04a0 6fe0cc32 fetch 1 ,mem_fire_key_status 
-04a1 c00004a6 beq 0 ,p_fire_key_process_start 
-04a2 c00084a9 beq 1 ,p_fire_key_process_release1 
-04a3 c00104ac beq 2 ,p_fire_key_process_start2 
-04a4 c00184af beq 3 ,p_fire_key_process_release2 
-04a5 20600000 rtn 
+0499 204004b6 call p_firekey_clkn_bt_timer_check 
+049a 6fe24c33 fetch 4 ,mem_fire_key_delay 
+049b d84000a0 arg 0xa0 ,temp 
+049c 98408400 iadd temp ,temp 
+049d 1c427e00 copy clkn_bt ,pdata 
+049e 98467c00 isub temp ,null 
+049f 24610000 nrtn positive 
+04a0 67e24c33 store 4 ,mem_fire_key_delay 
+04a1 6fe0cc32 fetch 1 ,mem_fire_key_status 
+04a2 c00004a7 beq 0 ,p_fire_key_process_start 
+04a3 c00084aa beq 1 ,p_fire_key_process_release1 
+04a4 c00104ad beq 2 ,p_fire_key_process_start2 
+04a5 c00184b0 beq 3 ,p_fire_key_process_release2 
+04a6 20600000 rtn 
 
 p_fire_key_process_start:
-04a6 704c3201 jam 1 ,mem_fire_key_status 
-04a7 7048d001 jam 1 ,mem_mouse_key 
-04a8 20207e54 branch enable_user 
+04a7 704c3201 jam 1 ,mem_fire_key_status 
+04a8 7048d001 jam 1 ,mem_mouse_key 
+04a9 20207e54 branch enable_user 
 
 p_fire_key_process_release1:
-04a9 704c3202 jam 2 ,mem_fire_key_status 
-04aa 7048d000 jam 0 ,mem_mouse_key 
-04ab 20207e54 branch enable_user 
+04aa 704c3202 jam 2 ,mem_fire_key_status 
+04ab 7048d000 jam 0 ,mem_mouse_key 
+04ac 20207e54 branch enable_user 
 
 p_fire_key_process_start2:
-04ac 704c3203 jam 3 ,mem_fire_key_status 
-04ad 7048d001 jam 1 ,mem_mouse_key 
-04ae 20207e54 branch enable_user 
+04ad 704c3203 jam 3 ,mem_fire_key_status 
+04ae 7048d001 jam 1 ,mem_mouse_key 
+04af 20207e54 branch enable_user 
 
 p_fire_key_process_release2:
-04af 704c3200 jam 0 ,mem_fire_key_status 
-04b0 7048d000 jam 0 ,mem_mouse_key 
-04b1 20207e54 branch enable_user 
+04b0 704c3200 jam 0 ,mem_fire_key_status 
+04b1 7048d000 jam 0 ,mem_mouse_key 
+04b2 20207e54 branch enable_user 
 
 p_fire_key_process_end:
-04b2 704c3200 jam 0 ,mem_fire_key_status 
-04b3 7048d000 jam 0 ,mem_mouse_key 
-04b4 20600000 rtn 
+04b3 704c3200 jam 0 ,mem_fire_key_status 
+04b4 7048d000 jam 0 ,mem_mouse_key 
+04b5 20600000 rtn 
 
 p_firekey_clkn_bt_timer_check:
-04b5 684a4c33 fetcht 4 ,mem_fire_key_delay 
-04b6 1c427e00 copy clkn_bt ,pdata 
-04b7 98467c00 isub temp ,null 
-04b8 244104ba ncall p_firekey_clkn_bt_timer_timeout ,positive 
-04b9 20600000 rtn 
+04b6 684a4c33 fetcht 4 ,mem_fire_key_delay 
+04b7 1c427e00 copy clkn_bt ,pdata 
+04b8 98467c00 isub temp ,null 
+04b9 244104bb ncall p_firekey_clkn_bt_timer_timeout ,positive 
+04ba 20600000 rtn 
 
 p_firekey_clkn_bt_timer_timeout:
-04ba 58000000 setarg 0 
-04bb 67e24c33 store 4 ,mem_fire_key_delay 
-04bc 20600000 rtn 
+04bb 58000000 setarg 0 
+04bc 67e24c33 store 4 ,mem_fire_key_delay 
+04bd 20600000 rtn 
 
 p_mouse_idle:
-04bd 20404990 call mouse_low_voltage_led_no_enter_lpm 
-04be 20407936 call ui_check_paring_button 
-04bf 204004d8 call p_mouse_dpi_check 
-04c0 204004ec call p_mouse_dpi_another_gpio_check 
-04c1 20404655 call mouse_select_device_check 
-04c2 204004c4 call p_mouse_check_select_device_by_switch 
-04c3 20204651 branch mouse_idle + 6 
+04be 20404990 call mouse_low_voltage_led_no_enter_lpm 
+04bf 20407936 call ui_check_paring_button 
+04c0 204004d9 call p_mouse_dpi_check 
+04c1 204004ed call p_mouse_dpi_another_gpio_check 
+04c2 20404655 call mouse_select_device_check 
+04c3 204004c5 call p_mouse_check_select_device_by_switch 
+04c4 20204651 branch mouse_idle + 6 
 
 p_mouse_check_select_device_by_switch:
-04c4 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-04c5 c4150000 rtnbit0 mouse_enable_select_device_by_switch_gpio 
-04c6 6848c91e fetcht 1 ,mem_device_switch_gpio 
-04c7 20403f56 call mouse_gpio_config_input_pu 
-04c8 6848c91e fetcht 1 ,mem_device_switch_gpio 
-04c9 20406059 call gpio_get_bit 
-04ca 202084d1 branch p_mouse_check_select_24g_device ,true 
+04c5 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+04c6 c4150000 rtnbit0 mouse_enable_select_device_by_switch_gpio 
+04c7 6848c91e fetcht 1 ,mem_device_switch_gpio 
+04c8 20403f56 call mouse_gpio_config_input_pu 
+04c9 6848c91e fetcht 1 ,mem_device_switch_gpio 
+04ca 20406059 call gpio_get_bit 
+04cb 202084d2 branch p_mouse_check_select_24g_device ,true 
 
 p_mouse_select_btdevice:
-04cb 6fe0c938 fetch 1 ,mem_device_flag 
-04cc c1008000 rtneq mode_bt_device1 
-04cd 70493801 jam mode_bt_device1 ,mem_device_flag 
+04cc 6fe0c938 fetch 1 ,mem_device_flag 
+04cd c1008000 rtneq mode_bt_device1 
+04ce 70493801 jam mode_bt_device1 ,mem_device_flag 
 
 p_mouse_select_device:
-04ce 2040463f call mouse_store_eeprom_device_info 
-04cf 20407d12 call delay_10ms 
-04d0 202046c0 branch mouse_soft_reset 
+04cf 2040463f call mouse_store_eeprom_device_info 
+04d0 20407d12 call delay_10ms 
+04d1 202046c0 branch mouse_soft_reset 
 
 p_mouse_check_select_24g_device:
-04d1 6fe0c938 fetch 1 ,mem_device_flag 
-04d2 c1000000 rtneq mode_24g_device 
-04d3 70493800 jam mode_24g_device ,mem_device_flag 
-04d4 7041ca00 jam 0 ,mem_link_key_exists 
-04d5 20404316 call mouse_stop_bluetooth_mode 
-04d6 20403173 call app_evt_button_long_pressed 
-04d7 202004ce branch p_mouse_select_device 
+04d2 6fe0c938 fetch 1 ,mem_device_flag 
+04d3 c1000000 rtneq mode_24g_device 
+04d4 70493800 jam mode_24g_device ,mem_device_flag 
+04d5 7041ca00 jam 0 ,mem_link_key_exists 
+04d6 20404316 call mouse_stop_bluetooth_mode 
+04d7 20403173 call app_evt_button_long_pressed 
+04d8 202004cf branch p_mouse_select_device 
 
 p_mouse_dpi_check:
-04d8 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-04d9 c2974036 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
-04da 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-04db c17f8000 rtneq gpio_disable 
-04dc da200000 arg 0 ,rega 
-04dd 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
-04de 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-04df 204004e1 call p_mouse_dpi_key_check 
-04e0 2020402f branch mouse_dpi_check_next 
+04d9 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+04da c2974036 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
+04db 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+04dc c17f8000 rtneq gpio_disable 
+04dd da200000 arg 0 ,rega 
+04de 704b9605 jam mouse_dpi_key ,mem_mouse_key_temp 
+04df 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+04e0 204004e2 call p_mouse_dpi_key_check 
+04e1 2020402f branch mouse_dpi_check_next 
 
 p_mouse_dpi_key_check:
-04e1 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-04e2 c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
-04e3 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
-04e4 1fe22600 copy pdata ,regc 
-04e5 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-04e6 c07f84e8 beq gpio_disable ,p_mouse_3io6key_dpi_check 
-04e7 2020403f branch mouse_dpi_key_check_next 
+04e2 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+04e3 c2964048 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
+04e4 6fe0cb93 fetch 1 ,mem_mouse_dpikey_press_status 
+04e5 1fe22600 copy pdata ,regc 
+04e6 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+04e7 c07f84e9 beq gpio_disable ,p_mouse_3io6key_dpi_check 
+04e8 2020403f branch mouse_dpi_key_check_next 
 
 p_mouse_3io6key_dpi_check:
-04e8 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
-04e9 2040047f call p_mouse_gpio_config_output_low 
-04ea 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-04eb 20204195 branch mouse_3io6key_check 
+04e9 6fe0c90f fetch 1 ,mem_dpi_button_gpio 
+04ea 20400480 call p_mouse_gpio_config_output_low 
+04eb 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+04ec 20204195 branch mouse_3io6key_check 
 
 p_mouse_dpi_another_gpio_check:
-04ec 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-04ed c41e8000 rtnbit0 mouse_enable_double_dpi_key 
-04ee 6fe0cc3a fetch 1 ,mem_mouse_another_dpi_connect_vin_flag 
-04ef 243a04f5 nbranch p_mouse_dpi_another_gpio_connect_vin_check ,blank 
+04ed 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+04ee c41e8000 rtnbit0 mouse_enable_double_dpi_key 
+04ef 6fe0cc3a fetch 1 ,mem_mouse_another_dpi_connect_vin_flag 
+04f0 243a04f6 nbranch p_mouse_dpi_another_gpio_connect_vin_check ,blank 
 
 p_mouse_dpi_another_gpio_connect_gnd_check:
-04f0 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-04f1 2040047d call p_mouse_gpio_config_output_high 
-04f2 20400506 call p_mouse_dpi_another_check 
-04f3 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-04f4 20203f56 branch mouse_gpio_config_input_pu 
+04f1 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+04f2 2040047e call p_mouse_gpio_config_output_high 
+04f3 20400507 call p_mouse_dpi_another_check 
+04f4 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+04f5 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_dpi_another_gpio_connect_vin_check:
-04f5 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-04f6 793ffe07 set0 gpio_active_bit ,pdata 
-04f7 67e0cc3b store 1 ,mem_dpi_another_button_gpio 
-04f8 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
-04f9 2040047f call p_mouse_gpio_config_output_low 
-04fa 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
-04fb 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-04fc 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
-04fd 2040051f call p_mouse_check_key_connect_vin_new 
-04fe 2040050a call p_mouse_dpi_another_state_check 
-04ff 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-0500 20203f56 branch mouse_gpio_config_input_pu 
+04f6 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+04f7 793ffe07 set0 gpio_active_bit ,pdata 
+04f8 67e0cc3b store 1 ,mem_dpi_another_button_gpio 
+04f9 6fe0cc3b fetch 1 ,mem_dpi_another_button_gpio 
+04fa 20400480 call p_mouse_gpio_config_output_low 
+04fb 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
+04fc 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+04fd 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
+04fe 20400520 call p_mouse_check_key_connect_vin_new 
+04ff 2040050b call p_mouse_dpi_another_state_check 
+0500 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+0501 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_dpi_another_down_new:
-0501 20403f56 call mouse_gpio_config_input_pu 
-0502 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-0503 c1008000 rtneq dpi_button_state_down 
-0504 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
-0505 20204069 branch mouse_dpi_process 
+0502 20403f56 call mouse_gpio_config_input_pu 
+0503 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+0504 c1008000 rtneq dpi_button_state_down 
+0505 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
+0506 20204069 branch mouse_dpi_process 
 
 p_mouse_dpi_another_check:
-0506 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
-0507 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
-0508 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
-0509 20400515 call p_mouse_check_key_connect_gnd_new 
+0507 704c3f00 jam mouse_dpi_another_key ,mem_mouse_key_temp_patch 
+0508 6848cc3b fetcht 1 ,mem_dpi_another_button_gpio 
+0509 6fe0cc3c fetch 1 ,mem_dpi_another_press_status 
+050a 20400516 call p_mouse_check_key_connect_gnd_new 
 
 p_mouse_dpi_another_state_check:
-050a 67e0cc3c store 1 ,mem_dpi_another_press_status 
-050b 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
-050c 203a0511 branch p_mouse_dpi_another_up ,blank 
+050b 67e0cc3c store 1 ,mem_dpi_another_press_status 
+050c 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
+050d 203a0512 branch p_mouse_dpi_another_up ,blank 
 
 p_mouse_dpi_another_down:
-050d 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-050e c1008000 rtneq dpi_button_state_down 
-050f 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
-0510 20204069 branch mouse_dpi_process 
+050e 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+050f c1008000 rtneq dpi_button_state_down 
+0510 704c3d01 jam dpi_button_state_down ,mem_dpi_another_button_state 
+0511 20204069 branch mouse_dpi_process 
 
 p_mouse_dpi_another_up:
-0511 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
-0512 c1000000 rtneq dpi_button_state_up 
-0513 704c3d00 jam dpi_button_state_up ,mem_dpi_another_button_state 
-0514 20600000 rtn 
+0512 6fe0cc3d fetch 1 ,mem_dpi_another_button_state 
+0513 c1000000 rtneq dpi_button_state_up 
+0514 704c3d00 jam dpi_button_state_up ,mem_dpi_another_button_state 
+0515 20600000 rtn 
 
 p_mouse_check_key_connect_gnd_new:
-0515 1fe3fe00 lshift pdata ,pdata 
-0516 1fe22400 copy pdata ,regb 
-0517 20406059 call gpio_get_bit 
-0518 7920a400 setflag true ,0 ,regb 
-0519 1a417e07 and regb ,0x07 ,pdata 
-051a 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
-051b 18420e00 copy temp ,queue 
-051c c003852a beq 0x07 ,p_mouse_key_press 
-051d c000052c beq 0x00 ,p_mouse_key_release 
-051e 20600000 rtn 
+0516 1fe3fe00 lshift pdata ,pdata 
+0517 1fe22400 copy pdata ,regb 
+0518 20406059 call gpio_get_bit 
+0519 7920a400 setflag true ,0 ,regb 
+051a 1a417e07 and regb ,0x07 ,pdata 
+051b 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
+051c 18420e00 copy temp ,queue 
+051d c003852b beq 0x07 ,p_mouse_key_press 
+051e c000052d beq 0x00 ,p_mouse_key_release 
+051f 20600000 rtn 
 
 p_mouse_check_key_connect_vin_new:
-051f 1fe3fe00 lshift pdata ,pdata 
-0520 1fe22400 copy pdata ,regb 
-0521 20403f54 call mouse_gpio_config_input_pd 
-0522 20406059 call gpio_get_bit 
-0523 7920a400 setflag true ,0 ,regb 
-0524 1a417e07 and regb ,0x07 ,pdata 
-0525 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
-0526 18420e00 copy temp ,queue 
-0527 c003852a beq 0x07 ,p_mouse_key_press 
-0528 c000052c beq 0x00 ,p_mouse_key_release 
-0529 20600000 rtn 
+0520 1fe3fe00 lshift pdata ,pdata 
+0521 1fe22400 copy pdata ,regb 
+0522 20403f54 call mouse_gpio_config_input_pd 
+0523 20406059 call gpio_get_bit 
+0524 7920a400 setflag true ,0 ,regb 
+0525 1a417e07 and regb ,0x07 ,pdata 
+0526 6848cc3f fetcht 1 ,mem_mouse_key_temp_patch 
+0527 18420e00 copy temp ,queue 
+0528 c003852b beq 0x07 ,p_mouse_key_press 
+0529 c000052d beq 0x00 ,p_mouse_key_release 
+052a 20600000 rtn 
 
 p_mouse_key_press:
-052a 704c3e01 jam 1 ,mem_dpi_another_button_down_enable 
-052b 20600000 rtn 
+052b 704c3e01 jam 1 ,mem_dpi_another_button_down_enable 
+052c 20600000 rtn 
 
 p_mouse_key_release:
-052c 704c3e00 jam 0 ,mem_dpi_another_button_down_enable 
-052d 20600000 rtn 
+052d 704c3e00 jam 0 ,mem_dpi_another_button_down_enable 
+052e 20600000 rtn 
 
 p_mouse_dpi_process:
-052e 20404072 call mouse_dpi_ghost_check 
-052f 20740000 rtn user 
-0530 6fe0c992 fetch 1 ,mem_mouse_dpi 
-0531 1fe20400 copy pdata ,temp 
-0532 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0533 c29e853a bbit1 mouse_enable_double_dpi_key ,p_mouse_double_dpi_check 
-0534 18427e00 copy temp ,pdata 
-0535 1fe0fe01 increase 1 ,pdata 
-0536 1fe17e03 and pdata ,0x03 ,pdata 
+052f 20404072 call mouse_dpi_ghost_check 
+0530 20740000 rtn user 
+0531 6fe0c992 fetch 1 ,mem_mouse_dpi 
+0532 1fe20400 copy pdata ,temp 
+0533 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0534 c29e853b bbit1 mouse_enable_double_dpi_key ,p_mouse_double_dpi_check 
+0535 18427e00 copy temp ,pdata 
+0536 1fe0fe01 increase 1 ,pdata 
+0537 1fe17e03 and pdata ,0x03 ,pdata 
 
 p_mouse_dpi_store:
-0537 67e0c992 store 1 ,mem_mouse_dpi 
-0538 20404095 call mouse_seting_dpi 
-0539 20204643 branch mouse_store_eerpom_dpi 
+0538 67e0c992 store 1 ,mem_mouse_dpi 
+0539 20404095 call mouse_seting_dpi 
+053a 20204643 branch mouse_store_eerpom_dpi 
 
 p_mouse_double_dpi_check:
-053a 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
-053b 243a0557 nbranch p_mouse_another_dpi_button_down ,blank 
+053b 6fe0cc3e fetch 1 ,mem_dpi_another_button_down_enable 
+053c 243a0558 nbranch p_mouse_another_dpi_button_down ,blank 
 
 p_mouse_dpi_increase:
-053c 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-053d c28e054b bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_increase_level_4 
-053e 18427e00 copy temp ,pdata 
-053f c1008000 rtneq mouse_dpi_level2 
+053d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+053e c28e054c bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_increase_level_4 
+053f 18427e00 copy temp ,pdata 
+0540 c1008000 rtneq mouse_dpi_level2 
 
 p_mouse_dpi_increase_level:
-0540 c0000547 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
-0541 c0010545 beq mouse_dpi_level3 ,p_mouse_dpi_level_2 
-0542 20600000 rtn 
+0541 c0000548 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
+0542 c0010546 beq mouse_dpi_level3 ,p_mouse_dpi_level_2 
+0543 20600000 rtn 
 
 p_mouse_dpi_level_1:
-0543 58000002 setarg 2 
-0544 20200537 branch p_mouse_dpi_store 
+0544 58000002 setarg 2 
+0545 20200538 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_2:
-0545 58000000 setarg 0 
-0546 20200537 branch p_mouse_dpi_store 
+0546 58000000 setarg 0 
+0547 20200538 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_3:
-0547 58000001 setarg 1 
-0548 20200537 branch p_mouse_dpi_store 
+0548 58000001 setarg 1 
+0549 20200538 branch p_mouse_dpi_store 
 
 p_mouse_dpi_level_4:
-0549 58000003 setarg 3 
-054a 20200537 branch p_mouse_dpi_store 
+054a 58000003 setarg 3 
+054b 20200538 branch p_mouse_dpi_store 
 
 p_mouse_dpi_increase_level_4:
-054b 18427e00 copy temp ,pdata 
-054c c1008000 rtneq mouse_dpi_level2 
-054d c0000547 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
-054e c0010549 beq mouse_dpi_level3 ,p_mouse_dpi_level_4 
-054f c0018545 beq mouse_dpi_level4 ,p_mouse_dpi_level_2 
-0550 20600000 rtn 
+054c 18427e00 copy temp ,pdata 
+054d c1008000 rtneq mouse_dpi_level2 
+054e c0000548 beq mouse_dpi_level1 ,p_mouse_dpi_level_3 
+054f c001054a beq mouse_dpi_level3 ,p_mouse_dpi_level_4 
+0550 c0018546 beq mouse_dpi_level4 ,p_mouse_dpi_level_2 
+0551 20600000 rtn 
 
 p_mouse_dpi_decrease_level_4:
-0551 18427e00 copy temp ,pdata 
-0552 c1010000 rtneq mouse_dpi_level3 
-0553 c0000549 beq mouse_dpi_level1 ,p_mouse_dpi_level_4 
-0554 c0008545 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
-0555 c0018543 beq mouse_dpi_level4 ,p_mouse_dpi_level_1 
-0556 20600000 rtn 
+0552 18427e00 copy temp ,pdata 
+0553 c1010000 rtneq mouse_dpi_level3 
+0554 c000054a beq mouse_dpi_level1 ,p_mouse_dpi_level_4 
+0555 c0008546 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
+0556 c0018544 beq mouse_dpi_level4 ,p_mouse_dpi_level_1 
+0557 20600000 rtn 
 
 p_mouse_another_dpi_button_down:
 
 p_mouse_dpi_decrease:
-0557 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0558 c28e0551 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_decrease_level_4 
-0559 18427e00 copy temp ,pdata 
-055a c1010000 rtneq mouse_dpi_level3 
+0558 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0559 c28e0552 bbit1 mouse_enable_dpi_level_4 ,p_mouse_dpi_decrease_level_4 
+055a 18427e00 copy temp ,pdata 
+055b c1010000 rtneq mouse_dpi_level3 
 
 p_mouse_dpi_decrease_level:
-055b c0000543 beq mouse_dpi_level1 ,p_mouse_dpi_level_1 
-055c c0008545 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
-055d 20600000 rtn 
+055c c0000544 beq mouse_dpi_level1 ,p_mouse_dpi_level_1 
+055d c0008546 beq mouse_dpi_level2 ,p_mouse_dpi_level_2 
+055e 20600000 rtn 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Multimode/SlideSwitch_3mode_PC-60_8670/program/patch.prog	(revision 5330)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Multimode/SlideSwitch_3mode_PC-60_8670/program/patch.prog	(working copy)
@@ -1439,6 +1439,7 @@
 p_mouse_drawing_optima:
 	fetch 1,mem_config_sensor_type
 	rtneq P3212
+	rtneq SG8670
 	branch mouse_drawing_optima
 
 p_mouse_sensor_poweron:
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Multimode/SlideSwitch_3mode_PC-60_8670/sched/mouse.dat	(revision 5330)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Multimode/SlideSwitch_3mode_PC-60_8670/sched/mouse.dat	(working copy)
@@ -452,21 +452,23 @@
 mem_sensor_sg8670_init:
 7f 26
 09 5a
-28 04
-29 b0
+0f 04
+28 0e
+29 10
 5b 00
 4e 1a
 4f 00
+70 00
 7e 01
 40 ff
 41 ff
 42 ff
 43 ff
 47 af
-4a 40
-4c 03
+4a 00
+4c 04
 4d 00
-4e 02
+4e 03
 7e 00
 7f 00
 09 00
