Index: output/eeprom.dat
===================================================================
--- /YC1308AF/branch/mouse/MZ_Project/mouse_public/output/eeprom.dat	(revision 3034)
+++ /YC1308AF/branch/mouse/MZ_Project/mouse_public/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-0a
+46
 1f
 c2
 84
@@ -79,7 +79,7 @@
 c0
 68
 06
-89
+98
 c0
 69
 03
@@ -1391,7 +1391,7 @@
 c0
 03
 86
-bf
+ce
 20
 40
 01
@@ -4095,7 +4095,7 @@
 20
 40
 06
-b9
+c8
 20
 40
 3e
@@ -4347,7 +4347,7 @@
 20
 40
 06
-bc
+cb
 68
 48
 c9
@@ -6594,8 +6594,8 @@
 d5
 20
 40
-42
-80
+06
+7c
 58
 00
 00
@@ -6615,7 +6615,7 @@
 20
 40
 06
-87
+96
 6f
 e0
 c8
@@ -6631,19 +6631,79 @@
 24
 34
 06
-7f
+8e
 20
 40
 06
-7c
+8b
 20
 40
 06
-84
+93
 20
 20
 45
 84
+6f
+e0
+c4
+ae
+c1
+80
+00
+00
+6f
+e0
+c9
+2c
+c0
+05
+86
+81
+20
+20
+42
+82
+20
+40
+43
+04
+6f
+e0
+c9
+15
+c0
+7f
+86
+87
+68
+48
+c9
+15
+20
+40
+60
+fd
+24
+60
+80
+00
+58
+00
+00
+00
+20
+40
+5d
+65
+c0
+ac
+41
+f2
+20
+20
+42
+b9
 70
 4c
 c9
@@ -6691,7 +6751,7 @@
 20
 40
 06
-89
+98
 20
 20
 41
@@ -6711,15 +6771,15 @@
 20
 40
 06
-90
+9f
 20
 40
 06
-9f
+ae
 20
 40
 06
-ac
+bb
 20
 20
 41
@@ -6731,7 +6791,7 @@
 20
 40
 06
-b9
+c8
 20
 40
 41
@@ -6751,7 +6811,7 @@
 20
 40
 06
-b9
+c8
 20
 40
 41
@@ -6771,7 +6831,7 @@
 20
 40
 06
-b9
+c8
 20
 40
 41
@@ -6815,7 +6875,7 @@
 c0
 7f
 86
-a8
+b7
 20
 20
 41
@@ -6827,7 +6887,7 @@
 20
 40
 06
-bc
+cb
 68
 48
 c9
@@ -6867,7 +6927,7 @@
 c0
 7f
 86
-b5
+c4
 20
 20
 41
@@ -6879,7 +6939,7 @@
 20
 40
 06
-bc
+cb
 68
 48
 c9
@@ -6931,11 +6991,11 @@
 20
 40
 06
-c7
+d6
 20
 40
 07
-5d
+6c
 70
 0a
 06
@@ -6943,7 +7003,7 @@
 20
 20
 06
-da
+e9
 df
 20
 00
@@ -7007,7 +7067,7 @@
 24
 20
 86
-cb
+da
 e0
 40
 80
@@ -7015,7 +7075,7 @@
 c2
 00
 06
-cb
+da
 20
 60
 00
@@ -7035,11 +7095,11 @@
 c0
 00
 86
-df
+ee
 c0
 01
 07
-20
+2f
 20
 40
 11
@@ -7086,8 +7146,8 @@
 0d
 c0
 00
-06
-f6
+07
+05
 6f
 20
 8a
@@ -7107,11 +7167,11 @@
 c2
 00
 06
-ed
+fc
 20
 40
 07
-2a
+39
 6f
 e3
 8a
@@ -7127,11 +7187,11 @@
 20
 22
 86
-eb
+fa
 20
 20
 06
-da
+e9
 6f
 e0
 8a
@@ -7139,7 +7199,7 @@
 c0
 00
 87
-04
+13
 df
 20
 00
@@ -7158,12 +7218,12 @@
 08
 c2
 00
-06
-fa
+07
+09
 20
 40
 07
-2a
+39
 6f
 e3
 8a
@@ -7178,8 +7238,8 @@
 00
 20
 22
-86
-f8
+87
+07
 20
 40
 11
@@ -7187,7 +7247,7 @@
 20
 20
 06
-da
+e9
 78
 48
 7c
@@ -7215,11 +7275,11 @@
 c2
 00
 07
-08
+17
 24
 21
 87
-06
+15
 20
 40
 11
@@ -7247,11 +7307,11 @@
 20
 3a
 07
-17
+26
 20
 40
 07
-2a
+39
 6f
 e0
 8a
@@ -7259,19 +7319,19 @@
 c0
 00
 87
-10
+1f
 20
 20
 06
-da
+e9
 20
 40
 07
-19
+28
 20
 20
 06
-da
+e9
 6f
 e0
 8a
@@ -7279,7 +7339,7 @@
 24
 3a
 07
-a0
+af
 6f
 e0
 8a
@@ -7299,15 +7359,15 @@
 20
 20
 07
-a0
+af
 20
 40
 07
-27
+36
 20
 40
 07
-2a
+39
 6f
 e3
 8a
@@ -7323,11 +7383,11 @@
 20
 22
 87
-21
+30
 20
 20
 06
-da
+e9
 20
 40
 11
@@ -7343,11 +7403,11 @@
 20
 40
 07
-2c
+3b
 20
 20
 07
-a9
+b8
 78
 54
 7c
@@ -7367,15 +7427,15 @@
 c0
 00
 87
-37
+46
 c0
 01
 07
-3c
+4b
 c0
 02
 07
-93
+a2
 70
 0a
 13
@@ -7427,11 +7487,11 @@
 20
 40
 07
-41
+50
 20
 20
 07
-47
+56
 6f
 e0
 8a
@@ -7463,7 +7523,7 @@
 c0
 00
 87
-5d
+6c
 70
 0a
 16
@@ -7471,75 +7531,75 @@
 c0
 01
 07
-65
+74
 c0
 01
 87
-6a
+79
 c0
 02
 07
-6e
+7d
 c0
 02
 87
-72
+81
 c0
 03
 07
-75
+84
 c0
 03
 87
-78
+87
 c0
 04
 07
-7b
+8a
 c0
 04
 87
-7f
+8e
 c0
 05
 07
-83
+92
 c0
 05
 87
-87
+96
 c0
 06
 07
-8b
+9a
 c0
 06
 87
-8f
+9e
 c0
 07
 07
-7b
+8a
 c0
 07
 87
-7f
+8e
 c0
 08
 07
-83
+92
 c0
 08
 87
-87
+96
 c0
 09
 07
-8b
+9a
 c0
 09
 87
-8f
+9e
 20
 60
 00
@@ -7779,19 +7839,19 @@
 c0
 00
 87
-a6
+b5
 c0
 01
 07
-9c
+ab
 c0
 01
 87
-9c
+ab
 c0
 02
 07
-9c
+ab
 20
 60
 00
@@ -7803,15 +7863,15 @@
 c0
 03
 07
-a2
+b1
 c0
 13
 07
-a4
+b3
 c0
 24
 07
-a0
+af
 70
 0a
 01
@@ -7867,15 +7927,15 @@
 c0
 01
 07
-b1
+c0
 c0
 01
 87
-b1
+c0
 c0
 02
 07
-b1
+c0
 20
 60
 00
@@ -7891,11 +7951,11 @@
 c0
 00
 87
-b6
+c5
 c0
 7f
 87
-bc
+cb
 20
 60
 00
@@ -7948,8 +8008,8 @@
 60
 00
 00
-ec
-7f
+ef
+cd
 aa
 55
 40
@@ -8121,9 +8181,9 @@
 00
 11
 49
+0d
+0f
 02
-0a
-00
 aa
 55
 01
@@ -8158,10 +8218,10 @@
 49
 ff
 ff
-02
-0a
-0e
+0d
 0f
+0e
+00
 ff
 ff
 01
@@ -8207,7 +8267,7 @@
 00
 21
 4c
-01
+00
 aa
 55
 01
@@ -8242,9 +8302,9 @@
 00
 29
 4c
-89
-8b
-8b
+0b
+0a
+ff
 aa
 55
 12
@@ -8928,7 +8988,7 @@
 ff
 aa
 55
-3e
+40
 00
 64
 4a
@@ -8980,8 +9040,10 @@
 ff
 09
 a5
-46
+26
 34
+19
+04
 60
 07
 69
@@ -9250,10 +9312,10 @@
 aa
 aa
 55
-8f
+15
 80
-47
-1c
+8c
+3e
 ff
 1e
 f0
Index: output/flash.dat
===================================================================
--- /YC1308AF/branch/mouse/MZ_Project/mouse_public/output/flash.dat	(revision 3034)
+++ /YC1308AF/branch/mouse/MZ_Project/mouse_public/output/flash.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-0a
+46
 1f
 c2
 84
@@ -79,7 +79,7 @@
 c0
 68
 06
-89
+98
 c0
 69
 03
@@ -1391,7 +1391,7 @@
 c0
 03
 86
-bf
+ce
 20
 40
 01
@@ -4095,7 +4095,7 @@
 20
 40
 06
-b9
+c8
 20
 40
 3e
@@ -4347,7 +4347,7 @@
 20
 40
 06
-bc
+cb
 68
 48
 c9
@@ -6594,8 +6594,8 @@
 d5
 20
 40
-42
-80
+06
+7c
 58
 00
 00
@@ -6615,7 +6615,7 @@
 20
 40
 06
-87
+96
 6f
 e0
 c8
@@ -6631,19 +6631,79 @@
 24
 34
 06
-7f
+8e
 20
 40
 06
-7c
+8b
 20
 40
 06
-84
+93
 20
 20
 45
 84
+6f
+e0
+c4
+ae
+c1
+80
+00
+00
+6f
+e0
+c9
+2c
+c0
+05
+86
+81
+20
+20
+42
+82
+20
+40
+43
+04
+6f
+e0
+c9
+15
+c0
+7f
+86
+87
+68
+48
+c9
+15
+20
+40
+60
+fd
+24
+60
+80
+00
+58
+00
+00
+00
+20
+40
+5d
+65
+c0
+ac
+41
+f2
+20
+20
+42
+b9
 70
 4c
 c9
@@ -6691,7 +6751,7 @@
 20
 40
 06
-89
+98
 20
 20
 41
@@ -6711,15 +6771,15 @@
 20
 40
 06
-90
+9f
 20
 40
 06
-9f
+ae
 20
 40
 06
-ac
+bb
 20
 20
 41
@@ -6731,7 +6791,7 @@
 20
 40
 06
-b9
+c8
 20
 40
 41
@@ -6751,7 +6811,7 @@
 20
 40
 06
-b9
+c8
 20
 40
 41
@@ -6771,7 +6831,7 @@
 20
 40
 06
-b9
+c8
 20
 40
 41
@@ -6815,7 +6875,7 @@
 c0
 7f
 86
-a8
+b7
 20
 20
 41
@@ -6827,7 +6887,7 @@
 20
 40
 06
-bc
+cb
 68
 48
 c9
@@ -6867,7 +6927,7 @@
 c0
 7f
 86
-b5
+c4
 20
 20
 41
@@ -6879,7 +6939,7 @@
 20
 40
 06
-bc
+cb
 68
 48
 c9
@@ -6931,11 +6991,11 @@
 20
 40
 06
-c7
+d6
 20
 40
 07
-5d
+6c
 70
 0a
 06
@@ -6943,7 +7003,7 @@
 20
 20
 06
-da
+e9
 df
 20
 00
@@ -7007,7 +7067,7 @@
 24
 20
 86
-cb
+da
 e0
 40
 80
@@ -7015,7 +7075,7 @@
 c2
 00
 06
-cb
+da
 20
 60
 00
@@ -7035,11 +7095,11 @@
 c0
 00
 86
-df
+ee
 c0
 01
 07
-20
+2f
 20
 40
 11
@@ -7086,8 +7146,8 @@
 0d
 c0
 00
-06
-f6
+07
+05
 6f
 20
 8a
@@ -7107,11 +7167,11 @@
 c2
 00
 06
-ed
+fc
 20
 40
 07
-2a
+39
 6f
 e3
 8a
@@ -7127,11 +7187,11 @@
 20
 22
 86
-eb
+fa
 20
 20
 06
-da
+e9
 6f
 e0
 8a
@@ -7139,7 +7199,7 @@
 c0
 00
 87
-04
+13
 df
 20
 00
@@ -7158,12 +7218,12 @@
 08
 c2
 00
-06
-fa
+07
+09
 20
 40
 07
-2a
+39
 6f
 e3
 8a
@@ -7178,8 +7238,8 @@
 00
 20
 22
-86
-f8
+87
+07
 20
 40
 11
@@ -7187,7 +7247,7 @@
 20
 20
 06
-da
+e9
 78
 48
 7c
@@ -7215,11 +7275,11 @@
 c2
 00
 07
-08
+17
 24
 21
 87
-06
+15
 20
 40
 11
@@ -7247,11 +7307,11 @@
 20
 3a
 07
-17
+26
 20
 40
 07
-2a
+39
 6f
 e0
 8a
@@ -7259,19 +7319,19 @@
 c0
 00
 87
-10
+1f
 20
 20
 06
-da
+e9
 20
 40
 07
-19
+28
 20
 20
 06
-da
+e9
 6f
 e0
 8a
@@ -7279,7 +7339,7 @@
 24
 3a
 07
-a0
+af
 6f
 e0
 8a
@@ -7299,15 +7359,15 @@
 20
 20
 07
-a0
+af
 20
 40
 07
-27
+36
 20
 40
 07
-2a
+39
 6f
 e3
 8a
@@ -7323,11 +7383,11 @@
 20
 22
 87
-21
+30
 20
 20
 06
-da
+e9
 20
 40
 11
@@ -7343,11 +7403,11 @@
 20
 40
 07
-2c
+3b
 20
 20
 07
-a9
+b8
 78
 54
 7c
@@ -7367,15 +7427,15 @@
 c0
 00
 87
-37
+46
 c0
 01
 07
-3c
+4b
 c0
 02
 07
-93
+a2
 70
 0a
 13
@@ -7427,11 +7487,11 @@
 20
 40
 07
-41
+50
 20
 20
 07
-47
+56
 6f
 e0
 8a
@@ -7463,7 +7523,7 @@
 c0
 00
 87
-5d
+6c
 70
 0a
 16
@@ -7471,75 +7531,75 @@
 c0
 01
 07
-65
+74
 c0
 01
 87
-6a
+79
 c0
 02
 07
-6e
+7d
 c0
 02
 87
-72
+81
 c0
 03
 07
-75
+84
 c0
 03
 87
-78
+87
 c0
 04
 07
-7b
+8a
 c0
 04
 87
-7f
+8e
 c0
 05
 07
-83
+92
 c0
 05
 87
-87
+96
 c0
 06
 07
-8b
+9a
 c0
 06
 87
-8f
+9e
 c0
 07
 07
-7b
+8a
 c0
 07
 87
-7f
+8e
 c0
 08
 07
-83
+92
 c0
 08
 87
-87
+96
 c0
 09
 07
-8b
+9a
 c0
 09
 87
-8f
+9e
 20
 60
 00
@@ -7779,19 +7839,19 @@
 c0
 00
 87
-a6
+b5
 c0
 01
 07
-9c
+ab
 c0
 01
 87
-9c
+ab
 c0
 02
 07
-9c
+ab
 20
 60
 00
@@ -7803,15 +7863,15 @@
 c0
 03
 07
-a2
+b1
 c0
 13
 07
-a4
+b3
 c0
 24
 07
-a0
+af
 70
 0a
 01
@@ -7867,15 +7927,15 @@
 c0
 01
 07
-b1
+c0
 c0
 01
 87
-b1
+c0
 c0
 02
 07
-b1
+c0
 20
 60
 00
@@ -7891,11 +7951,11 @@
 c0
 00
 87
-b6
+c5
 c0
 7f
 87
-bc
+cb
 20
 60
 00
@@ -7948,8 +8008,8 @@
 60
 00
 00
-ec
-7f
+ef
+cd
 aa
 55
 40
@@ -8121,9 +8181,9 @@
 00
 11
 49
+0d
+0f
 02
-0a
-00
 aa
 55
 01
@@ -8158,10 +8218,10 @@
 49
 ff
 ff
-02
-0a
-0e
+0d
 0f
+0e
+00
 ff
 ff
 01
@@ -8207,7 +8267,7 @@
 00
 21
 4c
-01
+00
 aa
 55
 01
@@ -8242,9 +8302,9 @@
 00
 29
 4c
-89
-8b
-8b
+0b
+0a
+ff
 aa
 55
 12
@@ -8928,7 +8988,7 @@
 ff
 aa
 55
-3e
+40
 00
 64
 4a
@@ -8980,8 +9040,10 @@
 ff
 09
 a5
-46
+26
 34
+19
+04
 60
 07
 69
@@ -9250,10 +9312,10 @@
 aa
 aa
 55
-8f
+15
 80
-47
-1c
+8c
+3e
 ff
 1e
 f0
Index: output/program.lis
===================================================================
--- /YC1308AF/branch/mouse/MZ_Project/mouse_public/output/program.lis	(revision 3034)
+++ /YC1308AF/branch/mouse/MZ_Project/mouse_public/output/program.lis	(working copy)
@@ -18,7 +18,7 @@
 000f c066866c beq patch19_5 ,p_mouse_motion 
 0010 c0670447 beq patch19_6 ,p_mouse_dpi_process 
 0011 c0678467 beq patch19_7 ,p_mouse_seting_dpi 
-0012 c0680689 beq patch1a_0 ,p_mouse_check_key_gpio 
+0012 c0680698 beq patch1a_0 ,p_mouse_check_key_gpio 
 0013 c06903d0 beq patch1a_2 ,p_mouse_init_sunt 
 0014 c06983dd beq patch1a_3 ,p_mouse_sensor_poweron 
 0015 c06a84ff beq patch1a_5 ,p_mouse_priority_bb_event 
@@ -448,7 +448,7 @@
 0157 20403dd6 call mouse_param_init 
 0158 20404150 call mouse_key_check_once 
 0159 1a217e07 and rega ,0x07 ,pdata 
-015a c00386bf beq mouse_lmr_button ,p_fcc_mode_start 
+015a c00386ce beq mouse_lmr_button ,p_fcc_mode_start 
 015b 20400140 call p_mouse_g24_report_setting 
 015c 2040015e call p_mouse_store_normal_tx_power 
 015d 20203cab branch mouse_setting_config + 5 
@@ -1374,7 +1374,7 @@
 03fb 204003c8 call p_mouse_logo_led_off 
 03fc 20404055 call mouse_before_hibernate_wheel_gpio_set 
 03fd 6fe0c924 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-03fe 204006b9 call p_mouse_gpio_config_output_high 
+03fe 204006c8 call p_mouse_gpio_config_output_high 
 03ff 20403e80 call mouse_lpm_before_common 
 0400 20403e72 call mouse_gpio_pu_idle 
 0401 204004db call p_mouse_low_voltage_led_off 
@@ -1461,7 +1461,7 @@
 
 p_mouse_3io6key_dpi_check:
 043c 6fe0c913 fetch 1 ,mem_dpi_button_gpio 
-043d 204006bc call p_mouse_gpio_config_output_low 
+043d 204006cb call p_mouse_gpio_config_output_low 
 043e 6848c913 fetcht 1 ,mem_dpi_button_gpio 
 043f 202041d5 branch mouse_3io6key_check 
 
@@ -2227,475 +2227,496 @@
 066c 78547c00 disable user 
 066d 58000000 setarg 0 
 066e 67e348d5 store 6 ,mem_mouse_x 
-066f 20404280 call mouse_check_sensor_data 
+066f 2040067c call p_mouse_check_sensor_data 
 0670 58000089 setarg 0x0089 
 0671 20405d5e call twspi_write 
 0672 204003e3 call p_mouse_dpi_config 
 0673 20403fbe call mouse_zwheel 
-0674 20400687 call p_mouse_key 
+0674 20400696 call p_mouse_key 
 0675 6fe0c8d4 fetch 1 ,mem_mouse_key 
 0676 1fe17e1f and_into 0x1f ,pdata 
 0677 67e0c8d4 store 1 ,mem_mouse_key 
-0678 2434067f nbranch p_mouse_low_power_led_delay_off ,user 
-0679 2040067c call p_mouse_work_state_flag 
-067a 20400684 call p_mouse_drawing_optima 
+0678 2434068e nbranch p_mouse_low_power_led_delay_off ,user 
+0679 2040068b call p_mouse_work_state_flag 
+067a 20400693 call p_mouse_drawing_optima 
 067b 20204584 branch mouse_no_data_timer_init 
 
+p_mouse_check_sensor_data:
+067c 6fe0c4ae fetch 1 ,mem_spi_write_flash_sm 
+067d c1800000 rtnne flash_sm_no_buys 
+067e 6fe0c92c fetch 1 ,mem_config_sensor_type 
+067f c0058681 beq ka8g2 ,p_mouse_pka8g2_sensor_motion 
+0680 20204282 branch mouse_check_sensor_data + 2 
+
+p_mouse_pka8g2_sensor_motion:
+0681 20404304 call mouse_clear_sensor_data 
+0682 6fe0c915 fetch 1 ,mem_sensor_motion_gpio 
+0683 c07f8687 beq gpio_disable ,p_mouse_pka8g2_sensor_motion_1 
+0684 6848c915 fetcht 1 ,mem_sensor_motion_gpio 
+0685 204060fd call gpio_get_bit 
+0686 24608000 nrtn true 
+
+p_mouse_pka8g2_sensor_motion_1:
+0687 58000000 setarg pan_reg_pid_l 
+0688 20405d65 call twspi_read 
+0689 c0ac41f2 bne pka8g2_id1 ,mouse_twspi_reset 
+068a 202042b9 branch mouse_p3212_sensor_motion_2 
+
 p_mouse_work_state_flag:
-067c 704cc900 jam 0 ,mem_low_power_led_flag 
-067d 704cca00 jam 0 ,mem_24g_low_power_stop_blink 
-067e 20600000 rtn 
+068b 704cc900 jam 0 ,mem_low_power_led_flag 
+068c 704cca00 jam 0 ,mem_24g_low_power_stop_blink 
+068d 20600000 rtn 
 
 p_mouse_low_power_led_delay_off:
-067f 20404766 call mouse_drawing_optima_init 
-0680 6fe0ccca fetch 1 ,mem_24g_low_power_stop_blink 
-0681 247a0000 nrtn blank 
-0682 704cca60 jam 0x60 ,mem_24g_low_power_stop_blink 
-0683 20600000 rtn 
+068e 20404766 call mouse_drawing_optima_init 
+068f 6fe0ccca fetch 1 ,mem_24g_low_power_stop_blink 
+0690 247a0000 nrtn blank 
+0691 704cca60 jam 0x60 ,mem_24g_low_power_stop_blink 
+0692 20600000 rtn 
 
 p_mouse_drawing_optima:
-0684 6fe0c92c fetch 1 ,mem_config_sensor_type 
-0685 c1018000 rtneq p3212 
-0686 20204758 branch mouse_drawing_optima 
+0693 6fe0c92c fetch 1 ,mem_config_sensor_type 
+0694 c1018000 rtneq p3212 
+0695 20204758 branch mouse_drawing_optima 
 
 p_mouse_key:
-0687 20400689 call p_mouse_check_key_gpio 
-0688 2020411d branch mouse_key + 1 
+0696 20400698 call p_mouse_check_key_gpio 
+0697 2020411d branch mouse_key + 1 
 
 p_mouse_check_key_gpio:
-0689 6fe0cbf2 fetch 1 ,mem_sensor_shutdown_flag 
-068a 245a4161 ncall mouse_check_key_gpio_once ,blank 
-068b da200000 arg 0 ,rega 
-068c 20400690 call p_mouse_check_lkey_gpio 
-068d 2040069f call p_mouse_check_bkkey_gpio 
-068e 204006ac call p_mouse_check_fwkey_gpio 
-068f 2020415e branch mouse_check_key_gpio_next 
+0698 6fe0cbf2 fetch 1 ,mem_sensor_shutdown_flag 
+0699 245a4161 ncall mouse_check_key_gpio_once ,blank 
+069a da200000 arg 0 ,rega 
+069b 2040069f call p_mouse_check_lkey_gpio 
+069c 204006ae call p_mouse_check_bkkey_gpio 
+069d 204006bb call p_mouse_check_fwkey_gpio 
+069e 2020415e branch mouse_check_key_gpio_next 
 
 p_mouse_check_lkey_gpio:
-0690 6fe0c91c fetch 1 ,mem_lbutton_gpio 
-0691 204006b9 call p_mouse_gpio_config_output_high 
-0692 20404164 call mouse_check_lkey_gpio 
-0693 6848c91c fetcht 1 ,mem_lbutton_gpio 
-0694 20403f96 call mouse_gpio_config_input_pu 
+069f 6fe0c91c fetch 1 ,mem_lbutton_gpio 
+06a0 204006c8 call p_mouse_gpio_config_output_high 
+06a1 20404164 call mouse_check_lkey_gpio 
+06a2 6848c91c fetcht 1 ,mem_lbutton_gpio 
+06a3 20403f96 call mouse_gpio_config_input_pu 
 
 p_mouse_check_rkey_gpio:
-0695 6fe0c91d fetch 1 ,mem_rbutton_gpio 
-0696 204006b9 call p_mouse_gpio_config_output_high 
-0697 2040416a call mouse_check_rkey_gpio 
-0698 6848c91d fetcht 1 ,mem_rbutton_gpio 
-0699 20403f96 call mouse_gpio_config_input_pu 
+06a4 6fe0c91d fetch 1 ,mem_rbutton_gpio 
+06a5 204006c8 call p_mouse_gpio_config_output_high 
+06a6 2040416a call mouse_check_rkey_gpio 
+06a7 6848c91d fetcht 1 ,mem_rbutton_gpio 
+06a8 20403f96 call mouse_gpio_config_input_pu 
 
 p_mouse_check_mkey_gpio:
-069a 6fe0c91e fetch 1 ,mem_mbutton_gpio 
-069b 204006b9 call p_mouse_gpio_config_output_high 
-069c 20404170 call mouse_check_mkey_gpio 
-069d 6848c91e fetcht 1 ,mem_mbutton_gpio 
-069e 20203f96 branch mouse_gpio_config_input_pu 
+06a9 6fe0c91e fetch 1 ,mem_mbutton_gpio 
+06aa 204006c8 call p_mouse_gpio_config_output_high 
+06ab 20404170 call mouse_check_mkey_gpio 
+06ac 6848c91e fetcht 1 ,mem_mbutton_gpio 
+06ad 20203f96 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_bkkey_gpio:
-069f 6fe0c911 fetch 1 ,mem_bk_button_gpio 
-06a0 c17f8000 rtneq gpio_disable 
-06a1 704ba703 jam mouse_bk_key ,mem_mouse_key_temp 
-06a2 6fe0cba2 fetch 1 ,mem_mouse_bkkey_press_status 
-06a3 1fe22600 copy pdata ,regc 
-06a4 6848c911 fetcht 1 ,mem_bk_button_gpio 
-06a5 6fe0c914 fetch 1 ,mem_matrix_public_gpio 
-06a6 c07f86a8 beq gpio_disable ,p_mouse_3io6key_bk_check 
-06a7 2020417e branch mouse_check_bkkey_gpio_next 
+06ae 6fe0c911 fetch 1 ,mem_bk_button_gpio 
+06af c17f8000 rtneq gpio_disable 
+06b0 704ba703 jam mouse_bk_key ,mem_mouse_key_temp 
+06b1 6fe0cba2 fetch 1 ,mem_mouse_bkkey_press_status 
+06b2 1fe22600 copy pdata ,regc 
+06b3 6848c911 fetcht 1 ,mem_bk_button_gpio 
+06b4 6fe0c914 fetch 1 ,mem_matrix_public_gpio 
+06b5 c07f86b7 beq gpio_disable ,p_mouse_3io6key_bk_check 
+06b6 2020417e branch mouse_check_bkkey_gpio_next 
 
 p_mouse_3io6key_bk_check:
-06a8 6fe0c911 fetch 1 ,mem_bk_button_gpio 
-06a9 204006bc call p_mouse_gpio_config_output_low 
-06aa 6848c911 fetcht 1 ,mem_bk_button_gpio 
-06ab 2020418b branch mouse_3io6key_bk_check 
+06b7 6fe0c911 fetch 1 ,mem_bk_button_gpio 
+06b8 204006cb call p_mouse_gpio_config_output_low 
+06b9 6848c911 fetcht 1 ,mem_bk_button_gpio 
+06ba 2020418b branch mouse_3io6key_bk_check 
 
 p_mouse_check_fwkey_gpio:
-06ac 6fe0c912 fetch 1 ,mem_fw_button_gpio 
-06ad c17f8000 rtneq gpio_disable 
-06ae 704ba704 jam mouse_fw_key ,mem_mouse_key_temp 
-06af 6fe0cba3 fetch 1 ,mem_mouse_fwkey_press_status 
-06b0 1fe22600 copy pdata ,regc 
-06b1 6848c912 fetcht 1 ,mem_fw_button_gpio 
-06b2 6fe0c914 fetch 1 ,mem_matrix_public_gpio 
-06b3 c07f86b5 beq gpio_disable ,p_mouse_3io6key_fw_check 
-06b4 20204197 branch mouse_check_fwkey_gpio_next 
+06bb 6fe0c912 fetch 1 ,mem_fw_button_gpio 
+06bc c17f8000 rtneq gpio_disable 
+06bd 704ba704 jam mouse_fw_key ,mem_mouse_key_temp 
+06be 6fe0cba3 fetch 1 ,mem_mouse_fwkey_press_status 
+06bf 1fe22600 copy pdata ,regc 
+06c0 6848c912 fetcht 1 ,mem_fw_button_gpio 
+06c1 6fe0c914 fetch 1 ,mem_matrix_public_gpio 
+06c2 c07f86c4 beq gpio_disable ,p_mouse_3io6key_fw_check 
+06c3 20204197 branch mouse_check_fwkey_gpio_next 
 
 p_mouse_3io6key_fw_check:
-06b5 6fe0c912 fetch 1 ,mem_fw_button_gpio 
-06b6 204006bc call p_mouse_gpio_config_output_low 
-06b7 6848c912 fetcht 1 ,mem_fw_button_gpio 
-06b8 202041a4 branch mouse_3io6key_fw_check 
+06c4 6fe0c912 fetch 1 ,mem_fw_button_gpio 
+06c5 204006cb call p_mouse_gpio_config_output_low 
+06c6 6848c912 fetcht 1 ,mem_fw_button_gpio 
+06c7 202041a4 branch mouse_3io6key_fw_check 
 
 p_mouse_gpio_config_output_high:
-06b9 c17f8000 rtneq gpio_disable 
-06ba d840003f arg gpcfg_output_high ,temp 
-06bb 2020612c branch gpio_config_function_int 
+06c8 c17f8000 rtneq gpio_disable 
+06c9 d840003f arg gpcfg_output_high ,temp 
+06ca 2020612c branch gpio_config_function_int 
 
 p_mouse_gpio_config_output_low:
-06bc c17f8000 rtneq gpio_disable 
-06bd d840003e arg gpcfg_output_low ,temp 
-06be 2020612c branch gpio_config_function_int 
+06cb c17f8000 rtneq gpio_disable 
+06cc d840003e arg gpcfg_output_low ,temp 
+06cd 2020612c branch gpio_config_function_int 
 
 p_fcc_mode_start:
-06bf 58000a91 setarg mem_fcc_mode_end 
-06c0 d8a00a01 arg mem_fcc_mode_start ,contw 
-06c1 98a67200 isub contw ,loopcnt 
-06c2 20407d9b call clear_mem 
-06c3 204006c7 call p_pn9 
-06c4 2040075d call p_fcc_step1_scan_mode 
-06c5 700a0619 jam 0x19 ,mem_fcc_data_length_new 
-06c6 202006da branch p_test_tx_new_param 
+06ce 58000a91 setarg mem_fcc_mode_end 
+06cf d8a00a01 arg mem_fcc_mode_start ,contw 
+06d0 98a67200 isub contw ,loopcnt 
+06d1 20407d9b call clear_mem 
+06d2 204006d6 call p_pn9 
+06d3 2040076c call p_fcc_step1_scan_mode 
+06d4 700a0619 jam 0x19 ,mem_fcc_data_length_new 
+06d5 202006e9 branch p_test_tx_new_param 
 
 p_pn9:
-06c7 df20007a arg 122 ,loopcnt 
-06c8 d8a00a17 arg mem_pn9 ,contw 
-06c9 580001ff setarg 0x1ff 
-06ca 18002400 force 0 ,regb 
+06d6 df20007a arg 122 ,loopcnt 
+06d7 d8a00a17 arg mem_pn9 ,contw 
+06d8 580001ff setarg 0x1ff 
+06d9 18002400 force 0 ,regb 
 
 p_pn9_loop:
-06cb 1fe92200 rshift3 pdata ,rega 
-06cc 1a232200 rshift rega ,rega 
-06cd 9a22a200 ixor rega ,rega 
-06ce 2a2ffe00 isolate1 0 ,rega 
-06cf 7920fe09 setflag true ,9 ,pdata 
-06d0 18430400 rshift temp ,temp 
-06d1 2feffe00 isolate1 0 ,pdata 
-06d2 79208407 setflag true ,7 ,temp 
-06d3 1fe37e00 rshift pdata ,pdata 
-06d4 1a40a401 increase 1 ,regb 
-06d5 2a400e00 compare 0 ,regb ,0x7 
-06d6 242086cb nbranch p_pn9_loop ,true 
-06d7 e0408005 istoret 1 ,contw 
-06d8 c20006cb loop p_pn9_loop 
-06d9 20600000 rtn 
+06da 1fe92200 rshift3 pdata ,rega 
+06db 1a232200 rshift rega ,rega 
+06dc 9a22a200 ixor rega ,rega 
+06dd 2a2ffe00 isolate1 0 ,rega 
+06de 7920fe09 setflag true ,9 ,pdata 
+06df 18430400 rshift temp ,temp 
+06e0 2feffe00 isolate1 0 ,pdata 
+06e1 79208407 setflag true ,7 ,temp 
+06e2 1fe37e00 rshift pdata ,pdata 
+06e3 1a40a401 increase 1 ,regb 
+06e4 2a400e00 compare 0 ,regb ,0x7 
+06e5 242086da nbranch p_pn9_loop ,true 
+06e6 e0408005 istoret 1 ,contw 
+06e7 c20006da loop p_pn9_loop 
+06e8 20600000 rtn 
 
 p_test_tx_new_param:
-06da 6fe38a01 fetch 7 ,mem_fcc_param_new 
-06db 67e38a08 store 7 ,mem_fcc_param 
+06e9 6fe38a01 fetch 7 ,mem_fcc_param_new 
+06ea 67e38a08 store 7 ,mem_fcc_param 
 
 p_test_tx_or_rx:
-06dc 6fe08a0a fetch 1 ,mem_fcc_txrx 
-06dd c00086df beq 0x01 ,p_test_tx_start 
-06de c0010720 beq 0x02 ,p_test_rx_start 
+06eb 6fe08a0a fetch 1 ,mem_fcc_txrx 
+06ec c00086ee beq 0x01 ,p_test_tx_start 
+06ed c001072f beq 0x02 ,p_test_rx_start 
 
 p_test_tx_start:
 
 p_test_ble_tx_on:
-06df 2040115d call set_sync_on 
-06e0 68488a08 fetcht 1 ,mem_fcc_ch 
-06e1 20401201 call set_freq_tx 
-06e2 20401651 call le_enable 
-06e3 79202a00 set1 txgfsk ,radio_ctrl 
-06e4 782efc00 enable encode_fec0 
-06e5 78307c00 enable is_tx 
-06e6 7850fc00 disable is_rx 
-06e7 204016f0 call le_wait_tx 
-06e8 6fe08a0c fetch 1 ,mem_fcc_data 
-06e9 67f0890d store 1 ,core_tx_test_mode 
-06ea c00006f6 beq 0 ,p_test_tx_data 
+06ee 2040115d call set_sync_on 
+06ef 68488a08 fetcht 1 ,mem_fcc_ch 
+06f0 20401201 call set_freq_tx 
+06f1 20401651 call le_enable 
+06f2 79202a00 set1 txgfsk ,radio_ctrl 
+06f3 782efc00 enable encode_fec0 
+06f4 78307c00 enable is_tx 
+06f5 7850fc00 disable is_rx 
+06f6 204016f0 call le_wait_tx 
+06f7 6fe08a0c fetch 1 ,mem_fcc_data 
+06f8 67f0890d store 1 ,core_tx_test_mode 
+06f9 c0000705 beq 0 ,p_test_tx_data 
 
 p_test_tx_carrier_loop:
-06eb 6f208a0d fetchr loopcnt ,1 ,mem_fcc_data_length 
-06ec d8c00a17 arg mem_pn9 ,contr 
+06fa 6f208a0d fetchr loopcnt ,1 ,mem_fcc_data_length 
+06fb d8c00a17 arg mem_pn9 ,contr 
 
 p_pnloop_carrier:
-06ed efe08006 ifetch 1 ,contr 
-06ee 08008608 inject mod ,8 
-06ef c20006ed loop p_pnloop_carrier 
-06f0 2040072a call p_key_wheel_process 
-06f1 6fe38a08 fetch 7 ,mem_fcc_param 
-06f2 684b8a01 fetcht 7 ,mem_fcc_param_new 
-06f3 98467c00 isub temp ,null 
-06f4 202286eb branch p_test_tx_carrier_loop ,zero 
-06f5 202006da branch p_test_tx_new_param 
+06fc efe08006 ifetch 1 ,contr 
+06fd 08008608 inject mod ,8 
+06fe c20006fc loop p_pnloop_carrier 
+06ff 20400739 call p_key_wheel_process 
+0700 6fe38a08 fetch 7 ,mem_fcc_param 
+0701 684b8a01 fetcht 7 ,mem_fcc_param_new 
+0702 98467c00 isub temp ,null 
+0703 202286fa branch p_test_tx_carrier_loop ,zero 
+0704 202006e9 branch p_test_tx_new_param 
 
 p_test_tx_data:
-06f6 6fe08a0e fetch 1 ,mem_fcc_hop 
-06f7 c0008704 beq 1 ,p_tx_data_hopping 
+0705 6fe08a0e fetch 1 ,mem_fcc_hop 
+0706 c0008713 beq 1 ,p_tx_data_hopping 
 
 p_tx_data:
-06f8 df200035 arg 53 ,loopcnt 
-06f9 d8c00a17 arg mem_pn9 ,contr 
+0707 df200035 arg 53 ,loopcnt 
+0708 d8c00a17 arg mem_pn9 ,contr 
 
 p_pnloop_stable:
-06fa efe08006 ifetch 1 ,contr 
-06fb 08008608 inject mod ,8 
-06fc c20006fa loop p_pnloop_stable 
+0709 efe08006 ifetch 1 ,contr 
+070a 08008608 inject mod ,8 
+070b c2000709 loop p_pnloop_stable 
 
 p_stable_stop:
-06fd 2040072a call p_key_wheel_process 
-06fe 6fe38a08 fetch 7 ,mem_fcc_param 
-06ff 684b8a01 fetcht 7 ,mem_fcc_param_new 
-0700 98467c00 isub temp ,null 
-0701 202286f8 branch p_tx_data ,zero 
-0702 2040114b call shutdown_radio 
-0703 202006da branch p_test_tx_new_param 
+070c 20400739 call p_key_wheel_process 
+070d 6fe38a08 fetch 7 ,mem_fcc_param 
+070e 684b8a01 fetcht 7 ,mem_fcc_param_new 
+070f 98467c00 isub temp ,null 
+0710 20228707 branch p_tx_data ,zero 
+0711 2040114b call shutdown_radio 
+0712 202006e9 branch p_test_tx_new_param 
 
 p_tx_data_hopping:
-0704 78487c00 disable swfine 
-0705 db60001a arg 26 ,stop_watch 
+0713 78487c00 disable swfine 
+0714 db60001a arg 26 ,stop_watch 
 
 p_tx_data_hopping2:
-0706 df200037 arg 55 ,loopcnt 
-0707 d8c00a17 arg mem_pn9 ,contr 
+0715 df200037 arg 55 ,loopcnt 
+0716 d8c00a17 arg mem_pn9 ,contr 
 
 p_pnloop_stable2:
-0708 efe08006 ifetch 1 ,contr 
-0709 08008608 inject mod ,8 
-070a c2000708 loop p_pnloop_stable2 
-070b 24218706 nbranch p_tx_data_hopping2 ,timeout 
-070c 2040114b call shutdown_radio 
-070d d8e0000f arg 15 ,queue 
-070e 58000320 setarg 800 
-070f 20407ddb call timer_init 
+0717 efe08006 ifetch 1 ,contr 
+0718 08008608 inject mod ,8 
+0719 c2000717 loop p_pnloop_stable2 
+071a 24218715 nbranch p_tx_data_hopping2 ,timeout 
+071b 2040114b call shutdown_radio 
+071c d8e0000f arg 15 ,queue 
+071d 58000320 setarg 800 
+071e 20407ddb call timer_init 
 
 p_500ms_cycle:
-0710 d8e0000f arg 15 ,queue 
-0711 20407de9 call timer_check 
-0712 203a0717 branch p_hopping_change_ch ,blank 
-0713 2040072a call p_key_wheel_process 
-0714 6fe08a12 fetch 1 ,mem_fcc_mode_switch 
-0715 c0008710 beq fcc_step1_scan_mode ,p_500ms_cycle 
-0716 202006da branch p_test_tx_new_param 
+071f d8e0000f arg 15 ,queue 
+0720 20407de9 call timer_check 
+0721 203a0726 branch p_hopping_change_ch ,blank 
+0722 20400739 call p_key_wheel_process 
+0723 6fe08a12 fetch 1 ,mem_fcc_mode_switch 
+0724 c000871f beq fcc_step1_scan_mode ,p_500ms_cycle 
+0725 202006e9 branch p_test_tx_new_param 
 
 p_hopping_change_ch:
-0717 20400719 call p_hopping_ch_update 
-0718 202006da branch p_test_tx_new_param 
+0726 20400728 call p_hopping_ch_update 
+0727 202006e9 branch p_test_tx_new_param 
 
 p_hopping_ch_update:
-0719 6fe08a16 fetch 1 ,mem_fcc_scan_mode_mkey_press 
-071a 243a07a0 nbranch p_fcc_set_channel_2408 ,blank 
-071b 6fe08a01 fetch 1 ,mem_fcc_ch_new 
-071c 1fe0fe02 pincrease 2 
-071d 67e08a01 store 1 ,mem_fcc_ch_new 
-071e c1a50000 rtnne 74 
-071f 202007a0 branch p_fcc_set_channel_2408 
+0728 6fe08a16 fetch 1 ,mem_fcc_scan_mode_mkey_press 
+0729 243a07af nbranch p_fcc_set_channel_2408 ,blank 
+072a 6fe08a01 fetch 1 ,mem_fcc_ch_new 
+072b 1fe0fe02 pincrease 2 
+072c 67e08a01 store 1 ,mem_fcc_ch_new 
+072d c1a50000 rtnne 74 
+072e 202007af branch p_fcc_set_channel_2408 
 
 p_test_rx_start:
-0720 20400727 call p_test_ble_rx_on 
+072f 20400736 call p_test_ble_rx_on 
 
 p_test_rx_loop:
-0721 2040072a call p_key_wheel_process 
-0722 6fe38a08 fetch 7 ,mem_fcc_param 
-0723 684b8a01 fetcht 7 ,mem_fcc_param_new 
-0724 98467c00 isub temp ,null 
-0725 20228721 branch p_test_rx_loop ,zero 
-0726 202006da branch p_test_tx_new_param 
+0730 20400739 call p_key_wheel_process 
+0731 6fe38a08 fetch 7 ,mem_fcc_param 
+0732 684b8a01 fetcht 7 ,mem_fcc_param_new 
+0733 98467c00 isub temp ,null 
+0734 20228730 branch p_test_rx_loop ,zero 
+0735 202006e9 branch p_test_tx_new_param 
 
 p_test_ble_rx_on:
-0727 2040114b call shutdown_radio 
-0728 68488a08 fetcht 1 ,mem_fcc_ch 
-0729 20201674 branch le_rf_rx_enable 
+0736 2040114b call shutdown_radio 
+0737 68488a08 fetcht 1 ,mem_fcc_ch 
+0738 20201674 branch le_rf_rx_enable 
 
 p_key_wheel_process:
-072a 2040072c call p_key_process 
-072b 202007a9 branch p_wheel_process 
+0739 2040073b call p_key_process 
+073a 202007b8 branch p_wheel_process 
 
 p_key_process:
-072c 78547c00 disable user 
-072d 2040411c call mouse_key 
-072e 24740000 nrtn user 
-072f 6fe0c8d4 fetch 1 ,mem_mouse_key 
-0730 c0008737 beq mouse_l_button ,p_fcc_mode_exit 
-0731 c001073c beq mouse_r_button ,p_fcc_mode_switch 
-0732 c0020793 beq mouse_m_button ,p_fcc_mkey_channel_switch 
-0733 700a1300 jam 0 ,mem_fcc_lkey_press 
-0734 700a1400 jam 0 ,mem_fcc_rkey_press 
-0735 700a1500 jam 0 ,mem_fcc_mkey_press 
-0736 20600000 rtn 
+073b 78547c00 disable user 
+073c 2040411c call mouse_key 
+073d 24740000 nrtn user 
+073e 6fe0c8d4 fetch 1 ,mem_mouse_key 
+073f c0008746 beq mouse_l_button ,p_fcc_mode_exit 
+0740 c001074b beq mouse_r_button ,p_fcc_mode_switch 
+0741 c00207a2 beq mouse_m_button ,p_fcc_mkey_channel_switch 
+0742 700a1300 jam 0 ,mem_fcc_lkey_press 
+0743 700a1400 jam 0 ,mem_fcc_rkey_press 
+0744 700a1500 jam 0 ,mem_fcc_mkey_press 
+0745 20600000 rtn 
 
 p_fcc_mode_exit:
-0737 6fe08a13 fetch 1 ,mem_fcc_lkey_press 
-0738 247a0000 nrtn blank 
-0739 700a1301 jam 1 ,mem_fcc_lkey_press 
-073a 70801001 jam 1 ,core_reset 
-073b 2020137c branch assert 
+0746 6fe08a13 fetch 1 ,mem_fcc_lkey_press 
+0747 247a0000 nrtn blank 
+0748 700a1301 jam 1 ,mem_fcc_lkey_press 
+0749 70801001 jam 1 ,core_reset 
+074a 2020137c branch assert 
 
 p_fcc_mode_switch:
-073c 6fe08a14 fetch 1 ,mem_fcc_rkey_press 
-073d 247a0000 nrtn blank 
-073e 700a1401 jam 1 ,mem_fcc_rkey_press 
-073f 20400741 call p_fcc_mode_cnt 
-0740 20200747 branch p_fcc_mode_choose 
+074b 6fe08a14 fetch 1 ,mem_fcc_rkey_press 
+074c 247a0000 nrtn blank 
+074d 700a1401 jam 1 ,mem_fcc_rkey_press 
+074e 20400750 call p_fcc_mode_cnt 
+074f 20200756 branch p_fcc_mode_choose 
 
 p_fcc_mode_cnt:
-0741 6fe08a12 fetch 1 ,mem_fcc_mode_switch 
-0742 1fe0fe01 pincrease 1 
-0743 67e08a12 store 1 ,mem_fcc_mode_switch 
-0744 c18a0000 rtnne fcc_step_max 
-0745 700a1201 jam fcc_step1_scan_mode ,mem_fcc_mode_switch 
-0746 20600000 rtn 
+0750 6fe08a12 fetch 1 ,mem_fcc_mode_switch 
+0751 1fe0fe01 pincrease 1 
+0752 67e08a12 store 1 ,mem_fcc_mode_switch 
+0753 c18a0000 rtnne fcc_step_max 
+0754 700a1201 jam fcc_step1_scan_mode ,mem_fcc_mode_switch 
+0755 20600000 rtn 
 
 p_fcc_mode_choose:
-0747 6fe08a12 fetch 1 ,mem_fcc_mode_switch 
-0748 c000875d beq fcc_step1_scan_mode ,p_fcc_step1_scan_mode 
-0749 700a1600 jam 0 ,mem_fcc_scan_mode_mkey_press 
-074a c0010765 beq fcc_step2_mod_tx_2408 ,p_fcc_step2_mod_tx_2408 
-074b c001876a beq fcc_step3_mod_tx_2440 ,p_fcc_step3_mod_tx_2440 
-074c c002076e beq fcc_step4_mod_tx_2474 ,p_fcc_step4_mod_tx_2474 
-074d c0028772 beq fcc_step5_mod_rx_2408 ,p_fcc_step5_mod_rx_2408 
-074e c0030775 beq fcc_step6_mod_rx_2440 ,p_fcc_step6_mod_rx_2440 
-074f c0038778 beq fcc_step7_mod_rx_2474 ,p_fcc_step7_mod_rx_2474 
-0750 c004077b beq fcc_step8_non_mod_tx_2408 ,p_fcc_non_mod_tx_2408 
-0751 c004877f beq fcc_step9_non_mod_tx_2440 ,p_fcc_non_mod_tx_2440 
-0752 c0050783 beq fcc_step10_non_mod_tx_2474 ,p_fcc_non_mod_tx_2474 
-0753 c0058787 beq fcc_step11_non_mod_rx_2408 ,p_fcc_non_mod_rx_2408 
-0754 c006078b beq fcc_step12_non_mod_rx_2440 ,p_fcc_non_mod_rx_2440 
-0755 c006878f beq fcc_step13_non_mod_rx_2474 ,p_fcc_non_mod_rx_2474 
-0756 c007077b beq fcc_step14_non_mod_tx_2408 ,p_fcc_non_mod_tx_2408 
-0757 c007877f beq fcc_step15_non_mod_tx_2440 ,p_fcc_non_mod_tx_2440 
-0758 c0080783 beq fcc_step16_non_mod_tx_2474 ,p_fcc_non_mod_tx_2474 
-0759 c0088787 beq fcc_step17_non_mod_rx_2408 ,p_fcc_non_mod_rx_2408 
-075a c009078b beq fcc_step18_non_mod_rx_2440 ,p_fcc_non_mod_rx_2440 
-075b c009878f beq fcc_step19_non_mod_rx_2474 ,p_fcc_non_mod_rx_2474 
-075c 20600000 rtn 
+0756 6fe08a12 fetch 1 ,mem_fcc_mode_switch 
+0757 c000876c beq fcc_step1_scan_mode ,p_fcc_step1_scan_mode 
+0758 700a1600 jam 0 ,mem_fcc_scan_mode_mkey_press 
+0759 c0010774 beq fcc_step2_mod_tx_2408 ,p_fcc_step2_mod_tx_2408 
+075a c0018779 beq fcc_step3_mod_tx_2440 ,p_fcc_step3_mod_tx_2440 
+075b c002077d beq fcc_step4_mod_tx_2474 ,p_fcc_step4_mod_tx_2474 
+075c c0028781 beq fcc_step5_mod_rx_2408 ,p_fcc_step5_mod_rx_2408 
+075d c0030784 beq fcc_step6_mod_rx_2440 ,p_fcc_step6_mod_rx_2440 
+075e c0038787 beq fcc_step7_mod_rx_2474 ,p_fcc_step7_mod_rx_2474 
+075f c004078a beq fcc_step8_non_mod_tx_2408 ,p_fcc_non_mod_tx_2408 
+0760 c004878e beq fcc_step9_non_mod_tx_2440 ,p_fcc_non_mod_tx_2440 
+0761 c0050792 beq fcc_step10_non_mod_tx_2474 ,p_fcc_non_mod_tx_2474 
+0762 c0058796 beq fcc_step11_non_mod_rx_2408 ,p_fcc_non_mod_rx_2408 
+0763 c006079a beq fcc_step12_non_mod_rx_2440 ,p_fcc_non_mod_rx_2440 
+0764 c006879e beq fcc_step13_non_mod_rx_2474 ,p_fcc_non_mod_rx_2474 
+0765 c007078a beq fcc_step14_non_mod_tx_2408 ,p_fcc_non_mod_tx_2408 
+0766 c007878e beq fcc_step15_non_mod_tx_2440 ,p_fcc_non_mod_tx_2440 
+0767 c0080792 beq fcc_step16_non_mod_tx_2474 ,p_fcc_non_mod_tx_2474 
+0768 c0088796 beq fcc_step17_non_mod_rx_2408 ,p_fcc_non_mod_rx_2408 
+0769 c009079a beq fcc_step18_non_mod_rx_2440 ,p_fcc_non_mod_rx_2440 
+076a c009879e beq fcc_step19_non_mod_rx_2474 ,p_fcc_non_mod_rx_2474 
+076b 20600000 rtn 
 
 p_fcc_step1_scan_mode:
-075d 700a1201 jam fcc_step1_scan_mode ,mem_fcc_mode_switch 
-075e 700a1600 jam 0 ,mem_fcc_scan_mode_mkey_press 
-075f 700a0106 jam 6 ,mem_fcc_ch_new 
-0760 700a0500 jam 0 ,mem_fcc_data_new 
-0761 700a0301 jam 0x01 ,mem_fcc_txrx_new 
-0762 700a0401 jam 0x01 ,mem_fcc_btble_new 
-0763 700a0701 jam 0x01 ,mem_fcc_hop_new 
-0764 20600000 rtn 
+076c 700a1201 jam fcc_step1_scan_mode ,mem_fcc_mode_switch 
+076d 700a1600 jam 0 ,mem_fcc_scan_mode_mkey_press 
+076e 700a0106 jam 6 ,mem_fcc_ch_new 
+076f 700a0500 jam 0 ,mem_fcc_data_new 
+0770 700a0301 jam 0x01 ,mem_fcc_txrx_new 
+0771 700a0401 jam 0x01 ,mem_fcc_btble_new 
+0772 700a0701 jam 0x01 ,mem_fcc_hop_new 
+0773 20600000 rtn 
 
 p_fcc_step2_mod_tx_2408:
-0765 700a0106 jam 6 ,mem_fcc_ch_new 
-0766 700a0500 jam 0x00 ,mem_fcc_data_new 
-0767 700a0301 jam 0x01 ,mem_fcc_txrx_new 
-0768 700a0700 jam 0x00 ,mem_fcc_hop_new 
-0769 20600000 rtn 
+0774 700a0106 jam 6 ,mem_fcc_ch_new 
+0775 700a0500 jam 0x00 ,mem_fcc_data_new 
+0776 700a0301 jam 0x01 ,mem_fcc_txrx_new 
+0777 700a0700 jam 0x00 ,mem_fcc_hop_new 
+0778 20600000 rtn 
 
 p_fcc_step3_mod_tx_2440:
-076a 700a0126 jam 38 ,mem_fcc_ch_new 
-076b 700a0500 jam 0x00 ,mem_fcc_data_new 
-076c 700a0301 jam 0x01 ,mem_fcc_txrx_new 
-076d 20600000 rtn 
+0779 700a0126 jam 38 ,mem_fcc_ch_new 
+077a 700a0500 jam 0x00 ,mem_fcc_data_new 
+077b 700a0301 jam 0x01 ,mem_fcc_txrx_new 
+077c 20600000 rtn 
 
 p_fcc_step4_mod_tx_2474:
-076e 700a0148 jam 72 ,mem_fcc_ch_new 
-076f 700a0500 jam 0x00 ,mem_fcc_data_new 
-0770 700a0301 jam 0x01 ,mem_fcc_txrx_new 
-0771 20600000 rtn 
+077d 700a0148 jam 72 ,mem_fcc_ch_new 
+077e 700a0500 jam 0x00 ,mem_fcc_data_new 
+077f 700a0301 jam 0x01 ,mem_fcc_txrx_new 
+0780 20600000 rtn 
 
 p_fcc_step5_mod_rx_2408:
-0772 700a0106 jam 6 ,mem_fcc_ch_new 
-0773 700a0302 jam 0x02 ,mem_fcc_txrx_new 
-0774 20600000 rtn 
+0781 700a0106 jam 6 ,mem_fcc_ch_new 
+0782 700a0302 jam 0x02 ,mem_fcc_txrx_new 
+0783 20600000 rtn 
 
 p_fcc_step6_mod_rx_2440:
-0775 700a0126 jam 38 ,mem_fcc_ch_new 
-0776 700a0302 jam 0x02 ,mem_fcc_txrx_new 
-0777 20600000 rtn 
+0784 700a0126 jam 38 ,mem_fcc_ch_new 
+0785 700a0302 jam 0x02 ,mem_fcc_txrx_new 
+0786 20600000 rtn 
 
 p_fcc_step7_mod_rx_2474:
-0778 700a0148 jam 72 ,mem_fcc_ch_new 
-0779 700a0302 jam 0x02 ,mem_fcc_txrx_new 
-077a 20600000 rtn 
+0787 700a0148 jam 72 ,mem_fcc_ch_new 
+0788 700a0302 jam 0x02 ,mem_fcc_txrx_new 
+0789 20600000 rtn 
 
 p_fcc_non_mod_tx_2408:
-077b 700a0106 jam 6 ,mem_fcc_ch_new 
-077c 700a0522 jam 0x22 ,mem_fcc_data_new 
-077d 700a0301 jam 0x01 ,mem_fcc_txrx_new 
-077e 20600000 rtn 
+078a 700a0106 jam 6 ,mem_fcc_ch_new 
+078b 700a0522 jam 0x22 ,mem_fcc_data_new 
+078c 700a0301 jam 0x01 ,mem_fcc_txrx_new 
+078d 20600000 rtn 
 
 p_fcc_non_mod_tx_2440:
-077f 700a0126 jam 38 ,mem_fcc_ch_new 
-0780 700a0522 jam 0x22 ,mem_fcc_data_new 
-0781 700a0301 jam 0x01 ,mem_fcc_txrx_new 
-0782 20600000 rtn 
+078e 700a0126 jam 38 ,mem_fcc_ch_new 
+078f 700a0522 jam 0x22 ,mem_fcc_data_new 
+0790 700a0301 jam 0x01 ,mem_fcc_txrx_new 
+0791 20600000 rtn 
 
 p_fcc_non_mod_tx_2474:
-0783 700a0148 jam 72 ,mem_fcc_ch_new 
-0784 700a0522 jam 0x22 ,mem_fcc_data_new 
-0785 700a0301 jam 0x01 ,mem_fcc_txrx_new 
-0786 20600000 rtn 
+0792 700a0148 jam 72 ,mem_fcc_ch_new 
+0793 700a0522 jam 0x22 ,mem_fcc_data_new 
+0794 700a0301 jam 0x01 ,mem_fcc_txrx_new 
+0795 20600000 rtn 
 
 p_fcc_non_mod_rx_2408:
-0787 700a0106 jam 6 ,mem_fcc_ch_new 
-0788 700a0522 jam 0x22 ,mem_fcc_data_new 
-0789 700a0302 jam 0x02 ,mem_fcc_txrx_new 
-078a 20600000 rtn 
+0796 700a0106 jam 6 ,mem_fcc_ch_new 
+0797 700a0522 jam 0x22 ,mem_fcc_data_new 
+0798 700a0302 jam 0x02 ,mem_fcc_txrx_new 
+0799 20600000 rtn 
 
 p_fcc_non_mod_rx_2440:
-078b 700a0126 jam 38 ,mem_fcc_ch_new 
-078c 700a0522 jam 0x22 ,mem_fcc_data_new 
-078d 700a0302 jam 0x02 ,mem_fcc_txrx_new 
-078e 20600000 rtn 
+079a 700a0126 jam 38 ,mem_fcc_ch_new 
+079b 700a0522 jam 0x22 ,mem_fcc_data_new 
+079c 700a0302 jam 0x02 ,mem_fcc_txrx_new 
+079d 20600000 rtn 
 
 p_fcc_non_mod_rx_2474:
-078f 700a0148 jam 72 ,mem_fcc_ch_new 
-0790 700a0522 jam 0x22 ,mem_fcc_data_new 
-0791 700a0302 jam 0x02 ,mem_fcc_txrx_new 
-0792 20600000 rtn 
+079e 700a0148 jam 72 ,mem_fcc_ch_new 
+079f 700a0522 jam 0x22 ,mem_fcc_data_new 
+07a0 700a0302 jam 0x02 ,mem_fcc_txrx_new 
+07a1 20600000 rtn 
 
 p_fcc_mkey_channel_switch:
-0793 6fe08a15 fetch 1 ,mem_fcc_mkey_press 
-0794 247a0000 nrtn blank 
-0795 700a1501 jam 1 ,mem_fcc_mkey_press 
-0796 6fe08a12 fetch 1 ,mem_fcc_mode_switch 
-0797 c00087a6 beq fcc_step1_scan_mode ,p_fcc_mkey_scan_mode_ch_switch 
-0798 c001079c beq fcc_step2_mod_tx_2408 ,p_fcc_mkey_mod_tx_channel_switch 
-0799 c001879c beq fcc_step3_mod_tx_2440 ,p_fcc_mkey_mod_tx_channel_switch 
-079a c002079c beq fcc_step4_mod_tx_2474 ,p_fcc_mkey_mod_tx_channel_switch 
-079b 20600000 rtn 
+07a2 6fe08a15 fetch 1 ,mem_fcc_mkey_press 
+07a3 247a0000 nrtn blank 
+07a4 700a1501 jam 1 ,mem_fcc_mkey_press 
+07a5 6fe08a12 fetch 1 ,mem_fcc_mode_switch 
+07a6 c00087b5 beq fcc_step1_scan_mode ,p_fcc_mkey_scan_mode_ch_switch 
+07a7 c00107ab beq fcc_step2_mod_tx_2408 ,p_fcc_mkey_mod_tx_channel_switch 
+07a8 c00187ab beq fcc_step3_mod_tx_2440 ,p_fcc_mkey_mod_tx_channel_switch 
+07a9 c00207ab beq fcc_step4_mod_tx_2474 ,p_fcc_mkey_mod_tx_channel_switch 
+07aa 20600000 rtn 
 
 p_fcc_mkey_mod_tx_channel_switch:
-079c 6fe08a01 fetch 1 ,mem_fcc_ch_new 
-079d c00307a2 beq 6 ,p_fcc_set_channel_2440 
-079e c01307a4 beq 38 ,p_fcc_set_channel_2474 
-079f c02407a0 beq 72 ,p_fcc_set_channel_2408 
+07ab 6fe08a01 fetch 1 ,mem_fcc_ch_new 
+07ac c00307b1 beq 6 ,p_fcc_set_channel_2440 
+07ad c01307b3 beq 38 ,p_fcc_set_channel_2474 
+07ae c02407af beq 72 ,p_fcc_set_channel_2408 
 
 p_fcc_set_channel_2408:
-07a0 700a0106 jam 6 ,mem_fcc_ch_new 
-07a1 20600000 rtn 
+07af 700a0106 jam 6 ,mem_fcc_ch_new 
+07b0 20600000 rtn 
 
 p_fcc_set_channel_2440:
-07a2 700a0126 jam 38 ,mem_fcc_ch_new 
-07a3 20600000 rtn 
+07b1 700a0126 jam 38 ,mem_fcc_ch_new 
+07b2 20600000 rtn 
 
 p_fcc_set_channel_2474:
-07a4 700a0148 jam 72 ,mem_fcc_ch_new 
-07a5 20600000 rtn 
+07b3 700a0148 jam 72 ,mem_fcc_ch_new 
+07b4 20600000 rtn 
 
 p_fcc_mkey_scan_mode_ch_switch:
-07a6 700a0106 jam 6 ,mem_fcc_ch_new 
-07a7 700a1601 jam 1 ,mem_fcc_scan_mode_mkey_press 
-07a8 20600000 rtn 
+07b5 700a0106 jam 6 ,mem_fcc_ch_new 
+07b6 700a1601 jam 1 ,mem_fcc_scan_mode_mkey_press 
+07b7 20600000 rtn 
 
 p_wheel_process:
-07a9 20403fc8 call mouse_wheel_check 
-07aa 6fe0c8e4 fetch 1 ,mem_mouse_z_data 
-07ab 207a0000 rtn blank 
-07ac 6fe08a12 fetch 1 ,mem_fcc_mode_switch 
-07ad c00107b1 beq fcc_step2_mod_tx_2408 ,p_fcc_wheel_mod_tx_channel_switch 
-07ae c00187b1 beq fcc_step3_mod_tx_2440 ,p_fcc_wheel_mod_tx_channel_switch 
-07af c00207b1 beq fcc_step4_mod_tx_2474 ,p_fcc_wheel_mod_tx_channel_switch 
-07b0 20600000 rtn 
+07b8 20403fc8 call mouse_wheel_check 
+07b9 6fe0c8e4 fetch 1 ,mem_mouse_z_data 
+07ba 207a0000 rtn blank 
+07bb 6fe08a12 fetch 1 ,mem_fcc_mode_switch 
+07bc c00107c0 beq fcc_step2_mod_tx_2408 ,p_fcc_wheel_mod_tx_channel_switch 
+07bd c00187c0 beq fcc_step3_mod_tx_2440 ,p_fcc_wheel_mod_tx_channel_switch 
+07be c00207c0 beq fcc_step4_mod_tx_2474 ,p_fcc_wheel_mod_tx_channel_switch 
+07bf 20600000 rtn 
 
 p_fcc_wheel_mod_tx_channel_switch:
-07b1 6fe0c8e4 fetch 1 ,mem_mouse_z_data 
-07b2 7048e400 jam 0 ,mem_mouse_z_data 
-07b3 c00087b6 beq 0x01 ,p_fcc_wheel_mod_tx_channel_inc 
-07b4 c07f87bc beq 0xff ,p_fcc_wheel_mod_tx_channel_dec 
-07b5 20600000 rtn 
+07c0 6fe0c8e4 fetch 1 ,mem_mouse_z_data 
+07c1 7048e400 jam 0 ,mem_mouse_z_data 
+07c2 c00087c5 beq 0x01 ,p_fcc_wheel_mod_tx_channel_inc 
+07c3 c07f87cb beq 0xff ,p_fcc_wheel_mod_tx_channel_dec 
+07c4 20600000 rtn 
 
 p_fcc_wheel_mod_tx_channel_inc:
-07b6 6fe08a01 fetch 1 ,mem_fcc_ch_new 
-07b7 1fe0fe01 pincrease 1 
-07b8 67e08a01 store 1 ,mem_fcc_ch_new 
-07b9 c1a48000 rtnne 73 
-07ba 700a0106 jam 6 ,mem_fcc_ch_new 
-07bb 20600000 rtn 
+07c5 6fe08a01 fetch 1 ,mem_fcc_ch_new 
+07c6 1fe0fe01 pincrease 1 
+07c7 67e08a01 store 1 ,mem_fcc_ch_new 
+07c8 c1a48000 rtnne 73 
+07c9 700a0106 jam 6 ,mem_fcc_ch_new 
+07ca 20600000 rtn 
 
 p_fcc_wheel_mod_tx_channel_dec:
-07bc 6fe08a01 fetch 1 ,mem_fcc_ch_new 
-07bd 1fe0ffff pincrease -1 
-07be 67e08a01 store 1 ,mem_fcc_ch_new 
-07bf c1828000 rtnne 5 
-07c0 700a0148 jam 72 ,mem_fcc_ch_new 
-07c1 20600000 rtn 
+07cb 6fe08a01 fetch 1 ,mem_fcc_ch_new 
+07cc 1fe0ffff pincrease -1 
+07cd 67e08a01 store 1 ,mem_fcc_ch_new 
+07ce c1828000 rtnne 5 
+07cf 700a0148 jam 72 ,mem_fcc_ch_new 
+07d0 20600000 rtn 
               org 0x800
 
 start:
Index: output/ramcode.rom
===================================================================
--- /YC1308AF/branch/mouse/MZ_Project/mouse_public/output/ramcode.rom	(revision 3034)
+++ /YC1308AF/branch/mouse/MZ_Project/mouse_public/output/ramcode.rom	(working copy)
@@ -16,7 +16,7 @@
 c066866c
 c0670447
 c0678467
-c0680689
+c0680698
 c06903d0
 c06983dd
 c06a84ff
@@ -344,7 +344,7 @@
 20403dd6
 20404150
 1a217e07
-c00386bf
+c00386ce
 20400140
 2040015e
 20203cab
@@ -1020,7 +1020,7 @@
 204003c8
 20404055
 6fe0c924
-204006b9
+204006c8
 20403e80
 20403e72
 204004db
@@ -1083,7 +1083,7 @@
 c07f843c
 2020407f
 6fe0c913
-204006bc
+204006cb
 6848c913
 202041d5
 18427e00
@@ -1645,19 +1645,34 @@
 78547c00
 58000000
 67e348d5
-20404280
+2040067c
 58000089
 20405d5e
 204003e3
 20403fbe
-20400687
+20400696
 6fe0c8d4
 1fe17e1f
 67e0c8d4
-2434067f
-2040067c
-20400684
+2434068e
+2040068b
+20400693
 20204584
+6fe0c4ae
+c1800000
+6fe0c92c
+c0058681
+20204282
+20404304
+6fe0c915
+c07f8687
+6848c915
+204060fd
+24608000
+58000000
+20405d65
+c0ac41f2
+202042b9
 704cc900
 704cca00
 20600000
@@ -1669,27 +1684,27 @@
 6fe0c92c
 c1018000
 20204758
-20400689
+20400698
 2020411d
 6fe0cbf2
 245a4161
 da200000
-20400690
 2040069f
-204006ac
+204006ae
+204006bb
 2020415e
 6fe0c91c
-204006b9
+204006c8
 20404164
 6848c91c
 20403f96
 6fe0c91d
-204006b9
+204006c8
 2040416a
 6848c91d
 20403f96
 6fe0c91e
-204006b9
+204006c8
 20404170
 6848c91e
 20203f96
@@ -1700,10 +1715,10 @@
 1fe22600
 6848c911
 6fe0c914
-c07f86a8
+c07f86b7
 2020417e
 6fe0c911
-204006bc
+204006cb
 6848c911
 2020418b
 6fe0c912
@@ -1713,10 +1728,10 @@
 1fe22600
 6848c912
 6fe0c914
-c07f86b5
+c07f86c4
 20204197
 6fe0c912
-204006bc
+204006cb
 6848c912
 202041a4
 c17f8000
@@ -1729,10 +1744,10 @@
 d8a00a01
 98a67200
 20407d9b
-204006c7
-2040075d
+204006d6
+2040076c
 700a0619
-202006da
+202006e9
 df20007a
 d8a00a17
 580001ff
@@ -1748,15 +1763,15 @@
 1fe37e00
 1a40a401
 2a400e00
-242086cb
+242086da
 e0408005
-c20006cb
+c20006da
 20600000
 6fe38a01
 67e38a08
 6fe08a0a
-c00086df
-c0010720
+c00086ee
+c001072f
 2040115d
 68488a08
 20401201
@@ -1768,79 +1783,79 @@
 204016f0
 6fe08a0c
 67f0890d
-c00006f6
+c0000705
 6f208a0d
 d8c00a17
 efe08006
 08008608
-c20006ed
-2040072a
+c20006fc
+20400739
 6fe38a08
 684b8a01
 98467c00
-202286eb
-202006da
+202286fa
+202006e9
 6fe08a0e
-c0008704
+c0008713
 df200035
 d8c00a17
 efe08006
 08008608
-c20006fa
-2040072a
+c2000709
+20400739
 6fe38a08
 684b8a01
 98467c00
-202286f8
+20228707
 2040114b
-202006da
+202006e9
 78487c00
 db60001a
 df200037
 d8c00a17
 efe08006
 08008608
-c2000708
-24218706
+c2000717
+24218715
 2040114b
 d8e0000f
 58000320
 20407ddb
 d8e0000f
 20407de9
-203a0717
-2040072a
+203a0726
+20400739
 6fe08a12
-c0008710
-202006da
-20400719
-202006da
+c000871f
+202006e9
+20400728
+202006e9
 6fe08a16
-243a07a0
+243a07af
 6fe08a01
 1fe0fe02
 67e08a01
 c1a50000
-202007a0
-20400727
-2040072a
+202007af
+20400736
+20400739
 6fe38a08
 684b8a01
 98467c00
-20228721
-202006da
+20228730
+202006e9
 2040114b
 68488a08
 20201674
-2040072c
-202007a9
+2040073b
+202007b8
 78547c00
 2040411c
 24740000
 6fe0c8d4
-c0008737
-c001073c
-c0020793
+c0008746
+c001074b
+c00207a2
 700a1300
 700a1400
 700a1500
@@ -1853,8 +1868,8 @@
 6fe08a14
 247a0000
 700a1401
-20400741
-20200747
+20400750
+20200756
 6fe08a12
 1fe0fe01
 67e08a12
@@ -1862,26 +1877,26 @@
 700a1201
 20600000
 6fe08a12
-c000875d
+c000876c
 700a1600
-c0010765
-c001876a
-c002076e
-c0028772
-c0030775
-c0038778
-c004077b
-c004877f
-c0050783
-c0058787
-c006078b
-c006878f
-c007077b
-c007877f
-c0080783
-c0088787
-c009078b
-c009878f
+c0010774
+c0018779
+c002077d
+c0028781
+c0030784
+c0038787
+c004078a
+c004878e
+c0050792
+c0058796
+c006079a
+c006879e
+c007078a
+c007878e
+c0080792
+c0088796
+c009079a
+c009879e
 20600000
 700a1201
 700a1600
@@ -1941,15 +1956,15 @@
 247a0000
 700a1501
 6fe08a12
-c00087a6
-c001079c
-c001879c
-c002079c
+c00087b5
+c00107ab
+c00187ab
+c00207ab
 20600000
 6fe08a01
-c00307a2
-c01307a4
-c02407a0
+c00307b1
+c01307b3
+c02407af
 700a0106
 20600000
 700a0126
@@ -1963,14 +1978,14 @@
 6fe0c8e4
 207a0000
 6fe08a12
-c00107b1
-c00187b1
-c00207b1
+c00107c0
+c00187c0
+c00207c0
 20600000
 6fe0c8e4
 7048e400
-c00087b6
-c07f87bc
+c00087c5
+c07f87cb
 20600000
 6fe08a01
 1fe0fe01
Index: output/sched.rom
===================================================================
--- /YC1308AF/branch/mouse/MZ_Project/mouse_public/output/sched.rom	(revision 3034)
+++ /YC1308AF/branch/mouse/MZ_Project/mouse_public/output/sched.rom	(working copy)
@@ -175,9 +175,9 @@
 mem_rssi_dis_min_ble_init:75
 mem_rssi_dis_max_ble_init:80
 
-mem_bk_button_gpio:02
-mem_fw_button_gpio:0a
-mem_dpi_button_gpio:00
+mem_bk_button_gpio:0d
+mem_fw_button_gpio:0f
+mem_dpi_button_gpio:02
 mem_dpi_another_button_gpio:ff
 mem_matrix_public_gpio:ff
 mem_sensor_motion_gpio:ff
@@ -189,10 +189,10 @@
 mem_select_sensor_angle_gpio:ff
 mem_mouse_reuse_2ice_gpio:ff
 
-mem_lbutton_gpio:02
-mem_rbutton_gpio:0a
+mem_lbutton_gpio:0d
+mem_rbutton_gpio:0f
 mem_mbutton_gpio:0e
-mem_config_select_device_button_gpio:0f
+mem_config_select_device_button_gpio:00
 mem_whee_ta_data_gpio:ff
 mem_whee_tb_data_gpio:ff
 mem_device_switch_gpio:01
@@ -211,15 +211,15 @@
 mem_mouse_logo_led_on_time_init:58 02	#1min
 
 #1io2led multi start
-mem_mouse_1io2led_led_enable:01			#00:close 	01:open
+mem_mouse_1io2led_led_enable:00			#00:close 	01:open
 mem_mouse_bt_led_recon_effect_flag:01		#00:close 	01:open
 mem_mouse_multi_led_poweron_flag_init:01	#00:close 01:open
 mem_mouse_multi_led_powon_timer_init:14	#2s
 
 mem_mouse_multi_led_blink_timer_init:02
-mem_mouse_1io2led_multi_24gled:89
-mem_mouse_1io2led_multi_bt1led:8b
-mem_mouse_1io2led_multi_bt2led:8b
+mem_mouse_1io2led_multi_24gled:0b
+mem_mouse_1io2led_multi_bt1led:0a
+mem_mouse_1io2led_multi_bt2led:ff
 #1io2led multi end
 
 
@@ -502,7 +502,8 @@
 
 mem_sensor_ka8g2_init:
 09 a5
-46 34
+26 34
+19 04
 60 07
 69 04
 7d 20
Index: program/patch.prog
===================================================================
--- /YC1308AF/branch/mouse/MZ_Project/mouse_public/program/patch.prog	(revision 3034)
+++ /YC1308AF/branch/mouse/MZ_Project/mouse_public/program/patch.prog	(working copy)
@@ -2752,7 +2752,7 @@
 	disable user
 	setarg 0
 	store 6,mem_mouse_x
-	call mouse_check_sensor_data
+	call p_mouse_check_sensor_data
 	setarg 0x0089			
 	call twspi_write
 	call p_mouse_dpi_config
@@ -2767,6 +2767,27 @@
 	call p_mouse_drawing_optima
 	branch mouse_no_data_timer_init
 
+p_mouse_check_sensor_data:
+	fetch 1,mem_spi_write_flash_sm
+	rtnne FLASH_SM_NO_BUYS
+	fetch 1,mem_config_sensor_type
+	beq KA8G2,p_mouse_pka8g2_sensor_motion
+	branch mouse_check_sensor_data+2
+
+p_mouse_pka8g2_sensor_motion:
+	call mouse_clear_sensor_data
+	fetch 1,mem_sensor_motion_gpio
+	beq GPIO_DISABLE,p_mouse_pka8g2_sensor_motion_1
+	fetcht 1,mem_sensor_motion_gpio
+	call gpio_get_bit
+	nrtn true
+p_mouse_pka8g2_sensor_motion_1:
+	setarg PAN_REG_PID_L
+	call twspi_read
+	bne PKA8G2_ID1,mouse_twspi_reset
+	branch mouse_p3212_sensor_motion_2
+
+
 p_mouse_work_state_flag:
 	jam 0,mem_low_power_led_flag
 	jam 0,mem_24g_low_power_stop_blink
Index: sched/mouse.dat
===================================================================
--- /YC1308AF/branch/mouse/MZ_Project/mouse_public/sched/mouse.dat	(revision 3034)
+++ /YC1308AF/branch/mouse/MZ_Project/mouse_public/sched/mouse.dat	(working copy)
@@ -108,9 +108,9 @@
 mem_rssi_dis_min_ble_init:75
 mem_rssi_dis_max_ble_init:80
 
-mem_bk_button_gpio:02
-mem_fw_button_gpio:0a
-mem_dpi_button_gpio:00
+mem_bk_button_gpio:0d
+mem_fw_button_gpio:0f
+mem_dpi_button_gpio:02
 mem_dpi_another_button_gpio:ff
 mem_matrix_public_gpio:ff
 mem_sensor_motion_gpio:ff
@@ -122,10 +122,10 @@
 mem_select_sensor_angle_gpio:ff
 mem_mouse_reuse_2ice_gpio:ff
 
-mem_lbutton_gpio:02
-mem_rbutton_gpio:0a
+mem_lbutton_gpio:0d
+mem_rbutton_gpio:0f
 mem_mbutton_gpio:0e
-mem_config_select_device_button_gpio:0f
+mem_config_select_device_button_gpio:00
 mem_whee_ta_data_gpio:ff
 mem_whee_tb_data_gpio:ff
 mem_device_switch_gpio:01
@@ -144,15 +144,15 @@
 mem_mouse_logo_led_on_time_init:58 02	#1min
 
 #1io2led multi start
-mem_mouse_1io2led_led_enable:01			#00:close 	01:open
+mem_mouse_1io2led_led_enable:00			#00:close 	01:open
 mem_mouse_bt_led_recon_effect_flag:01		#00:close 	01:open
 mem_mouse_multi_led_poweron_flag_init:01	#00:close 01:open
 mem_mouse_multi_led_powon_timer_init:14	#2s
 
 mem_mouse_multi_led_blink_timer_init:02
-mem_mouse_1io2led_multi_24gled:89
-mem_mouse_1io2led_multi_bt1led:8b
-mem_mouse_1io2led_multi_bt2led:8b
+mem_mouse_1io2led_multi_24gled:0b
+mem_mouse_1io2led_multi_bt1led:0a
+mem_mouse_1io2led_multi_bt2led:ff
 #1io2led multi end
 
 
@@ -435,7 +435,8 @@
 
 mem_sensor_ka8g2_init:
 09 a5
-46 34
+26 34
+19 04
 60 07
 69 04
 7d 20
