Index: format/app_mouse.format
===================================================================
--- /1121s/branch/mouse/ZXS_Project/1m/mouse_public_24g_first_bt_WK303_double_dpi/format/app_mouse.format	(revision 1548)
+++ /1121s/branch/mouse/ZXS_Project/1m/mouse_public_24g_first_bt_WK303_double_dpi/format/app_mouse.format	(working copy)
@@ -424,22 +424,13 @@
 3 mem_tx_power_factory_param_new
 18 mem_sensor_ka8g2_init_new
 
-//uart start 
-1 mem_device_uart_tx_gpio
-1 mem_device_uart_rx_gpio
-2 mem_device_uart_rx_buffer
-2 mem_device_uart_rx_buffer_end
-2 mem_device_uart_tx_buffer
-2 mem_device_uart_tx_buffer_end
-2 mem_device_uart_baud_rate
-//uart end
 64 mem_le_tx_buffer0_omemalloc_new
 64 mem_le_tx_buffer1_omemalloc_new
 64 mem_le_tx_buffer2_omemalloc_new
 64 mem_le_tx_buffer3_omemalloc_new
 
 1 mem_mouse_wheel_temp_gpio
-
+1 mem_mouse_qdec_set_flag
 )
 
 (
Index: output/memmap.format
===================================================================
--- /1121s/branch/mouse/ZXS_Project/1m/mouse_public_24g_first_bt_WK303_double_dpi/output/memmap.format	(revision 1548)
+++ /1121s/branch/mouse/ZXS_Project/1m/mouse_public_24g_first_bt_WK303_double_dpi/output/memmap.format	(working copy)
@@ -1965,102 +1965,96 @@
 0x4a07 mem_normal_tx_power
 0x4a08 mem_tx_power_factory_param_new
 0x4a0b mem_sensor_ka8g2_init_new
-0x4a1d mem_device_uart_tx_gpio
-0x4a1e mem_device_uart_rx_gpio
-0x4a1f mem_device_uart_rx_buffer
-0x4a21 mem_device_uart_rx_buffer_end
-0x4a23 mem_device_uart_tx_buffer
-0x4a25 mem_device_uart_tx_buffer_end
-0x4a27 mem_device_uart_baud_rate
-0x4a29 mem_le_tx_buffer0_omemalloc_new
-0x4a69 mem_le_tx_buffer1_omemalloc_new
-0x4aa9 mem_le_tx_buffer2_omemalloc_new
-0x4ae9 mem_le_tx_buffer3_omemalloc_new
-0x4b29 mem_mouse_wheel_temp_gpio
-0x4b2a mem_24g_txpayload_buf
-0x4b3a mem_release_data_from_receiver_enable
-0x4b3b mem_release_data_from_transmiter_enable
-0x4b3c mem_flippen_key0_gpio
-0x4b3d mem_flippen_key1_gpio
-0x4b3e mem_flippen_key2_gpio
-0x4b3f mem_flippen_key3_gpio
-0x4b40 mem_flippen_key4_gpio
-0x4b41 mem_flippen_key5_gpio
-0x4b42 mem_flippen_key6_gpio
-0x4b43 mem_flippen_key7_gpio
-0x4b44 mem_flippen_key0_press_status
-0x4b45 mem_flippen_key1_press_status
-0x4b46 mem_flippen_key2_press_status
-0x4b47 mem_flippen_key3_press_status
-0x4b48 mem_flippen_key4_press_status
-0x4b49 mem_flippen_key5_press_status
-0x4b4a mem_flippen_key6_press_status
-0x4b4b mem_flippen_key7_press_status
-0x4b4c mem_key_press_data
-0x4b4c mem_key_pageup_data
-0x4b55 mem_key_pagedown_data
-0x4b5e mem_key_shift_f5_data
-0x4b67 mem_key_esc_data
-0x4b70 mem_key_b_data
-0x4b79 mem_key_tab
-0x4b82 mem_key_enter
-0x4b8b mem_key_alt_tab
-0x4b94 mem_key_alt_f4
-0x4b9d mem_key_play_pause
-0x4ba6 mem_key_vol_up
-0x4baf mem_key_vol_down
-0x4bb8 mem_standard_key_release
-0x4bc1 mem_system_ctrl_key_release
-0x4bca mem_media_key_release
-0x4bd3 mem_key0_long_press_flag
-0x4bd4 mem_key1_long_press_flag
-0x4bd5 mem_key2_long_press_flag
-0x4bd6 mem_key3_long_press_flag
-0x4bd7 mem_key4_long_press_flag
-0x4bd8 mem_key0_long_press_event
-0x4bd9 mem_key1_long_press_event
-0x4bda mem_key2_long_press_event
-0x4bdb mem_key3_long_press_event
-0x4bdc mem_key4_long_press_event
-0x4bdd mem_key0_short_press_flag
-0x4bde mem_key1_short_press_flag
-0x4bdf mem_key2_short_press_flag
-0x4be0 mem_key3_short_press_flag
-0x4be1 mem_key4_short_press_flag
-0x4be2 mem_key0_press_timer_count
-0x4be3 mem_key1_press_timer_count
-0x4be4 mem_key2_press_timer_count
-0x4be5 mem_key3_press_timer_count
-0x4be6 mem_key4_press_timer_count
-0x4be7 mem_combination_key_down_flag
-0x4be8 mem_combination_key_longpress_flag
-0x4be9 mem_key_disable_timer
-0x4bea mem_24g_calculate_package_id_disable
-0x4beb mem_24g_package_id_abandon_flag
-0x4bec mem_24g_package_id
-0x4bed mem_key_state
-0x4bee mem_key_press_state
-0x4bef mem_poweron_first_blank_data_enable
-0x4bf0 mem_flippen_no_data_timeout
-0x4bf2 mem_flippen_start_pair_no_data_timeout
-0x4bf4 mem_key_longpress_timer_init
-0x4bf6 mem_key_longpress_timer
-0x4bf8 mem_low_voltage_led_blink_flag
-0x4bf9 mem_low_voltage_led_blink_start_timer
-0x4bfa mem_poweron_led_blink_flag
-0x4bfb mem_24g_pair_enable_flag
-0x4bfc mem_24g_ch_work
-0x4bfd mem_24g_pair_key_down_flag
-0x4bfe mem_24g_pairing_stop_flag
-0x4bff mem_longpress_24g_enter_hibernate_flag
-0x4c00 mem_g24_connected_state
-0x4c01 mem_g24_pairing_stop_flag
-0x4c02 mem_send_package_before_check
-0x4c03 mem_le_conn_rcv_new
-0x4c04 mem_le_conn_first_rcv
-0x4c05 mem_le_check_retransmit_flag
-0x4c06 mem_le_retransmit_cnt
-0x4c07 mem_le_check_retransmit_discon_flag
+0x4a1d mem_le_tx_buffer0_omemalloc_new
+0x4a5d mem_le_tx_buffer1_omemalloc_new
+0x4a9d mem_le_tx_buffer2_omemalloc_new
+0x4add mem_le_tx_buffer3_omemalloc_new
+0x4b1d mem_mouse_wheel_temp_gpio
+0x4b1e mem_mouse_qdec_set_flag
+0x4b1f mem_24g_txpayload_buf
+0x4b2f mem_release_data_from_receiver_enable
+0x4b30 mem_release_data_from_transmiter_enable
+0x4b31 mem_flippen_key0_gpio
+0x4b32 mem_flippen_key1_gpio
+0x4b33 mem_flippen_key2_gpio
+0x4b34 mem_flippen_key3_gpio
+0x4b35 mem_flippen_key4_gpio
+0x4b36 mem_flippen_key5_gpio
+0x4b37 mem_flippen_key6_gpio
+0x4b38 mem_flippen_key7_gpio
+0x4b39 mem_flippen_key0_press_status
+0x4b3a mem_flippen_key1_press_status
+0x4b3b mem_flippen_key2_press_status
+0x4b3c mem_flippen_key3_press_status
+0x4b3d mem_flippen_key4_press_status
+0x4b3e mem_flippen_key5_press_status
+0x4b3f mem_flippen_key6_press_status
+0x4b40 mem_flippen_key7_press_status
+0x4b41 mem_key_press_data
+0x4b41 mem_key_pageup_data
+0x4b4a mem_key_pagedown_data
+0x4b53 mem_key_shift_f5_data
+0x4b5c mem_key_esc_data
+0x4b65 mem_key_b_data
+0x4b6e mem_key_tab
+0x4b77 mem_key_enter
+0x4b80 mem_key_alt_tab
+0x4b89 mem_key_alt_f4
+0x4b92 mem_key_play_pause
+0x4b9b mem_key_vol_up
+0x4ba4 mem_key_vol_down
+0x4bad mem_standard_key_release
+0x4bb6 mem_system_ctrl_key_release
+0x4bbf mem_media_key_release
+0x4bc8 mem_key0_long_press_flag
+0x4bc9 mem_key1_long_press_flag
+0x4bca mem_key2_long_press_flag
+0x4bcb mem_key3_long_press_flag
+0x4bcc mem_key4_long_press_flag
+0x4bcd mem_key0_long_press_event
+0x4bce mem_key1_long_press_event
+0x4bcf mem_key2_long_press_event
+0x4bd0 mem_key3_long_press_event
+0x4bd1 mem_key4_long_press_event
+0x4bd2 mem_key0_short_press_flag
+0x4bd3 mem_key1_short_press_flag
+0x4bd4 mem_key2_short_press_flag
+0x4bd5 mem_key3_short_press_flag
+0x4bd6 mem_key4_short_press_flag
+0x4bd7 mem_key0_press_timer_count
+0x4bd8 mem_key1_press_timer_count
+0x4bd9 mem_key2_press_timer_count
+0x4bda mem_key3_press_timer_count
+0x4bdb mem_key4_press_timer_count
+0x4bdc mem_combination_key_down_flag
+0x4bdd mem_combination_key_longpress_flag
+0x4bde mem_key_disable_timer
+0x4bdf mem_24g_calculate_package_id_disable
+0x4be0 mem_24g_package_id_abandon_flag
+0x4be1 mem_24g_package_id
+0x4be2 mem_key_state
+0x4be3 mem_key_press_state
+0x4be4 mem_poweron_first_blank_data_enable
+0x4be5 mem_flippen_no_data_timeout
+0x4be7 mem_flippen_start_pair_no_data_timeout
+0x4be9 mem_key_longpress_timer_init
+0x4beb mem_key_longpress_timer
+0x4bed mem_low_voltage_led_blink_flag
+0x4bee mem_low_voltage_led_blink_start_timer
+0x4bef mem_poweron_led_blink_flag
+0x4bf0 mem_24g_pair_enable_flag
+0x4bf1 mem_24g_ch_work
+0x4bf2 mem_24g_pair_key_down_flag
+0x4bf3 mem_24g_pairing_stop_flag
+0x4bf4 mem_longpress_24g_enter_hibernate_flag
+0x4bf5 mem_g24_connected_state
+0x4bf6 mem_g24_pairing_stop_flag
+0x4bf7 mem_send_package_before_check
+0x4bf8 mem_le_conn_rcv_new
+0x4bf9 mem_le_conn_first_rcv
+0x4bfa mem_le_check_retransmit_flag
+0x4bfb mem_le_retransmit_cnt
+0x4bfc mem_le_check_retransmit_discon_flag
 0x462d mem_remote_car_hard_soft_switch
 0x462e mem_remote_car_queue_each_size
 0x462f mem_remote_car_queue_length
Index: output/otp.dat
===================================================================
--- /1121s/branch/mouse/ZXS_Project/1m/mouse_public_24g_first_bt_WK303_double_dpi/output/otp.dat	(revision 1548)
+++ /1121s/branch/mouse/ZXS_Project/1m/mouse_public_24g_first_bt_WK303_double_dpi/output/otp.dat	(working copy)
@@ -11,7 +11,7 @@
 00
 aa
 55
-2a
+ca
 14
 c2
 84
@@ -20,151 +20,151 @@
 c0
 00
 02
-aa
+a7
 c0
 01
 00
-54
+4e
 c0
 08
 00
-5d
+57
 c0
 08
 80
-5f
+59
 c0
 0a
 01
-5e
+57
 c0
 0a
 80
-e0
+d9
 c0
 0c
-01
 00
+f9
 c0
 0c
 81
-07
+00
 c0
 0d
 00
-6d
+67
 c0
 12
 82
-30
+26
 c0
 34
 02
-a3
+a0
 c0
 34
 82
-b2
+b3
 c0
 36
 02
-6c
+63
 c0
 36
 80
-3c
+36
 c0
 37
 04
-4b
+4c
 c0
 39
 84
-a0
+a1
 c0
-3b
-80
-36
+3a
+02
+23
 c0
 3d
-05
-05
+04
+f3
 c0
 3f
 84
-80
+81
 c0
 40
 84
-ea
+d8
 c0
 42
 03
-9b
+9c
 c0
 42
 83
-e7
+e8
 c0
 43
 01
-f5
+ee
 c0
 43
 83
-c5
+c6
 c0
 44
 03
-e5
+e6
 c0
 45
 03
-af
+b0
+c0
+45
+82
+ca
 c0
 46
 02
-f0
+f1
 c0
 46
 83
-58
+59
 c0
 47
 04
-6a
-c0
-45
-82
-c9
+6b
 c0
 48
 04
-df
+cd
 c0
 4a
 84
-97
+98
 c0
 4b
 04
-c8
+b6
+c0
+62
+82
+49
 c0
 6a
 82
-14
+0d
 c0
 6b
 02
-0d
-c0
-62
-82
-4f
+06
 c0
 6d
 01
-47
+40
 20
 20
 23
@@ -172,55 +172,55 @@
 c0
 0a
 01
-7f
+78
 c0
 0d
 01
-7e
+77
 c0
 12
 81
-ae
+a7
 c0
 13
 01
-b3
+ac
 c0
 1c
 81
-c5
+be
 c0
 1d
 01
-cf
+c8
 c0
 26
 01
-cb
+c4
 c0
 26
 81
-c9
+c2
 c0
 48
 02
-52
+4c
 c0
 4b
 04
-8b
+8c
 c0
 4d
 00
-ee
+e7
 c0
 4e
 80
-f5
+ee
 c0
 4f
 82
-74
+71
 c1
 7f
 80
@@ -229,30 +229,6 @@
 20
 23
 5a
-20
-40
-6f
-82
-20
-40
-6f
-b0
-1f
-e6
-fc
-0a
-20
-40
-7d
-5f
-67
-e1
-46
-33
-20
-20
-55
-53
 6f
 e0
 c6
@@ -384,7 +360,7 @@
 20
 20
 00
-54
+4e
 70
 89
 00
@@ -492,7 +468,7 @@
 20
 40
 00
-b4
+ae
 20
 40
 70
@@ -524,7 +500,7 @@
 c0
 08
 00
-a9
+a3
 6f
 e0
 c4
@@ -568,7 +544,7 @@
 20
 40
 00
-9b
+95
 70
 80
 43
@@ -592,15 +568,15 @@
 20
 40
 01
-1a
+13
 20
 40
 01
-45
+3e
 20
 40
 00
-95
+8f
 70
 41
 48
@@ -640,7 +616,7 @@
 c0
 0c
 00
-a1
+9b
 6f
 e0
 c4
@@ -732,11 +708,11 @@
 20
 20
 00
-88
+82
 20
 35
 80
-dc
+c0
 6f
 e2
 02
@@ -806,6 +782,18 @@
 82
 00
 6f
+e1
+41
+5b
+20
+7a
+00
+00
+67
+e1
+02
+0f
+6f
 f0
 8a
 cb
@@ -893,22 +881,6 @@
 60
 00
 00
-6f
-e1
-41
-5b
-20
-7a
-00
-00
-67
-e1
-02
-0f
-20
-20
-00
-c6
 20
 40
 68
@@ -976,7 +948,7 @@
 20
 40
 00
-f2
+eb
 20
 20
 60
@@ -1008,7 +980,7 @@
 24
 21
 00
-fa
+f3
 20
 20
 36
@@ -1032,7 +1004,7 @@
 20
 40
 02
-99
+96
 20
 20
 36
@@ -1076,15 +1048,15 @@
 c0
 05
 01
-0d
+06
 c0
 4f
 01
-16
+0f
 c0
 55
 01
-12
+0b
 20
 20
 22
@@ -1192,7 +1164,7 @@
 20
 40
 01
-37
+30
 2a
 2f
 fe
@@ -1224,7 +1196,7 @@
 20
 40
 01
-37
+30
 d8
 a0
 8a
@@ -1252,7 +1224,7 @@
 20
 21
 01
-2c
+25
 20
 20
 21
@@ -1352,7 +1324,7 @@
 20
 40
 01
-57
+50
 70
 8a
 08
@@ -1396,7 +1368,7 @@
 c3
 02
 81
-58
+51
 68
 59
 01
@@ -1432,7 +1404,7 @@
 c0
 08
 01
-77
+70
 58
 00
 57
@@ -1476,7 +1448,7 @@
 c0
 08
 01
-74
+6d
 58
 00
 2b
@@ -1512,7 +1484,7 @@
 20
 20
 01
-70
+69
 58
 00
 83
@@ -1524,11 +1496,11 @@
 20
 20
 01
-65
+5e
 6f
 e0
-cc
-03
+cb
+f8
 da
 60
 01
@@ -1544,39 +1516,39 @@
 20
 20
 01
-9e
+97
 20
 40
 01
-81
+7a
 20
 20
 25
 63
 6f
 e0
-cc
-04
+cb
+f9
 20
 7a
 00
 00
 6f
 e0
-cc
-05
+cb
+fa
 24
 7a
 00
 00
 68
 48
-cc
-04
+cb
+f9
 6f
 e0
-cc
-03
+cb
+f8
 98
 46
 7c
@@ -1584,7 +1556,7 @@
 24
 41
 01
-7a
+73
 98
 46
 7e
@@ -1596,11 +1568,11 @@
 20
 21
 01
-93
+8c
 6f
 e0
-cc
-06
+cb
+fb
 1f
 e6
 7c
@@ -1608,18 +1580,18 @@
 24
 41
 01
-91
+8a
 70
-4c
-05
+4b
+fa
 01
 20
 60
 00
 00
 70
-4c
-07
+4b
+fc
 01
 20
 20
@@ -1651,8 +1623,8 @@
 00
 68
 48
-cc
-06
+cb
+fb
 79
 20
 fe
@@ -1663,8 +1635,8 @@
 00
 60
 48
-cc
-06
+cb
+fb
 20
 60
 00
@@ -1684,19 +1656,19 @@
 24
 36
 81
-a5
+9e
 6f
 e0
-cc
-03
+cb
+f8
 1f
 e0
 fe
 01
 67
 e0
-cc
-03
+cb
+f8
 6f
 e0
 81
@@ -1872,7 +1844,7 @@
 c0
 02
 01
-d2
+cb
 20
 20
 28
@@ -1888,11 +1860,11 @@
 c0
 05
 01
-d7
+d0
 c0
 09
 01
-e6
+df
 20
 20
 2b
@@ -1920,7 +1892,7 @@
 c2
 81
 81
-e1
+da
 6f
 e1
 43
@@ -1948,11 +1920,11 @@
 24
 22
 81
-dd
+d6
 24
 34
 01
-dd
+d6
 20
 20
 2d
@@ -2031,8 +2003,8 @@
 8f
 c0
 7f
-82
-00
+81
+f9
 6f
 e0
 c8
@@ -2047,16 +2019,16 @@
 00
 6f
 e0
-cc
-05
+cb
+fa
 20
 7a
 00
 00
 6f
 e0
-cc
-07
+cb
+fc
 24
 7a
 00
@@ -2108,7 +2080,7 @@
 20
 40
 04
-d4
+c2
 20
 20
 5b
@@ -2152,7 +2124,7 @@
 60
 48
 cb
-29
+1d
 20
 40
 6e
@@ -2160,67 +2132,51 @@
 20
 20
 82
-1a
-20
-20
-02
-1f
-20
-40
-02
-28
-20
-40
-02
-23
-20
-40
-02
-2c
+17
 68
 48
 cb
-29
-20
+1d
 20
+40
 6f
 0f
 68
 48
 cb
-29
-20
-40
-6f
-0f
-20
-40
-02
-26
-20
-20
-02
-28
+1d
 d9
 00
 00
-06
+03
+20
 20
-40
 6e
 bd
+70
+4b
+1e
+01
+68
+48
+cb
+1d
 20
-20
-02
 40
+6f
+0f
+68
+48
+cb
+1d
 d9
 00
 00
-03
+06
 20
 20
-02
-24
+6e
+bd
 58
 00
 00
@@ -2241,18 +2197,22 @@
 00
 00
 80
-67
-f0
-81
-41
-37
-d9
-82
-00
 20
 20
 02
-2a
+1e
+20
+40
+04
+92
+70
+4b
+1e
+00
+20
+20
+55
+0d
 6f
 e1
 43
@@ -2276,11 +2236,27 @@
 20
 40
 02
-37
+31
+20
+40
+02
+2e
 20
 20
 24
 25
+6f
+e0
+cb
+1e
+20
+3a
+02
+1d
+20
+20
+02
+21
 60
 04
 40
@@ -2348,7 +2324,7 @@
 20
 22
 82
-4a
+44
 e7
 e0
 80
@@ -2368,7 +2344,7 @@
 c2
 00
 02
-44
+3e
 1a
 42
 04
@@ -2404,7 +2380,7 @@
 20
 3a
 02
-5a
+54
 6f
 e1
 45
@@ -2448,7 +2424,7 @@
 20
 3a
 02
-69
+6b
 6f
 e2
 45
@@ -2464,7 +2440,7 @@
 20
 22
 82
-66
+60
 20
 20
 35
@@ -2481,18 +2457,6 @@
 20
 35
 49
-6f
-e2
-45
-5f
-20
-7a
-00
-00
-20
-20
-02
-61
 20
 40
 54
@@ -2500,7 +2464,7 @@
 20
 40
 02
-6f
+66
 20
 20
 54
@@ -2508,7 +2472,7 @@
 58
 00
 4a
-29
+1d
 67
 e1
 43
@@ -2526,6 +2490,30 @@
 00
 00
 6f
+e2
+45
+e4
+68
+4a
+45
+8f
+20
+22
+82
+5b
+6f
+e2
+45
+5f
+20
+7a
+00
+00
+20
+20
+02
+5b
+6f
 e0
 c4
 37
@@ -2560,7 +2548,7 @@
 c5
 13
 02
-7e
+7b
 6f
 e0
 c6
@@ -2572,7 +2560,7 @@
 24
 21
 02
-98
+95
 6f
 e0
 c6
@@ -2584,7 +2572,7 @@
 24
 21
 02
-86
+83
 6f
 e0
 c6
@@ -2592,7 +2580,7 @@
 c0
 00
 02
-99
+96
 20
 60
 00
@@ -2628,7 +2616,7 @@
 c5
 13
 02
-8f
+8c
 6f
 e0
 c6
@@ -2660,7 +2648,7 @@
 c0
 01
 02
-a1
+9e
 c0
 00
 b7
@@ -2680,7 +2668,7 @@
 c0
 01
 82
-9f
+9c
 1f
 e0
 fe
@@ -2696,7 +2684,7 @@
 c0
 01
 02
-a1
+9e
 70
 41
 41
@@ -2732,7 +2720,7 @@
 58
 00
 02
-b1
+b2
 67
 e1
 43
@@ -2741,6 +2729,18 @@
 20
 53
 f3
+24
+35
+a0
+02
+37
+d9
+82
+00
+37
+d9
+82
+00
 20
 80
 00
@@ -2753,6 +2753,10 @@
 20
 20
 03
+20
+40
+02
+1d
 68
 48
 c6
@@ -2776,7 +2780,7 @@
 20
 40
 04
-64
+65
 6f
 e4
 47
@@ -2792,7 +2796,7 @@
 c2
 8a
 02
-b8
+b9
 20
 60
 00
@@ -2800,7 +2804,7 @@
 20
 40
 02
-c3
+c4
 20
 40
 5e
@@ -2812,19 +2816,19 @@
 20
 40
 02
-d7
+d8
 20
 40
 02
-c0
+c1
 20
 40
 02
-c6
+c7
 20
 40
 02
-df
+e0
 20
 20
 5d
@@ -2840,7 +2844,7 @@
 20
 40
 04
-df
+cd
 6f
 e0
 c6
@@ -2880,7 +2884,7 @@
 20
 22
 83
-4c
+4d
 60
 49
 46
@@ -2932,7 +2936,7 @@
 20
 22
 82
-d4
+d5
 1f
 e6
 7c
@@ -2940,7 +2944,7 @@
 20
 22
 82
-dd
+de
 20
 61
 00
@@ -2980,7 +2984,7 @@
 20
 3a
 02
-ed
+ee
 67
 e1
 49
@@ -3000,7 +3004,7 @@
 24
 21
 02
-ed
+ee
 1a
 62
 24
@@ -3008,7 +3012,7 @@
 20
 20
 02
-e3
+e4
 6f
 e1
 49
@@ -3036,7 +3040,7 @@
 c2
 8a
 02
-f5
+f6
 20
 60
 00
@@ -3044,11 +3048,11 @@
 20
 40
 02
-f8
+f9
 20
 40
 02
-fd
+fe
 20
 20
 5c
@@ -3064,11 +3068,11 @@
 c0
 00
 83
-24
+25
 c0
 01
 03
-38
+39
 20
 60
 00
@@ -3092,7 +3096,7 @@
 20
 3a
 03
-09
+0a
 67
 e0
 c9
@@ -3119,8 +3123,8 @@
 00
 20
 20
-02
-ff
+03
+00
 6f
 e0
 c9
@@ -3132,7 +3136,7 @@
 20
 3a
 03
-13
+14
 6f
 e0
 c6
@@ -3140,7 +3144,7 @@
 20
 40
 03
-21
+22
 67
 e0
 c9
@@ -3172,7 +3176,7 @@
 20
 40
 03
-21
+22
 98
 46
 7c
@@ -3208,7 +3212,7 @@
 20
 22
 83
-0f
+10
 1a
 60
 a7
@@ -3216,7 +3220,7 @@
 20
 20
 03
-0f
+10
 c1
 80
 00
@@ -3248,7 +3252,7 @@
 20
 3a
 03
-30
+31
 67
 e3
 49
@@ -3276,7 +3280,7 @@
 20
 20
 03
-26
+27
 6f
 e3
 49
@@ -3328,7 +3332,7 @@
 20
 3a
 03
-44
+45
 67
 e3
 49
@@ -3356,7 +3360,7 @@
 20
 20
 03
-3a
+3b
 6f
 e3
 49
@@ -3392,15 +3396,15 @@
 20
 40
 03
-85
+86
 20
 40
 03
-9d
+9e
 20
 40
 03
-50
+51
 20
 20
 5c
@@ -3424,7 +3428,7 @@
 c0
 03
 03
-56
+57
 20
 60
 00
@@ -3448,7 +3452,7 @@
 c2
 8a
 03
-5c
+5d
 20
 60
 00
@@ -3480,7 +3484,7 @@
 20
 3a
 03
-6a
+6b
 67
 e0
 c9
@@ -3508,7 +3512,7 @@
 20
 20
 03
-60
+61
 6f
 e0
 c9
@@ -3520,7 +3524,7 @@
 20
 3a
 03
-74
+75
 6f
 e0
 c6
@@ -3528,7 +3532,7 @@
 20
 40
 03
-82
+83
 67
 e0
 c9
@@ -3560,7 +3564,7 @@
 20
 40
 03
-82
+83
 98
 46
 7c
@@ -3596,7 +3600,7 @@
 20
 22
 83
-70
+71
 1a
 60
 a7
@@ -3604,7 +3608,7 @@
 20
 20
 03
-70
+71
 c1
 80
 00
@@ -3624,7 +3628,7 @@
 c2
 9f
 03
-8c
+8d
 6f
 e0
 c6
@@ -3636,11 +3640,11 @@
 c0
 00
 83
-8c
+8d
 c0
 01
 03
-93
+94
 20
 60
 00
@@ -3708,7 +3712,7 @@
 20
 40
 03
-9d
+9e
 20
 20
 5a
@@ -3724,7 +3728,7 @@
 c2
 9f
 03
-a5
+a6
 6f
 e0
 c6
@@ -3736,11 +3740,11 @@
 c0
 00
 83
-a5
+a6
 c0
 01
 03
-aa
+ab
 20
 60
 00
@@ -3812,7 +3816,7 @@
 20
 40
 03
-b7
+b8
 20
 20
 5c
@@ -3824,11 +3828,11 @@
 c0
 00
 83
-bb
+bc
 c0
 01
 03
-c0
+c1
 20
 60
 00
@@ -3876,7 +3880,7 @@
 20
 40
 03
-db
+dc
 20
 40
 61
@@ -3948,7 +3952,7 @@
 20
 40
 03
-de
+df
 20
 40
 56
@@ -3980,7 +3984,7 @@
 da
 40
 03
-e1
+e2
 20
 20
 42
@@ -4016,31 +4020,31 @@
 c0
 20
 03
-fc
+fd
 c0
 0a
 84
-01
+02
 c0
 19
 03
-f3
+f4
 c0
 1e
 04
-1f
+20
 c0
 1c
 84
-30
+31
 c0
 1d
 04
-33
+34
 c0
 0a
 03
-f0
+f1
 20
 20
 5a
@@ -4051,8 +4055,8 @@
 00
 67
 e2
-4c
-04
+4b
+f9
 20
 20
 5a
@@ -4064,7 +4068,7 @@
 c0
 00
 83
-f7
+f8
 70
 48
 44
@@ -4072,7 +4076,7 @@
 20
 20
 03
-f9
+fa
 20
 40
 5a
@@ -4083,12 +4087,12 @@
 05
 6f
 e0
-cc
-03
+cb
+f8
 67
 e0
-cc
-04
+cb
+f9
 20
 20
 5a
@@ -4148,7 +4152,7 @@
 c2
 8d
 84
-0b
+0c
 d8
 40
 00
@@ -4176,7 +4180,7 @@
 20
 20
 04
-11
+12
 20
 40
 5b
@@ -4188,7 +4192,7 @@
 c2
 83
 84
-16
+17
 c2
 80
 42
@@ -4223,8 +4227,8 @@
 a9
 6f
 e0
-cc
-07
+cb
+fc
 24
 3a
 54
@@ -4296,7 +4300,7 @@
 20
 40
 04
-67
+68
 20
 20
 60
@@ -4308,7 +4312,7 @@
 20
 40
 04
-67
+68
 20
 20
 60
@@ -4320,7 +4324,7 @@
 20
 40
 04
-67
+68
 6f
 e0
 c8
@@ -4344,7 +4348,7 @@
 c0
 02
 04
-3e
+3f
 c0
 00
 e0
@@ -4352,7 +4356,7 @@
 c0
 01
 84
-45
+46
 20
 20
 60
@@ -4416,7 +4420,7 @@
 c2
 9f
 04
-50
+51
 6f
 e0
 c6
@@ -4424,7 +4428,7 @@
 c0
 00
 04
-57
+58
 20
 20
 54
@@ -4436,7 +4440,7 @@
 20
 34
 04
-53
+54
 20
 20
 60
@@ -4456,7 +4460,7 @@
 20
 20
 04
-42
+43
 6f
 e4
 47
@@ -4484,7 +4488,7 @@
 c2
 98
 04
-5f
+60
 20
 20
 60
@@ -4544,7 +4548,7 @@
 20
 40
 04
-6e
+6f
 20
 20
 5e
@@ -4572,7 +4576,7 @@
 20
 40
 04
-75
+76
 20
 20
 56
@@ -4600,7 +4604,7 @@
 c0
 7f
 84
-7c
+7d
 20
 20
 56
@@ -4620,7 +4624,7 @@
 20
 20
 04
-80
+81
 1a
 62
 7e
@@ -4680,7 +4684,7 @@
 20
 40
 04
-91
+92
 6f
 e1
 c6
@@ -4756,7 +4760,7 @@
 20
 40
 04
-91
+92
 20
 40
 56
@@ -4829,86 +4833,10 @@
 40
 6f
 0f
-68
-48
-c6
-5b
-20
-40
-55
-b5
-20
-40
-04
-b8
 20
 20
 54
 e5
-6f
-e1
-c7
-3c
-67
-e1
-86
-70
-df
-20
-00
-18
-d8
-40
-00
-00
-6f
-e1
-86
-70
-2f
-ef
-fe
-00
-20
-40
-84
-c5
-6f
-e1
-86
-70
-1f
-e3
-7e
-00
-67
-e1
-86
-70
-18
-40
-84
-01
-c2
-00
-04
-bc
-20
-60
-00
-00
-18
-46
-7c
-ff
-20
-62
-80
-00
-20
-20
-6f
-0b
 c6
 93
 00
@@ -4932,7 +4860,7 @@
 24
 5a
 04
-dd
+cb
 6f
 e4
 47
@@ -4940,7 +4868,7 @@
 c3
 0b
 04
-d2
+c0
 6f
 e0
 c9
@@ -4952,7 +4880,7 @@
 20
 40
 04
-d4
+c2
 20
 20
 60
@@ -4996,11 +4924,11 @@
 20
 40
 04
-91
+92
 20
 20
 02
-40
+3a
 6f
 e4
 47
@@ -5060,7 +4988,7 @@
 c0
 2c
 04
-ef
+dd
 20
 20
 59
@@ -5076,7 +5004,7 @@
 c0
 2c
 84
-f3
+e1
 20
 20
 59
@@ -5108,7 +5036,7 @@
 c0
 05
 84
-fb
+e9
 20
 20
 59
@@ -5123,8 +5051,8 @@
 59
 c0
 7f
-85
-01
+84
+ef
 68
 48
 c6
@@ -5168,13 +5096,245 @@
 20
 40
 04
-f6
+e4
+58
+00
+00
+89
+20
+40
+69
+e4
+20
+40
+57
+47
+20
+40
+56
+12
+20
+40
+56
+17
+20
+40
+04
+fe
 20
 20
 56
+0c
+20
+40
+58
+4c
+6f
+e0
+c9
+87
+24
+3a
+58
+60
+6f
+e0
+c9
+82
+24
+3a
+58
+5f
+20
+40
+58
+88
+20
+40
+05
 06
-92
-b1
+20
+20
+57
+ad
+70
+49
+79
+00
+70
+49
+7a
+00
+70
+49
+7b
+00
+1f
+e2
+24
+00
+68
+48
+c6
+44
+6f
+e0
+c6
+47
+98
+46
+7c
+00
+20
+22
+85
+18
+6f
+e0
+c6
+48
+98
+46
+7c
+00
+20
+22
+85
+1e
+68
+48
+c6
+45
+6f
+e0
+c6
+47
+98
+46
+7c
+00
+20
+22
+85
+27
+20
+40
+57
+fb
+20
+40
+05
+2c
+20
+20
+57
+e5
+68
+48
+c6
+45
+6f
+e0
+c6
+48
+98
+46
+7c
+00
+20
+22
+d7
+d6
+20
+40
+57
+ef
+20
+20
+05
+28
+68
+48
+c6
+45
+6f
+e0
+c6
+47
+98
+46
+7c
+00
+20
+22
+85
+24
+20
+40
+05
+2e
+20
+20
+05
+16
+20
+40
+05
+2e
+20
+40
+05
+2a
+20
+20
+57
+e5
+20
+40
+05
+2a
+20
+40
+05
+30
+20
+20
+57
+e5
+1a
+41
+7e
+12
+20
+20
+57
+f3
+1a
+41
+7e
+0a
+20
+20
+57
+f6
+1a
+41
+7e
+11
+20
+20
+57
+f9
+1a
+41
+7e
+12
+20
+20
+57
+ff
+e5
+29
 aa
 55
 40
@@ -5195,7 +5355,7 @@
 00
 00
 73
-88
+18
 84
 f2
 7d
@@ -6456,8 +6616,8 @@
 aa
 aa
 55
-ff
+8f
 58
-f0
-c2
+ca
+7a
 20
Index: output/program.lis
===================================================================
--- /1121s/branch/mouse/ZXS_Project/1m/mouse_public_24g_first_bt_WK303_double_dpi/output/program.lis	(revision 1548)
+++ /1121s/branch/mouse/ZXS_Project/1m/mouse_public_24g_first_bt_WK303_double_dpi/output/program.lis	(working copy)
@@ -1,1691 +1,1755 @@
               include "bt_format "
               org 0x0000
 0000 c2840027 bbit1 8 ,pf_patch_ext 
-0001 c00002aa beq patch00_0 ,p_soft_reset 
-0002 c0010054 beq patch00_2 ,p_main_loop 
-0003 c008005d beq patch02_0 ,p_shutdown_radio 
-0004 c008805f beq patch02_1 ,p_set_sync_on 
-0005 c00a015e beq patch02_4 ,p_set_lemode 
-0006 c00a80e0 beq patch02_5 ,p_rf_rx_enable 
-0007 c00c0100 beq patch03_0 ,p_txon 
-0008 c00c8107 beq patch03_1 ,p_set_tx_power 
-0009 c00d006d beq patch03_2 ,p_initialize_radio_cont 
-000a c0128230 beq patch04_5 ,p_lpm_sleep 
-000b c03402a3 beq patch0d_0 ,p_mouse_cb_fuction 
-000c c03482b2 beq patch0d_1 ,p_mouse_load_device_info_check 
-000d c036026c beq patch0d_4 ,p_mouse_param_init 
-000e c036803c beq patch0d_5 ,p_mouse_sensor_set_angle 
-000f c037044b beq patch0d_6 ,p_mouse_start_work 
-0010 c03984a0 beq patch0e_3 ,p_mouse_setgpio_hibernate 
-0011 c03b8036 beq patch0e_7 ,p_mouse_adc_read_start 
-0012 c03d0505 beq patch0f_2 ,p_mouse_motion 
-0013 c03f8480 beq patch0f_7 ,p_mouse_3io6key_check 
-0014 c04084ea beq patch10_1 ,p_mouse_init_sensor 
-0015 c042039b beq patch10_4 ,p_mouse_buletooth_fast_conn_end 
-0016 c04283e7 beq patch10_5 ,p_mouse_priority_bb_event 
-0017 c04301f5 beq patch10_6 ,p_mouse_le 
-0018 c04383c5 beq patch10_7 ,p_mouse_bb_event_timer 
-0019 c04403e5 beq patch11_0 ,p_mouse_start_discovery 
-001a c04503af beq patch11_2 ,p_mouse_store_remote_bdaddr 
-001b c04602f0 beq patch11_4 ,p_mouse_store_device_info 
-001c c0468358 beq patch11_5 ,p_mouse_store_dpi_info_check 
-001d c047046a beq patch11_6 ,p_mouse_idle 
-001e c04582c9 beq patch11_3 ,p_mouse_app_initflag_check 
-001f c04804df beq patch12_0 ,p_mouse_check_select_device_by_switch 
-0020 c04a8497 beq patch12_5 ,p_mouse_24g_hibernate_set 
-0021 c04b04c8 beq patch12_6 ,p_mouse_24g_package_data 
-0022 c06a8214 beq patch1a_5 ,p_gpio_set_wake_by_current_state 
-0023 c06b020d beq patch1a_6 ,p_gpio_set_wake 
-0024 c062824f beq patch18_5 ,p_otp_read_data 
-0025 c06d0147 beq patch1b_2 ,p_sadc_calibration 
+0001 c00002a7 beq patch00_0 ,p_soft_reset 
+0002 c001004e beq patch00_2 ,p_main_loop 
+0003 c0080057 beq patch02_0 ,p_shutdown_radio 
+0004 c0088059 beq patch02_1 ,p_set_sync_on 
+0005 c00a0157 beq patch02_4 ,p_set_lemode 
+0006 c00a80d9 beq patch02_5 ,p_rf_rx_enable 
+0007 c00c00f9 beq patch03_0 ,p_txon 
+0008 c00c8100 beq patch03_1 ,p_set_tx_power 
+0009 c00d0067 beq patch03_2 ,p_initialize_radio_cont 
+000a c0128226 beq patch04_5 ,p_lpm_sleep 
+000b c03402a0 beq patch0d_0 ,p_mouse_cb_fuction 
+000c c03482b3 beq patch0d_1 ,p_mouse_load_device_info_check 
+000d c0360263 beq patch0d_4 ,p_mouse_param_init 
+000e c0368036 beq patch0d_5 ,p_mouse_sensor_set_angle 
+000f c037044c beq patch0d_6 ,p_mouse_start_work 
+0010 c03984a1 beq patch0e_3 ,p_mouse_setgpio_hibernate 
+0011 c03a0223 beq patch0e_4 ,p_mouse_lpm_before_common 
+0012 c03d04f3 beq patch0f_2 ,p_mouse_motion 
+0013 c03f8481 beq patch0f_7 ,p_mouse_3io6key_check 
+0014 c04084d8 beq patch10_1 ,p_mouse_init_sensor 
+0015 c042039c beq patch10_4 ,p_mouse_buletooth_fast_conn_end 
+0016 c04283e8 beq patch10_5 ,p_mouse_priority_bb_event 
+0017 c04301ee beq patch10_6 ,p_mouse_le 
+0018 c04383c6 beq patch10_7 ,p_mouse_bb_event_timer 
+0019 c04403e6 beq patch11_0 ,p_mouse_start_discovery 
+001a c04503b0 beq patch11_2 ,p_mouse_store_remote_bdaddr 
+001b c04582ca beq patch11_3 ,p_mouse_app_initflag_check 
+001c c04602f1 beq patch11_4 ,p_mouse_store_device_info 
+001d c0468359 beq patch11_5 ,p_mouse_store_dpi_info_check 
+001e c047046b beq patch11_6 ,p_mouse_idle 
+001f c04804cd beq patch12_0 ,p_mouse_check_select_device_by_switch 
+0020 c04a8498 beq patch12_5 ,p_mouse_24g_hibernate_set 
+0021 c04b04b6 beq patch12_6 ,p_mouse_24g_package_data 
+0022 c0628249 beq patch18_5 ,p_otp_read_data 
+0023 c06a820d beq patch1a_5 ,p_gpio_set_wake_by_current_state 
+0024 c06b0206 beq patch1a_6 ,p_gpio_set_wake 
+0025 c06d0140 beq patch1b_2 ,p_sadc_calibration 
 0026 2020235a branch assert 
 
 pf_patch_ext:
-0027 c00a017f beq patch22_4 ,p_le_slave_match 
-0028 c00d017e beq patch23_2 ,p_le_got_first_packet 
-0029 c01281ae beq patch24_5 ,p_le_rx_dec 
-002a c01301b3 beq patch24_6 ,p_le_rx_nopayload 
-002b c01c81c5 beq patch27_1 ,p_le_parse 
-002c c01d01cf beq patch27_2 ,p_le_parse_l2cap 
-002d c02601cb beq patch29_4 ,p_le_adv_not_match 
-002e c02681c9 beq patch29_5 ,p_le_init_adv 
-002f c0480252 beq patch32_0 ,p_g24_reconn_dispatch 
-0030 c04b048b beq patch32_6 ,p_g24_short_sleep 
-0031 c04d00ee beq patch33_2 ,p_mouse_g24_retransmit 
-0032 c04e80f5 beq patch33_5 ,p_g24_transmit_hop_process 
-0033 c04f8274 beq patch33_7 ,p_power_ctrl_start 
+0027 c00a0178 beq patch22_4 ,p_le_slave_match 
+0028 c00d0177 beq patch23_2 ,p_le_got_first_packet 
+0029 c01281a7 beq patch24_5 ,p_le_rx_dec 
+002a c01301ac beq patch24_6 ,p_le_rx_nopayload 
+002b c01c81be beq patch27_1 ,p_le_parse 
+002c c01d01c8 beq patch27_2 ,p_le_parse_l2cap 
+002d c02601c4 beq patch29_4 ,p_le_adv_not_match 
+002e c02681c2 beq patch29_5 ,p_le_init_adv 
+002f c048024c beq patch32_0 ,p_g24_reconn_dispatch 
+0030 c04b048c beq patch32_6 ,p_g24_short_sleep 
+0031 c04d00e7 beq patch33_2 ,p_mouse_g24_retransmit 
+0032 c04e80ee beq patch33_5 ,p_g24_transmit_hop_process 
+0033 c04f8271 beq patch33_7 ,p_power_ctrl_start 
 0034 c17f8000 rtneq patch3f_7 
 0035 2020235a branch assert 
 
-p_mouse_adc_read_start:
-0036 20406f82 call enable_adc 
-0037 20406fb0 call vdd_calculate_by_mode 
-0038 1fe6fc0a div pdata ,10 
-0039 20407d5f call get_div_result 
-003a 67e14633 store 2 ,mem_mouse_vdd_now_vol 
-003b 20205553 branch mouse_adc_data_process 
-
 p_mouse_sensor_set_angle:
-003c 6fe0c64f fetch 1 ,mem_sensor_angle_default 
-003d 67e0c958 store 1 ,mem_config_sensor_angle 
-003e 6fe0c64e fetch 1 ,mem_select_sensor_angle_gpio 
-003f c17f8000 rtneq gpio_disable 
-0040 204023c3 call lpm_write_ice_disable 
-0041 6fe0c64e fetch 1 ,mem_select_sensor_angle_gpio 
-0042 d840003e arg gpcfg_output_low ,temp 
-0043 20406f21 call gpio_config_function_int 
-0044 6fe0c65b fetch 1 ,mem_mouse_reuse_2ice_gpio 
-0045 d840003e arg gpcfg_output_low ,temp 
-0046 20406f21 call gpio_config_function_int 
+0036 6fe0c64f fetch 1 ,mem_sensor_angle_default 
+0037 67e0c958 store 1 ,mem_config_sensor_angle 
+0038 6fe0c64e fetch 1 ,mem_select_sensor_angle_gpio 
+0039 c17f8000 rtneq gpio_disable 
+003a 204023c3 call lpm_write_ice_disable 
+003b 6fe0c64e fetch 1 ,mem_select_sensor_angle_gpio 
+003c d840003e arg gpcfg_output_low ,temp 
+003d 20406f21 call gpio_config_function_int 
+003e 6fe0c65b fetch 1 ,mem_mouse_reuse_2ice_gpio 
+003f d840003e arg gpcfg_output_low ,temp 
+0040 20406f21 call gpio_config_function_int 
+0041 6848c64d fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+0042 204055b5 call mouse_gpio_config_input_pu 
+0043 6848c64d fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+0044 20406ee6 call gpio_get_bit 
+0045 2040d473 call mouse_sensor_switch_angle ,true 
+0046 204055b1 call mouse_gpio_config_input_pd 
 0047 6848c64d fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-0048 204055b5 call mouse_gpio_config_input_pu 
-0049 6848c64d fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-004a 20406ee6 call gpio_get_bit 
-004b 2040d473 call mouse_sensor_switch_angle ,true 
-004c 204055b1 call mouse_gpio_config_input_pd 
-004d 6848c64d fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-004e 20406edd call gpio_config_input 
-004f 204023c7 call lpm_write_ice_enable 
+0048 20406edd call gpio_config_input 
+0049 204023c7 call lpm_write_ice_enable 
 
 p_ice_gpio_set_float:
-0050 6848c64e fetcht 1 ,mem_select_sensor_angle_gpio 
-0051 20406f0f call gpio_set_high_impedance 
-0052 6848c65b fetcht 1 ,mem_mouse_reuse_2ice_gpio 
-0053 20206f0f branch gpio_set_high_impedance 
+004a 6848c64e fetcht 1 ,mem_select_sensor_angle_gpio 
+004b 20406f0f call gpio_set_high_impedance 
+004c 6848c65b fetcht 1 ,mem_mouse_reuse_2ice_gpio 
+004d 20206f0f branch gpio_set_high_impedance 
 
 p_main_loop:
-0054 20407552 call sp_calc_sequence_256 
-0055 20407448 call sp_calc_sequence_256_check 
-0056 20402a45 call le_advertising_dispatch 
-0057 2040202a call idle_dispatch 
-0058 204042ad call app_process_idle 
-0059 20402018 call connection_dispatch 
-005a 2040310f call g24_dispatch 
-005b 2040248c call lpm_dispatch 
-005c 20200054 branch p_main_loop 
+004e 20407552 call sp_calc_sequence_256 
+004f 20407448 call sp_calc_sequence_256_check 
+0050 20402a45 call le_advertising_dispatch 
+0051 2040202a call idle_dispatch 
+0052 204042ad call app_process_idle 
+0053 20402018 call connection_dispatch 
+0054 2040310f call g24_dispatch 
+0055 2040248c call lpm_dispatch 
+0056 2020004e branch p_main_loop 
 
 p_shutdown_radio:
-005d 70890000 jam 0 ,0x8900 
-005e 20202153 branch shutdown_radio + 1 
+0057 70890000 jam 0 ,0x8900 
+0058 20202153 branch shutdown_radio + 1 
 
 p_set_sync_on:
-005f 708a0f60 jam 0x60 ,0x8a0f 
-0060 708a10aa jam 0xaa ,0x8a10 
-0061 708a127a jam 0x7a ,0x8a12 
-0062 708a2500 jam 0x00 ,0x8a25 
-0063 708a2600 jam 0x00 ,0x8a26 
-0064 2000003c nop 60 
-0065 708a2020 jam 0x20 ,0x8a20 
-0066 708a23f5 jam 0xf5 ,0x8a23 
-0067 708a2412 jam 0x12 ,0x8a24 
-0068 708a2410 jam 0x10 ,0x8a24 
-0069 2000003c nop 60 
-006a 708a1260 jam 0x60 ,0x8a12 
-006b 708a23dd jam 0xdd ,0x8a23 
-006c 20600000 rtn 
+0059 708a0f60 jam 0x60 ,0x8a0f 
+005a 708a10aa jam 0xaa ,0x8a10 
+005b 708a127a jam 0x7a ,0x8a12 
+005c 708a2500 jam 0x00 ,0x8a25 
+005d 708a2600 jam 0x00 ,0x8a26 
+005e 2000003c nop 60 
+005f 708a2020 jam 0x20 ,0x8a20 
+0060 708a23f5 jam 0xf5 ,0x8a23 
+0061 708a2412 jam 0x12 ,0x8a24 
+0062 708a2410 jam 0x10 ,0x8a24 
+0063 2000003c nop 60 
+0064 708a1260 jam 0x60 ,0x8a12 
+0065 708a23dd jam 0xdd ,0x8a23 
+0066 20600000 rtn 
 
 p_initialize_radio_cont:
-006d 7001bb00 jam 0 ,mem_le_testtype 
-006e 7001bc00 jam 0 ,mem_cmd_le_create_conn 
-006f 37d98200 until null ,lpo_edge 
-0070 7089460d jam 0x0d ,0x8946 
-0071 70896f10 jam 0x10 ,0x896f 
-0072 708a13cd jam 0xcd ,0x8a13 
-0073 708a0610 jam 0x10 ,0x8a06 
-0074 708a844a jam 0x4a ,0x8a84 
-0075 708a8540 jam 0x40 ,0x8a85 
-0076 708a16fe jam 0xfe ,0x8a16 
-0077 204000b4 call p_set_otp_config 
-0078 204070d7 call wdt_set_disable 
-0079 37d98200 until null ,lpo_edge 
-007a 70813b5f jam 0x5f ,0x813b 
-007b 37d98200 until null ,lpo_edge 
-007c 70813c88 jam 0x88 ,0x813c 
-007d 37d98200 until null ,lpo_edge 
-007e 6fe0c099 fetch 1 ,mem_fcomp_div 
-007f c00800a9 beq xtal_16m ,p_initialize_radio_16m 
-0080 6fe0c438 fetch 1 ,mem_ring_ibias_trim 
-0081 1fe1fe04 or_into 0x04 ,pdata 
-0082 67f08a02 store 1 ,0x8a02 
-0083 70890f01 jam 0x01 ,0x890f 
-0084 708a8024 jam 0x24 ,0x8a80 
-0085 708a8162 jam 0x62 ,0x8a81 
-0086 58e61212 setarg 0xe61212 
-0087 67f18a73 store 3 ,0x8a73 
+0067 7001bb00 jam 0 ,mem_le_testtype 
+0068 7001bc00 jam 0 ,mem_cmd_le_create_conn 
+0069 37d98200 until null ,lpo_edge 
+006a 7089460d jam 0x0d ,0x8946 
+006b 70896f10 jam 0x10 ,0x896f 
+006c 708a13cd jam 0xcd ,0x8a13 
+006d 708a0610 jam 0x10 ,0x8a06 
+006e 708a844a jam 0x4a ,0x8a84 
+006f 708a8540 jam 0x40 ,0x8a85 
+0070 708a16fe jam 0xfe ,0x8a16 
+0071 204000ae call p_set_otp_config 
+0072 204070d7 call wdt_set_disable 
+0073 37d98200 until null ,lpo_edge 
+0074 70813b5f jam 0x5f ,0x813b 
+0075 37d98200 until null ,lpo_edge 
+0076 70813c88 jam 0x88 ,0x813c 
+0077 37d98200 until null ,lpo_edge 
+0078 6fe0c099 fetch 1 ,mem_fcomp_div 
+0079 c00800a3 beq xtal_16m ,p_initialize_radio_16m 
+007a 6fe0c438 fetch 1 ,mem_ring_ibias_trim 
+007b 1fe1fe04 or_into 0x04 ,pdata 
+007c 67f08a02 store 1 ,0x8a02 
+007d 70890f01 jam 0x01 ,0x890f 
+007e 708a8024 jam 0x24 ,0x8a80 
+007f 708a8162 jam 0x62 ,0x8a81 
+0080 58e61212 setarg 0xe61212 
+0081 67f18a73 store 3 ,0x8a73 
 
 p_initialize_radio2:
-0088 708a8660 jam 0x60 ,0x8a86 
-0089 708a8b3b jam 0x3b ,0x8a8b 
-008a 2040009b call p_dpll_on 
-008b 70804300 jam 0 ,core_config 
-008c 70804205 jam clksel_dpll ,core_clksel 
-008d 58557474 setarg 0x557474 
-008e 67f18968 store 3 ,0x8968 
-008f 7089606e jam 0x6e ,0x8960 
-0090 2040011a call p_rx_dcoc 
-0091 20400145 call p_rfpll_aac_ghpc 
-0092 20400095 call p_set_xtal_cap 
-0093 7041480c jam system_clk_12m ,mem_system_clk 
-0094 20206f4e branch sadc_calibration 
+0082 708a8660 jam 0x60 ,0x8a86 
+0083 708a8b3b jam 0x3b ,0x8a8b 
+0084 20400095 call p_dpll_on 
+0085 70804300 jam 0 ,core_config 
+0086 70804205 jam clksel_dpll ,core_clksel 
+0087 58557474 setarg 0x557474 
+0088 67f18968 store 3 ,0x8968 
+0089 7089606e jam 0x6e ,0x8960 
+008a 20400113 call p_rx_dcoc 
+008b 2040013e call p_rfpll_aac_ghpc 
+008c 2040008f call p_set_xtal_cap 
+008d 7041480c jam system_clk_12m ,mem_system_clk 
+008e 20206f4e branch sadc_calibration 
 
 p_set_xtal_cap:
-0095 20758000 rtn wake 
-0096 37d98200 until null ,lpo_edge 
-0097 6fe0c11c fetch 1 ,mem_xtal_c_sel 
-0098 67f0813a store 1 ,core_xtal_cap 
-0099 37d98200 until null ,lpo_edge 
-009a 20600000 rtn 
+008f 20758000 rtn wake 
+0090 37d98200 until null ,lpo_edge 
+0091 6fe0c11c fetch 1 ,mem_xtal_c_sel 
+0092 67f0813a store 1 ,core_xtal_cap 
+0093 37d98200 until null ,lpo_edge 
+0094 20600000 rtn 
 
 p_dpll_on:
-009b 6fe0c099 fetch 1 ,mem_fcomp_div 
-009c c00c00a1 beq xtal_24m ,p_dpll_on_24m 
-009d 6fe0c438 fetch 1 ,mem_ring_ibias_trim 
-009e 1fe1fe06 or_into 0x06 ,pdata 
-009f 67f08a02 store 1 ,0x8a02 
-00a0 708a05e0 jam 0xe0 ,0x8a05 
+0095 6fe0c099 fetch 1 ,mem_fcomp_div 
+0096 c00c009b beq xtal_24m ,p_dpll_on_24m 
+0097 6fe0c438 fetch 1 ,mem_ring_ibias_trim 
+0098 1fe1fe06 or_into 0x06 ,pdata 
+0099 67f08a02 store 1 ,0x8a02 
+009a 708a05e0 jam 0xe0 ,0x8a05 
 
 p_dpll_on_24m:
-00a1 708a00d8 jam 0xd8 ,0x8a00 
-00a2 2000003c nop 60 
-00a3 708a01a0 jam 0xa0 ,0x8a01 
-00a4 708a00df jam 0xdf ,0x8a00 
-00a5 708a01fa jam 0xfa ,0x8a01 
-00a6 20000014 nop 20 
-00a7 708a009f jam 0x9f ,0x8a00 
-00a8 20600000 rtn 
+009b 708a00d8 jam 0xd8 ,0x8a00 
+009c 2000003c nop 60 
+009d 708a01a0 jam 0xa0 ,0x8a01 
+009e 708a00df jam 0xdf ,0x8a00 
+009f 708a01fa jam 0xfa ,0x8a01 
+00a0 20000014 nop 20 
+00a1 708a009f jam 0x9f ,0x8a00 
+00a2 20600000 rtn 
 
 p_initialize_radio_16m:
-00a9 6fe0c438 fetch 1 ,mem_ring_ibias_trim 
-00aa 1fe1fe06 or_into 0x06 ,pdata 
-00ab 67f08a02 store 1 ,0x8a02 
-00ac 70890f00 jam 0x00 ,0x890f 
-00ad 708a8023 jam 0x23 ,0x8a80 
-00ae 708a81b0 jam 0xb0 ,0x8a81 
-00af 58e40909 setarg 0xe40909 
-00b0 67f18a73 store 3 ,0x8a73 
-00b1 708a762a jam 0x2a ,0x8a76 
-00b2 70890204 jam 0x04 ,0x8902 
-00b3 20200088 branch p_initialize_radio2 
+00a3 6fe0c438 fetch 1 ,mem_ring_ibias_trim 
+00a4 1fe1fe06 or_into 0x06 ,pdata 
+00a5 67f08a02 store 1 ,0x8a02 
+00a6 70890f00 jam 0x00 ,0x890f 
+00a7 708a8023 jam 0x23 ,0x8a80 
+00a8 708a81b0 jam 0xb0 ,0x8a81 
+00a9 58e40909 setarg 0xe40909 
+00aa 67f18a73 store 3 ,0x8a73 
+00ab 708a762a jam 0x2a ,0x8a76 
+00ac 70890204 jam 0x04 ,0x8902 
+00ad 20200082 branch p_initialize_radio2 
 
 p_set_otp_config:
-00b4 203580dc branch p_set_otp_config_wake ,wake 
-00b5 6fe2020d fetch 4 ,mem_otp_core_ldo 
-00b6 207a0000 rtn blank 
-00b7 37d98200 until null ,lpo_edge 
-00b8 6ff08136 fetch 1 ,0x8136 
-00b9 1fe17ef0 and pdata ,0xf0 ,pdata 
-00ba 6848820d fetcht 1 ,mem_otp_core_ldo 
-00bb 9841fe00 ior temp ,pdata 
-00bc 1fe0fffd increase -3 ,pdata 
-00bd 67f08136 store 1 ,0x8136 
-00be 37d98200 until null ,lpo_edge 
-00bf 6ff08138 fetch 1 ,0x8138 
-00c0 1fe17e07 and pdata ,0x7 ,pdata 
-00c1 6848820e fetcht 1 ,mem_otp_verf_bg 
-00c2 18498400 lshift3 temp ,temp 
-00c3 9841fe00 ior temp ,pdata 
-00c4 67f08138 store 1 ,0x8138 
-00c5 37d98200 until null ,lpo_edge 
-
-p_set_otp_config2:
-00c6 6ff08acb fetch 1 ,0x8acb 
-00c7 1fe17ef0 and pdata ,0xf0 ,pdata 
-00c8 6848820f fetcht 1 ,mem_otp_charge_pump 
-00c9 6048c15b storet 1 ,mem_otp_charge_pump_x 
-00ca 9841fe00 ior temp ,pdata 
-00cb 67f08acb store 1 ,0x8acb 
-00cc 6fe08210 fetch 1 ,mem_otp_dpll_ibais 
-00cd 67e0c15c store 1 ,mem_otp_dpll_ibais_x 
-00ce 2feffe03 isolate1 3 ,pdata 
-00cf 6ff08a06 fetch 1 ,0x8a06 
-00d0 7920fe07 setflag true ,7 ,pdata 
-00d1 67f08a06 store 1 ,0x8a06 
-00d2 6fe08210 fetch 1 ,mem_otp_dpll_ibais 
-00d3 1fe10407 and pdata ,7 ,temp 
-00d4 18520400 lshift4 temp ,temp 
-00d5 18438400 lshift temp ,temp 
-00d6 6048c438 storet 1 ,mem_ring_ibias_trim 
-00d7 6ff08a02 fetch 1 ,0x8a02 
-00d8 1fe17e1f and pdata ,0x1f ,pdata 
-00d9 9841fe00 ior temp ,pdata 
-00da 67f08a02 store 1 ,0x8a02 
-00db 20600000 rtn 
+00ae 203580c0 branch p_set_otp_config_wake ,wake 
+00af 6fe2020d fetch 4 ,mem_otp_core_ldo 
+00b0 207a0000 rtn blank 
+00b1 37d98200 until null ,lpo_edge 
+00b2 6ff08136 fetch 1 ,0x8136 
+00b3 1fe17ef0 and pdata ,0xf0 ,pdata 
+00b4 6848820d fetcht 1 ,mem_otp_core_ldo 
+00b5 9841fe00 ior temp ,pdata 
+00b6 1fe0fffd increase -3 ,pdata 
+00b7 67f08136 store 1 ,0x8136 
+00b8 37d98200 until null ,lpo_edge 
+00b9 6ff08138 fetch 1 ,0x8138 
+00ba 1fe17e07 and pdata ,0x7 ,pdata 
+00bb 6848820e fetcht 1 ,mem_otp_verf_bg 
+00bc 18498400 lshift3 temp ,temp 
+00bd 9841fe00 ior temp ,pdata 
+00be 67f08138 store 1 ,0x8138 
+00bf 37d98200 until null ,lpo_edge 
 
 p_set_otp_config_wake:
-00dc 6fe1415b fetch 2 ,mem_otp_charge_pump_x 
-00dd 207a0000 rtn blank 
-00de 67e1020f store 2 ,mem_otp_charge_pump 
-00df 202000c6 branch p_set_otp_config2 
+00c0 6fe1415b fetch 2 ,mem_otp_charge_pump_x 
+00c1 207a0000 rtn blank 
+00c2 67e1020f store 2 ,mem_otp_charge_pump 
+
+p_set_otp_config2:
+00c3 6ff08acb fetch 1 ,0x8acb 
+00c4 1fe17ef0 and pdata ,0xf0 ,pdata 
+00c5 6848820f fetcht 1 ,mem_otp_charge_pump 
+00c6 6048c15b storet 1 ,mem_otp_charge_pump_x 
+00c7 9841fe00 ior temp ,pdata 
+00c8 67f08acb store 1 ,0x8acb 
+00c9 6fe08210 fetch 1 ,mem_otp_dpll_ibais 
+00ca 67e0c15c store 1 ,mem_otp_dpll_ibais_x 
+00cb 2feffe03 isolate1 3 ,pdata 
+00cc 6ff08a06 fetch 1 ,0x8a06 
+00cd 7920fe07 setflag true ,7 ,pdata 
+00ce 67f08a06 store 1 ,0x8a06 
+00cf 6fe08210 fetch 1 ,mem_otp_dpll_ibais 
+00d0 1fe10407 and pdata ,7 ,temp 
+00d1 18520400 lshift4 temp ,temp 
+00d2 18438400 lshift temp ,temp 
+00d3 6048c438 storet 1 ,mem_ring_ibias_trim 
+00d4 6ff08a02 fetch 1 ,0x8a02 
+00d5 1fe17e1f and pdata ,0x1f ,pdata 
+00d6 9841fe00 ior temp ,pdata 
+00d7 67f08a02 store 1 ,0x8a02 
+00d8 20600000 rtn 
 
 p_rf_rx_enable:
-00e0 2040686f call rf_debug_rx_gpio_high 
-00e1 204021ba call rf_rx_agc_set 
-00e2 18002a08 force 8 ,radio_ctrl 
-00e3 18002a00 force 0 ,radio_ctrl 
-00e4 580aaada setarg 0x0aaada 
-00e5 67f18a0f store 3 ,0x8a0f 
-00e6 708a2540 jam 0x40 ,0x8a25 
-00e7 708a2610 jam 0x10 ,0x8a26 
-00e8 2000003c nop 60 
-00e9 708a01fb jam 0xfb ,0x8a01 
-00ea 708a25ff jam 0xff ,0x8a25 
-00eb 708a2630 jam 0x30 ,0x8a26 
-00ec 708a16fe jam 0xfe ,0x8a16 
-00ed 202021b4 branch rf_rx_enable + 14 
+00d9 2040686f call rf_debug_rx_gpio_high 
+00da 204021ba call rf_rx_agc_set 
+00db 18002a08 force 8 ,radio_ctrl 
+00dc 18002a00 force 0 ,radio_ctrl 
+00dd 580aaada setarg 0x0aaada 
+00de 67f18a0f store 3 ,0x8a0f 
+00df 708a2540 jam 0x40 ,0x8a25 
+00e0 708a2610 jam 0x10 ,0x8a26 
+00e1 2000003c nop 60 
+00e2 708a01fb jam 0xfb ,0x8a01 
+00e3 708a25ff jam 0xff ,0x8a25 
+00e4 708a2630 jam 0x30 ,0x8a26 
+00e5 708a16fe jam 0xfe ,0x8a16 
+00e6 202021b4 branch rf_rx_enable + 14 
 
 p_mouse_g24_retransmit:
-00ee 6fe0c793 fetch 1 ,mem_mouse_need_soft_reset 
-00ef 247a0000 nrtn blank 
-00f0 204000f2 call p_mouse_retransmit_select_device_by_pb_button 
-00f1 202060fc branch mouse_g24_retransmit + 3 
+00e7 6fe0c793 fetch 1 ,mem_mouse_need_soft_reset 
+00e8 247a0000 nrtn blank 
+00e9 204000eb call p_mouse_retransmit_select_device_by_pb_button 
+00ea 202060fc branch mouse_g24_retransmit + 3 
 
 p_mouse_retransmit_select_device_by_pb_button:
-00f2 6fe0c655 fetch 1 ,mem_config_select_device_button_gpio 
-00f3 c17f8000 rtneq gpio_disable 
-00f4 20205e78 branch mouse_retransmit_select_device_by_pb_button 
+00eb 6fe0c655 fetch 1 ,mem_config_select_device_button_gpio 
+00ec c17f8000 rtneq gpio_disable 
+00ed 20205e78 branch mouse_retransmit_select_device_by_pb_button 
 
 p_g24_transmit_hop_process:
-00f5 6848c601 fetcht 1 ,mem_24g_retry 
-00f6 6fe0c621 fetch 1 ,mem_24g_fast_hop_count 
-00f7 98467c00 isub temp ,null 
-00f8 242100fa nbranch p_g24_tx_fast_hop ,positive 
-00f9 20203681 branch g24_transmit_hop_process + 5 
+00ee 6848c601 fetcht 1 ,mem_24g_retry 
+00ef 6fe0c621 fetch 1 ,mem_24g_fast_hop_count 
+00f0 98467c00 isub temp ,null 
+00f1 242100f3 nbranch p_g24_tx_fast_hop ,positive 
+00f2 20203681 branch g24_transmit_hop_process + 5 
 
 p_g24_tx_fast_hop:
-00fa 6fe2458f fetch 4 ,mem_24g_addr 
-00fb 684a45e4 fetcht 4 ,mem_24g_fast_conn_addr 
-00fc 98467c00 isub temp ,null 
-00fd 2022b222 branch g24_ch ,zero 
-00fe 20400299 call p_power_ctrl_txpower_incrs 
-00ff 2020369b branch g24_tx_fast_hop + 1 
+00f3 6fe2458f fetch 4 ,mem_24g_addr 
+00f4 684a45e4 fetcht 4 ,mem_24g_fast_conn_addr 
+00f5 98467c00 isub temp ,null 
+00f6 2022b222 branch g24_ch ,zero 
+00f7 20400296 call p_power_ctrl_txpower_incrs 
+00f8 2020369b branch g24_tx_fast_hop + 1 
 
 p_txon:
-0100 580aaa7e setarg 0x0aaa7e 
-0101 67f18a0f store 3 ,0x8a0f 
-0102 2000003c nop 60 
-0103 708a2500 jam 0x00 ,0x8a25 
-0104 708a260d jam 0x0d ,0x8a26 
-0105 708a16f6 jam 0xf6 ,0x8a16 
-0106 20202203 branch txon + 7 
+00f9 580aaa7e setarg 0x0aaa7e 
+00fa 67f18a0f store 3 ,0x8a0f 
+00fb 2000003c nop 60 
+00fc 708a2500 jam 0x00 ,0x8a25 
+00fd 708a260d jam 0x0d ,0x8a26 
+00fe 708a16f6 jam 0xf6 ,0x8a16 
+00ff 20202203 branch txon + 7 
 
 p_set_tx_power:
-0107 6fe0c141 fetch 1 ,mem_tx_power 
-0108 c0032225 beq tx_power_6db ,set_tx_power_7db 
-0109 c005010d beq tx_power_10db ,p_set_tx_power_10db 
-010a c04f0116 beq tx_power_f30db ,p_set_tx_power_f30db 
-010b c0550112 beq tx_power_factory ,p_set_tx_power_factory 
-010c 2020220e branch set_tx_power + 2 
+0100 6fe0c141 fetch 1 ,mem_tx_power 
+0101 c0032225 beq tx_power_6db ,set_tx_power_7db 
+0102 c0050106 beq tx_power_10db ,p_set_tx_power_10db 
+0103 c04f010f beq tx_power_f30db ,p_set_tx_power_f30db 
+0104 c055010b beq tx_power_factory ,p_set_tx_power_factory 
+0105 2020220e branch set_tx_power + 2 
 
 p_set_tx_power_10db:
-010d 708a1425 jam 0x25 ,0x8a14 
-010e 58a93f3f setarg 0xa93f3f 
-010f 67f18a60 store 3 ,0x8a60 
-0110 708a631f jam 0x1f ,0x8a63 
-0111 20600000 rtn 
+0106 708a1425 jam 0x25 ,0x8a14 
+0107 58a93f3f setarg 0xa93f3f 
+0108 67f18a60 store 3 ,0x8a60 
+0109 708a631f jam 0x1f ,0x8a63 
+010a 20600000 rtn 
 
 p_set_tx_power_factory:
-0112 708a1417 jam 0x17 ,0x8a14 
-0113 6fe1ca08 fetch 3 ,mem_tx_power_factory_param_new 
-0114 67f18a60 store 3 ,0x8a60 
-0115 2020221a branch set_tx_power_8a63_28 
+010b 708a1417 jam 0x17 ,0x8a14 
+010c 6fe1ca08 fetch 3 ,mem_tx_power_factory_param_new 
+010d 67f18a60 store 3 ,0x8a60 
+010e 2020221a branch set_tx_power_8a63_28 
 
 p_set_tx_power_f30db:
-0116 708a1417 jam 0x17 ,0x8a14 
-0117 58250300 setarg 0x250300 
-0118 67f18a60 store 3 ,0x8a60 
-0119 2020221a branch set_tx_power_8a63_28 
+010f 708a1417 jam 0x17 ,0x8a14 
+0110 58250300 setarg 0x250300 
+0111 67f18a60 store 3 ,0x8a60 
+0112 2020221a branch set_tx_power_8a63_28 
 
 p_rx_dcoc:
-011a 20758000 rtn wake 
-011b 20402160 call set_sync_on 
-011c d8400027 arg 39 ,temp 
-011d 2040216f call set_freq_rx 
-011e 204021a6 call rf_rx_enable 
-011f 708a257f jam 0x7f ,0x8a25 
-0120 708a301a jam 0x1a ,0x8a30 
-0121 708a3178 jam 0x78 ,0x8a31 
-0122 708a8fb2 jam 0xb2 ,0x8a8f 
-0123 708ac200 jam 0 ,0x8ac2 
-0124 708ac300 jam 0 ,0x8ac3 
-0125 d8e00006 arg 6 ,queue 
-0126 20400137 call p_rx_dcoc_avg 
-0127 2a2ffe0d isolate1 13 ,rega 
-0128 2040211d call qset_start 
-0129 2a4ffe0d isolate1 13 ,regb 
-012a 2040211e call qset_p 
-012b d8e00005 arg 5 ,queue 
+0113 20758000 rtn wake 
+0114 20402160 call set_sync_on 
+0115 d8400027 arg 39 ,temp 
+0116 2040216f call set_freq_rx 
+0117 204021a6 call rf_rx_enable 
+0118 708a257f jam 0x7f ,0x8a25 
+0119 708a301a jam 0x1a ,0x8a30 
+011a 708a3178 jam 0x78 ,0x8a31 
+011b 708a8fb2 jam 0xb2 ,0x8a8f 
+011c 708ac200 jam 0 ,0x8ac2 
+011d 708ac300 jam 0 ,0x8ac3 
+011e d8e00006 arg 6 ,queue 
+011f 20400130 call p_rx_dcoc_avg 
+0120 2a2ffe0d isolate1 13 ,rega 
+0121 2040211d call qset_start 
+0122 2a4ffe0d isolate1 13 ,regb 
+0123 2040211e call qset_p 
+0124 d8e00005 arg 5 ,queue 
 
 p_rx_dcoc_loop2:
-012c 2040211c call qset1_p 
-012d 2040211e call qset_p 
-012e 20400137 call p_rx_dcoc_avg 
-012f d8a08ac2 arg 0x8ac2 ,contw 
-0130 1a31fe00 rshift4 rega ,pdata 
-0131 20402117 call qsetxor 
-0132 1a51fe00 rshift4 regb ,pdata 
-0133 20402117 call qsetxor 
-0134 18e08fff increase -1 ,queue 
-0135 2021012c branch p_rx_dcoc_loop2 ,positive 
-0136 2020214f branch rx_dcoc_loop2 + 10 
+0125 2040211c call qset1_p 
+0126 2040211e call qset_p 
+0127 20400130 call p_rx_dcoc_avg 
+0128 d8a08ac2 arg 0x8ac2 ,contw 
+0129 1a31fe00 rshift4 rega ,pdata 
+012a 20402117 call qsetxor 
+012b 1a51fe00 rshift4 regb ,pdata 
+012c 20402117 call qsetxor 
+012d 18e08fff increase -1 ,queue 
+012e 20210125 branch p_rx_dcoc_loop2 ,positive 
+012f 2020214f branch rx_dcoc_loop2 + 10 
 
 p_rx_dcoc_avg:
-0137 2000003c nop 60 
-0138 58000f00 setarg mem_dcoc_buf 
-0139 67f10982 store 2 ,0x8982 
-013a 58000ff0 setarg mem_dcoc_buf_end 
-013b 67f10984 store 2 ,0x8984 
-013c 70898109 jam 0x9 ,0x8981 
-013d 70898103 jam 0x3 ,0x8981 
-013e 70898006 jam 0x6 ,0x8980 
-013f 2000003c nop 60 
-0140 da200000 arg 0 ,rega 
-0141 da400000 arg 0 ,regb 
-0142 df200010 arg 16 ,loopcnt 
-0143 d8c00f00 arg mem_dcoc_buf ,contr 
-0144 2020212d branch rx_dcoc_loop 
+0130 2000003c nop 60 
+0131 58000f00 setarg mem_dcoc_buf 
+0132 67f10982 store 2 ,0x8982 
+0133 58000ff0 setarg mem_dcoc_buf_end 
+0134 67f10984 store 2 ,0x8984 
+0135 70898109 jam 0x9 ,0x8981 
+0136 70898103 jam 0x3 ,0x8981 
+0137 70898006 jam 0x6 ,0x8980 
+0138 2000003c nop 60 
+0139 da200000 arg 0 ,rega 
+013a da400000 arg 0 ,regb 
+013b df200010 arg 16 ,loopcnt 
+013c d8c00f00 arg mem_dcoc_buf ,contr 
+013d 2020212d branch rx_dcoc_loop 
 
 p_rfpll_aac_ghpc:
-0145 20758000 rtn wake 
-0146 20202272 branch rfpll_aac_ghpc + 1 
+013e 20758000 rtn wake 
+013f 20202272 branch rfpll_aac_ghpc + 1 
 
 p_sadc_calibration:
-0147 20758000 rtn wake 
-0148 708a0777 jam 0x77 ,core_gpadc_ctrl 
-0149 708a08c9 jam 0xc9 ,core_gpadc_cfg0 
-014a 708a0b01 jam 0x01 ,core_gpadc_cfg3 
-014b 6fe0c409 fetch 1 ,mem_adc_clkdiv 
-014c 67f080cd store 1 ,core_sadc_clkdiv 
-014d 20000bb8 nop 3000 
-014e 20400157 call p_sadc_read 
-014f 708a08c1 jam 0xc1 ,core_gpadc_cfg0 
-0150 6a40c419 fetchr regb ,1 ,mem_spi_write_addr 
-0151 df200008 arg 8 ,loopcnt 
-0152 20406f58 call sadc_cal_read + 1 
-0153 6fe0c419 fetch 1 ,mem_spi_write_addr 
-0154 67e0c433 store 1 ,mem_adc_cal_c7 
-0155 6240c419 storer regb ,1 ,mem_spi_write_addr 
-0156 20600000 rtn 
+0140 20758000 rtn wake 
+0141 708a0777 jam 0x77 ,core_gpadc_ctrl 
+0142 708a08c9 jam 0xc9 ,core_gpadc_cfg0 
+0143 708a0b01 jam 0x01 ,core_gpadc_cfg3 
+0144 6fe0c409 fetch 1 ,mem_adc_clkdiv 
+0145 67f080cd store 1 ,core_sadc_clkdiv 
+0146 20000bb8 nop 3000 
+0147 20400150 call p_sadc_read 
+0148 708a08c1 jam 0xc1 ,core_gpadc_cfg0 
+0149 6a40c419 fetchr regb ,1 ,mem_spi_write_addr 
+014a df200008 arg 8 ,loopcnt 
+014b 20406f58 call sadc_cal_read + 1 
+014c 6fe0c419 fetch 1 ,mem_spi_write_addr 
+014d 67e0c433 store 1 ,mem_adc_cal_c7 
+014e 6240c419 storer regb ,1 ,mem_spi_write_addr 
+014f 20600000 rtn 
 
 p_sadc_read:
-0157 7080cc03 jam 0x03 ,core_sadc_ctrl 
+0150 7080cc03 jam 0x03 ,core_sadc_ctrl 
 
 p_sadc_read_wait:
-0158 6ff08129 fetch 1 ,core_perf_status 
-0159 c3028158 bbit0 saradc_done ,p_sadc_read_wait 
-015a 68590164 fetcht 2 ,core_sadc_data 
-015b 6049440a storet 2 ,mem_adc_current_value 
-015c 7080cc00 jam 0x00 ,core_sadc_ctrl 
-015d 20600000 rtn 
+0151 6ff08129 fetch 1 ,core_perf_status 
+0152 c3028151 bbit0 saradc_done ,p_sadc_read_wait 
+0153 68590164 fetcht 2 ,core_sadc_data 
+0154 6049440a storet 2 ,mem_adc_current_value 
+0155 7080cc00 jam 0x00 ,core_sadc_ctrl 
+0156 20600000 rtn 
 
 p_set_lemode:
-015e 708a8211 jam 0x11 ,0x8a82 
-015f 708a8d12 jam 0x12 ,0x8a8d 
-0160 708a8e0a jam 0x0a ,0x8a8e 
-0161 6fe0c099 fetch 1 ,mem_fcomp_div 
-0162 c0080177 beq xtal_16m ,p_set_lemode_2m_16m 
-0163 58005762 setarg 0x5762 
-0164 67f10907 store 2 ,0x8907 
+0157 708a8211 jam 0x11 ,0x8a82 
+0158 708a8d12 jam 0x12 ,0x8a8d 
+0159 708a8e0a jam 0x0a ,0x8a8e 
+015a 6fe0c099 fetch 1 ,mem_fcomp_div 
+015b c0080170 beq xtal_16m ,p_set_lemode_2m_16m 
+015c 58005762 setarg 0x5762 
+015d 67f10907 store 2 ,0x8907 
 
 p_set_lemode_2m:
-0165 70890103 jam 3 ,0x8901 
-0166 70893003 jam 3 ,0x8930 
-0167 c6168000 rtnmark1 mark_ble_2m 
-0168 70890101 jam 1 ,0x8901 
-0169 708a8207 jam 0x07 ,0x8a82 
-016a 708a8d44 jam 0x44 ,0x8a8d 
-016b 708a8e0a jam 0x0a ,0x8a8e 
-016c 6fe0c099 fetch 1 ,mem_fcomp_div 
-016d c0080174 beq xtal_16m ,p_set_lemode_1m_16m 
-016e 58002bb1 setarg 0x2bb1 
-016f 67f10907 store 2 ,0x8907 
+015e 70890103 jam 3 ,0x8901 
+015f 70893003 jam 3 ,0x8930 
+0160 c6168000 rtnmark1 mark_ble_2m 
+0161 70890101 jam 1 ,0x8901 
+0162 708a8207 jam 0x07 ,0x8a82 
+0163 708a8d44 jam 0x44 ,0x8a8d 
+0164 708a8e0a jam 0x0a ,0x8a8e 
+0165 6fe0c099 fetch 1 ,mem_fcomp_div 
+0166 c008016d beq xtal_16m ,p_set_lemode_1m_16m 
+0167 58002bb1 setarg 0x2bb1 
+0168 67f10907 store 2 ,0x8907 
 
 p_set_lemode_1m:
-0170 c6978000 rtnmark0 mark_ble_lr 
-0171 70893024 jam 0x24 ,0x8930 
-0172 70890105 jam 5 ,0x8901 
-0173 20600000 rtn 
+0169 c6978000 rtnmark0 mark_ble_lr 
+016a 70893024 jam 0x24 ,0x8930 
+016b 70890105 jam 5 ,0x8901 
+016c 20600000 rtn 
 
 p_set_lemode_1m_16m:
-0174 58004189 setarg 0x4189 
-0175 67f10907 store 2 ,0x8907 
-0176 20200170 branch p_set_lemode_1m 
+016d 58004189 setarg 0x4189 
+016e 67f10907 store 2 ,0x8907 
+016f 20200169 branch p_set_lemode_1m 
 
 p_set_lemode_2m_16m:
-0177 58008312 setarg 0x8312 
-0178 67f10907 store 2 ,0x8907 
-0179 20200165 branch p_set_lemode_2m 
+0170 58008312 setarg 0x8312 
+0171 67f10907 store 2 ,0x8907 
+0172 2020015e branch p_set_lemode_2m 
 
 p_le_check_retransmit_timesout:
-017a 6fe0cc03 fetch 1 ,mem_le_conn_rcv_new 
-017b da600100 arg 256 ,regc 
-017c 9a60fe00 iadd regc ,pdata 
-017d 20600000 rtn 
+0173 6fe0cbf8 fetch 1 ,mem_le_conn_rcv_new 
+0174 da600100 arg 256 ,regc 
+0175 9a60fe00 iadd regc ,pdata 
+0176 20600000 rtn 
 
 p_le_got_first_packet:
-017e 2020019e branch p_le_got_first_packet_new 
+0177 20200197 branch p_le_got_first_packet_new 
 
 p_le_slave_match:
-017f 20400181 call p_le_check_retransmit 
-0180 20202563 branch le_slave_match + 1 
+0178 2040017a call p_le_check_retransmit 
+0179 20202563 branch le_slave_match + 1 
 
 p_le_check_retransmit:
-0181 6fe0cc04 fetch 1 ,mem_le_conn_first_rcv 
-0182 207a0000 rtn blank 
-0183 6fe0cc05 fetch 1 ,mem_le_check_retransmit_flag 
-0184 247a0000 nrtn blank 
-0185 6848cc04 fetcht 1 ,mem_le_conn_first_rcv 
-0186 6fe0cc03 fetch 1 ,mem_le_conn_rcv_new 
-0187 98467c00 isub temp ,null 
-0188 2441017a ncall p_le_check_retransmit_timesout ,positive 
-0189 98467e00 isub temp ,pdata 
-018a 1fe67c64 sub pdata ,100 ,null 
-018b 20210193 branch p_le_check_retransmit_count ,positive 
-018c 6fe0cc06 fetch 1 ,mem_le_retransmit_cnt 
-018d 1fe67c14 sub pdata ,20 ,null 
-018e 24410191 ncall p_app_ble_disconnect ,positive 
-018f 704c0501 jam 1 ,mem_le_check_retransmit_flag 
-0190 20600000 rtn 
+017a 6fe0cbf9 fetch 1 ,mem_le_conn_first_rcv 
+017b 207a0000 rtn blank 
+017c 6fe0cbfa fetch 1 ,mem_le_check_retransmit_flag 
+017d 247a0000 nrtn blank 
+017e 6848cbf9 fetcht 1 ,mem_le_conn_first_rcv 
+017f 6fe0cbf8 fetch 1 ,mem_le_conn_rcv_new 
+0180 98467c00 isub temp ,null 
+0181 24410173 ncall p_le_check_retransmit_timesout ,positive 
+0182 98467e00 isub temp ,pdata 
+0183 1fe67c64 sub pdata ,100 ,null 
+0184 2021018c branch p_le_check_retransmit_count ,positive 
+0185 6fe0cbfb fetch 1 ,mem_le_retransmit_cnt 
+0186 1fe67c14 sub pdata ,20 ,null 
+0187 2441018a ncall p_app_ble_disconnect ,positive 
+0188 704bfa01 jam 1 ,mem_le_check_retransmit_flag 
+0189 20600000 rtn 
 
 p_app_ble_disconnect:
-0191 704c0701 jam 1 ,mem_le_check_retransmit_discon_flag 
-0192 2020431f branch app_ble_disconnect 
+018a 704bfc01 jam 1 ,mem_le_check_retransmit_discon_flag 
+018b 2020431f branch app_ble_disconnect 
 
 p_le_check_retransmit_count:
-0193 6848817f fetcht 1 ,mem_le_arq 
-0194 6fe0804c fetch 1 ,mem_le_rxbuf_data_header 
-0195 1fe37e00 rshift pdata ,pdata 
-0196 9842fe00 ixor temp ,pdata 
-0197 2feffe02 isolate1 nesn ,pdata 
-0198 58000000 setarg 0 
-0199 6848cc06 fetcht 1 ,mem_le_retransmit_cnt 
-019a 7920fe00 setflag true ,0 ,pdata 
-019b 98408400 iadd temp ,temp 
-019c 6048cc06 storet 1 ,mem_le_retransmit_cnt 
-019d 20600000 rtn 
+018c 6848817f fetcht 1 ,mem_le_arq 
+018d 6fe0804c fetch 1 ,mem_le_rxbuf_data_header 
+018e 1fe37e00 rshift pdata ,pdata 
+018f 9842fe00 ixor temp ,pdata 
+0190 2feffe02 isolate1 nesn ,pdata 
+0191 58000000 setarg 0 
+0192 6848cbfb fetcht 1 ,mem_le_retransmit_cnt 
+0193 7920fe00 setflag true ,0 ,pdata 
+0194 98408400 iadd temp ,temp 
+0195 6048cbfb storet 1 ,mem_le_retransmit_cnt 
+0196 20600000 rtn 
 
 p_le_got_first_packet_new:
-019e 6fe08005 fetch 1 ,mem_le_conn_rcv 
-019f 1fe0fe01 increase 1 ,pdata 
-01a0 67e08005 store 1 ,mem_le_conn_rcv 
-01a1 243681a5 nbranch p_le_got_first_packet_new + 7 ,match 
-01a2 6fe0cc03 fetch 1 ,mem_le_conn_rcv_new 
-01a3 1fe0fe01 increase 1 ,pdata 
-01a4 67e0cc03 store 1 ,mem_le_conn_rcv_new 
-01a5 6fe08168 fetch 1 ,mem_le_state 
-01a6 c3818000 rtnbit1 lestate_got_first_packet 
-01a7 79207e03 set1 lestate_got_first_packet ,pdata 
-01a8 67e08168 store 1 ,mem_le_state 
-01a9 6fe142f5 fetch 2 ,mem_le_init_superto 
-01aa 67e10196 store 2 ,mem_le_superto 
-01ab 58000000 setarg 0 
-01ac 67e2431d store 4 ,mem_le_transmit_window 
-01ad 20600000 rtn 
+0197 6fe08005 fetch 1 ,mem_le_conn_rcv 
+0198 1fe0fe01 increase 1 ,pdata 
+0199 67e08005 store 1 ,mem_le_conn_rcv 
+019a 2436819e nbranch p_le_got_first_packet_new + 7 ,match 
+019b 6fe0cbf8 fetch 1 ,mem_le_conn_rcv_new 
+019c 1fe0fe01 increase 1 ,pdata 
+019d 67e0cbf8 store 1 ,mem_le_conn_rcv_new 
+019e 6fe08168 fetch 1 ,mem_le_state 
+019f c3818000 rtnbit1 lestate_got_first_packet 
+01a0 79207e03 set1 lestate_got_first_packet ,pdata 
+01a1 67e08168 store 1 ,mem_le_state 
+01a2 6fe142f5 fetch 2 ,mem_le_init_superto 
+01a3 67e10196 store 2 ,mem_le_superto 
+01a4 58000000 setarg 0 
+01a5 67e2431d store 4 ,mem_le_transmit_window 
+01a6 20600000 rtn 
 
 p_le_rx_dec:
-01ae 2040281c call le_check_retransmit 
-01af 6a20804d fetchr rega ,1 ,mem_le_rxbuf_data_length 
-01b0 1a20a3fc increase -4 ,rega 
-01b1 242126fa nbranch le_crc_fail_consecutive ,positive 
-01b2 2020268e branch le_rx_dec + 6 
+01a7 2040281c call le_check_retransmit 
+01a8 6a20804d fetchr rega ,1 ,mem_le_rxbuf_data_length 
+01a9 1a20a3fc increase -4 ,rega 
+01aa 242126fa nbranch le_crc_fail_consecutive ,positive 
+01ab 2020268e branch le_rx_dec + 6 
 
 p_le_rx_nopayload:
-01b3 09800018 parse demod ,bucket ,24 
-01b4 1fef7e00 rshift32 pdata ,pdata 
-01b5 1ff17e00 rshift16 pdata ,pdata 
-01b6 e7e18005 istore 3 ,contw 
-01b7 78287c00 enable swfine 
-01b8 2040270d call le_set_until_tx_timer 
-01b9 202326f6 branch le_crc_fail ,crc_failed 
-01ba c59926af bmark0 mark_ble_encryption ,le_rx_match 
-01bb 6fe0804d fetch 1 ,mem_le_rxbuf_data_length 
-01bc 203a26af branch le_rx_match ,blank 
-01bd 1fe0fffc increase -4 ,pdata 
-01be 67e0804d store 1 ,mem_le_rxbuf_data_length 
-01bf 204072cb call wait_ccm_done 
-01c0 6ff08108 fetch 1 ,core_misc_status 
-01c1 c303a6fa bbit0 7 ,le_crc_fail_consecutive 
-01c2 1800700c force regidx_result ,regext_index 
-01c3 65e20154 storer regext ,4 ,mem_le_peer_mic 
-01c4 202026af branch le_rx_match 
+01ac 09800018 parse demod ,bucket ,24 
+01ad 1fef7e00 rshift32 pdata ,pdata 
+01ae 1ff17e00 rshift16 pdata ,pdata 
+01af e7e18005 istore 3 ,contw 
+01b0 78287c00 enable swfine 
+01b1 2040270d call le_set_until_tx_timer 
+01b2 202326f6 branch le_crc_fail ,crc_failed 
+01b3 c59926af bmark0 mark_ble_encryption ,le_rx_match 
+01b4 6fe0804d fetch 1 ,mem_le_rxbuf_data_length 
+01b5 203a26af branch le_rx_match ,blank 
+01b6 1fe0fffc increase -4 ,pdata 
+01b7 67e0804d store 1 ,mem_le_rxbuf_data_length 
+01b8 204072cb call wait_ccm_done 
+01b9 6ff08108 fetch 1 ,core_misc_status 
+01ba c303a6fa bbit0 7 ,le_crc_fail_consecutive 
+01bb 1800700c force regidx_result ,regext_index 
+01bc 65e20154 storer regext ,4 ,mem_le_peer_mic 
+01bd 202026af branch le_rx_match 
 
 p_le_parse:
-01c5 6fe0c334 fetch 1 ,mem_le_packet_llid 
-01c6 c1000000 rtneq llid_reserved 
-01c7 c001b04a beq llid_le_ll ,le_parse_ll 
-01c8 202028e1 branch le_parse_l2cap 
+01be 6fe0c334 fetch 1 ,mem_le_packet_llid 
+01bf c1000000 rtneq llid_reserved 
+01c0 c001b04a beq llid_le_ll ,le_parse_ll 
+01c1 202028e1 branch le_parse_l2cap 
 
 p_le_init_adv:
-01c9 793f8030 set0 mark_ble_crc_fail ,mark 
-01ca 20202af6 branch le_init_adv + 1 
+01c2 793f8030 set0 mark_ble_crc_fail ,mark 
+01c3 20202af6 branch le_init_adv + 1 
 
 p_le_adv_not_match:
-01cb 20402152 call shutdown_radio 
-01cc 70890000 jam 0 ,0x8900 
-01cd 793f8030 set0 mark_ble_crc_fail ,mark 
-01ce 20202ae3 branch le_adv_not_match + 1 
+01c4 20402152 call shutdown_radio 
+01c5 70890000 jam 0 ,0x8900 
+01c6 793f8030 set0 mark_ble_crc_fail ,mark 
+01c7 20202ae3 branch le_adv_not_match + 1 
 
 p_le_parse_l2cap:
-01cf efe10006 ifetch 2 ,contr 
-01d0 c00201d2 beq le_l2cap_cid_att ,p_le_parse_att 
-01d1 202028eb branch le_parse_l2cap_next + 2 
+01c8 efe10006 ifetch 2 ,contr 
+01c9 c00201cb beq le_l2cap_cid_att ,p_le_parse_att 
+01ca 202028eb branch le_parse_l2cap_next + 2 
 
 p_le_parse_att:
-01d2 efe18006 ifetch 3 ,contr 
-01d3 67e1c397 store 3 ,mem_le_att_opcode 
-01d4 c00501d7 beq attop_read_request ,p_le_parse_att_read_request 
-01d5 c00901e6 beq attop_write_request ,p_le_parse_att_write_request 
-01d6 20202b96 branch le_parse_att2 
+01cb efe18006 ifetch 3 ,contr 
+01cc 67e1c397 store 3 ,mem_le_att_opcode 
+01cd c00501d0 beq attop_read_request ,p_le_parse_att_read_request 
+01ce c00901df beq attop_write_request ,p_le_parse_att_write_request 
+01cf 20202b96 branch le_parse_att2 
 
 p_le_parse_att_read_request:
-01d7 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-01d8 c31dad19 bbit0 mouse_enable_le_battery_service_cancel ,le_parse_att_read_request 
-01d9 20402dc7 call le_check_encrypt_state 
-01da 68494398 fetcht 2 ,mem_le_att_handle 
-01db 6fe0c321 fetch 1 ,mem_le_configuration 
-01dc c28181e1 bbit1 bit_ble_read_auth ,p_le_send_att_read_response_check_auth 
+01d0 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+01d1 c31dad19 bbit0 mouse_enable_le_battery_service_cancel ,le_parse_att_read_request 
+01d2 20402dc7 call le_check_encrypt_state 
+01d3 68494398 fetcht 2 ,mem_le_att_handle 
+01d4 6fe0c321 fetch 1 ,mem_le_configuration 
+01d5 c28181da bbit1 bit_ble_read_auth ,p_le_send_att_read_response_check_auth 
 
 p_le_send_att_read_response:
-01dd 6fe14398 fetch 2 ,mem_le_att_handle 
-01de c0182e03 beq 0x30 ,le_send_att_error_response_notfound 
-01df 68494398 fetcht 2 ,mem_le_att_handle 
-01e0 20202d1d branch le_send_att_read_response 
+01d6 6fe14398 fetch 2 ,mem_le_att_handle 
+01d7 c0182e03 beq 0x30 ,le_send_att_error_response_notfound 
+01d8 68494398 fetcht 2 ,mem_le_att_handle 
+01d9 20202d1d branch le_send_att_read_response 
 
 p_le_send_att_read_response_check_auth:
-01e1 6fe14332 fetch 2 ,mem_le_pairing_handle 
-01e2 98467c00 isub temp ,null 
-01e3 242281dd nbranch p_le_send_att_read_response ,zero 
-01e4 243401dd nbranch p_le_send_att_read_response ,user 
-01e5 20202d46 branch le_send_att_read_response_error_insufficient_auth 
+01da 6fe14332 fetch 2 ,mem_le_pairing_handle 
+01db 98467c00 isub temp ,null 
+01dc 242281d6 nbranch p_le_send_att_read_response ,zero 
+01dd 243401d6 nbranch p_le_send_att_read_response ,user 
+01de 20202d46 branch le_send_att_read_response_error_insufficient_auth 
 
 p_le_parse_att_write_request:
-01e6 18c22200 copy contr ,rega 
-01e7 6fe14335 fetch 2 ,mem_le_l2cap_size 
-01e8 1fe0a5fd add pdata ,-3 ,regb 
-01e9 20402929 call le_writeatt_cb 
-01ea 6fe0c78f fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-01eb c07fadac beq 0xff ,le_send_att_write_response_check_auth 
-01ec 6fe0c795 fetch 1 ,mem_mouse_le_reconnect_flag 
-01ed 203a2dac branch le_send_att_write_response_check_auth ,blank 
-01ee 6fe0c843 fetch 1 ,mem_le_connect_status_flag 
-01ef c280adac bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
-01f0 5800001a setarg 0x001a 
-01f1 68494398 fetcht 2 ,mem_le_att_handle 
-01f2 98467c00 isub temp ,null 
-01f3 2422adac nbranch le_send_att_write_response_check_auth ,zero 
-01f4 20202d46 branch le_send_att_read_response_error_insufficient_auth 
+01df 18c22200 copy contr ,rega 
+01e0 6fe14335 fetch 2 ,mem_le_l2cap_size 
+01e1 1fe0a5fd add pdata ,-3 ,regb 
+01e2 20402929 call le_writeatt_cb 
+01e3 6fe0c78f fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+01e4 c07fadac beq 0xff ,le_send_att_write_response_check_auth 
+01e5 6fe0c795 fetch 1 ,mem_mouse_le_reconnect_flag 
+01e6 203a2dac branch le_send_att_write_response_check_auth ,blank 
+01e7 6fe0c843 fetch 1 ,mem_le_connect_status_flag 
+01e8 c280adac bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
+01e9 5800001a setarg 0x001a 
+01ea 68494398 fetcht 2 ,mem_le_att_handle 
+01eb 98467c00 isub temp ,null 
+01ec 2422adac nbranch le_send_att_write_response_check_auth ,zero 
+01ed 20202d46 branch le_send_att_read_response_error_insufficient_auth 
 
 p_mouse_le:
-01f5 20402a28 call le_fifo_check_nearly_full 
-01f6 247a0000 nrtn blank 
-01f7 6fe0c78f fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-01f8 c07f8200 beq 0xff ,p_mouse_le_next 
-01f9 6fe0c843 fetch 1 ,mem_le_connect_status_flag 
-01fa 1fe17e03 and pdata ,0x03 ,pdata 
-01fb c1818000 rtnne 0x03 
-01fc 6fe0cc05 fetch 1 ,mem_le_check_retransmit_flag 
-01fd 207a0000 rtn blank 
-01fe 6fe0cc07 fetch 1 ,mem_le_check_retransmit_discon_flag 
-01ff 247a0000 nrtn blank 
+01ee 20402a28 call le_fifo_check_nearly_full 
+01ef 247a0000 nrtn blank 
+01f0 6fe0c78f fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+01f1 c07f81f9 beq 0xff ,p_mouse_le_next 
+01f2 6fe0c843 fetch 1 ,mem_le_connect_status_flag 
+01f3 1fe17e03 and pdata ,0x03 ,pdata 
+01f4 c1818000 rtnne 0x03 
+01f5 6fe0cbfa fetch 1 ,mem_le_check_retransmit_flag 
+01f6 207a0000 rtn blank 
+01f7 6fe0cbfc fetch 1 ,mem_le_check_retransmit_discon_flag 
+01f8 247a0000 nrtn blank 
 
 p_mouse_le_next:
-0200 6fe0c956 fetch 1 ,mem_mouse_clear_sensor_data_flag 
-0201 205a5a71 call mouse_clear_sensor_data_by_reset ,blank 
-0202 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-0203 c280db5b bbit1 mouse_24g_pairing_flag ,mouse_le_send_empty_packet 
-0204 c2805b5b bbit1 mouse_select_device_flag ,mouse_le_send_empty_packet 
-0205 c282db5b bbit1 mouse_bt_discovery_button_down_flag ,mouse_le_send_empty_packet 
-0206 c2835b5b bbit1 mouse_bt_discovery_button_long_down_flag ,mouse_le_send_empty_packet 
-0207 20405601 call mouse_motion 
-0208 20405ab2 call mouse_check_125hz 
-0209 24740000 nrtn user 
-020a 20405abc call mouse_current_mult_update 
-020b 204004d4 call p_mouse_data_xy_release 
-020c 20205b37 branch mouse_le_next + 12 
+01f9 6fe0c956 fetch 1 ,mem_mouse_clear_sensor_data_flag 
+01fa 205a5a71 call mouse_clear_sensor_data_by_reset ,blank 
+01fb 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+01fc c280db5b bbit1 mouse_24g_pairing_flag ,mouse_le_send_empty_packet 
+01fd c2805b5b bbit1 mouse_select_device_flag ,mouse_le_send_empty_packet 
+01fe c282db5b bbit1 mouse_bt_discovery_button_down_flag ,mouse_le_send_empty_packet 
+01ff c2835b5b bbit1 mouse_bt_discovery_button_long_down_flag ,mouse_le_send_empty_packet 
+0200 20405601 call mouse_motion 
+0201 20405ab2 call mouse_check_125hz 
+0202 24740000 nrtn user 
+0203 20405abc call mouse_current_mult_update 
+0204 204004c2 call p_mouse_data_xy_release 
+0205 20205b37 branch mouse_le_next + 12 
 
 p_gpio_set_wake:
-020d 18467cff sub temp ,ui_button_gpio_disable ,null 
-020e 20628000 rtn zero 
-020f d9000004 arg 4 ,debug 
-0210 284ffe07 isolate1 gpio_active_bit ,temp 
-0211 2020eebd branch gpio_set_wake_high ,true 
-0212 d9000003 arg 3 ,debug 
-0213 20206ebd branch gpio_set_wake_high 
+0206 18467cff sub temp ,ui_button_gpio_disable ,null 
+0207 20628000 rtn zero 
+0208 d9000004 arg 4 ,debug 
+0209 284ffe07 isolate1 gpio_active_bit ,temp 
+020a 2020eebd branch gpio_set_wake_high ,true 
+020b d9000003 arg 3 ,debug 
+020c 20206ebd branch gpio_set_wake_high 
 
 p_gpio_set_wake_by_current_state:
-0214 18467cff sub temp ,gpio_disable ,null 
-0215 20628000 rtn zero 
-0216 6048cb29 storet 1 ,mem_mouse_wheel_temp_gpio 
-0217 20406ee6 call gpio_get_bit 
-0218 2020821a branch p_gpio_set_qdec_mode ,true 
-0219 2020021f branch p_gpio_set_low_wake_disable_qdec 
-
-p_gpio_set_qdec_mode:
-021a 20400228 call p_mouse_qdec_disable 
-021b 20400223 call p_mouse_qdec_lpm_cfg 
-021c 2040022c call p_mouse_qdec_enable 
-021d 6848cb29 fetcht 1 ,mem_mouse_wheel_temp_gpio 
-021e 20206f0f branch gpio_set_high_impedance 
+020d 18467cff sub temp ,gpio_disable ,null 
+020e 20628000 rtn zero 
+020f 6048cb1d storet 1 ,mem_mouse_wheel_temp_gpio 
+0210 20406ee6 call gpio_get_bit 
+0211 20208217 branch p_gpio_set_qdec_mode ,true 
 
 p_gpio_set_low_wake_disable_qdec:
-021f 6848cb29 fetcht 1 ,mem_mouse_wheel_temp_gpio 
-0220 20406f0f call gpio_set_high_impedance 
-0221 20400226 call p_gpio_set_low_wake 
-0222 20200228 branch p_mouse_qdec_disable 
+0212 6848cb1d fetcht 1 ,mem_mouse_wheel_temp_gpio 
+0213 20406f0f call gpio_set_high_impedance 
+0214 6848cb1d fetcht 1 ,mem_mouse_wheel_temp_gpio 
 
-p_mouse_qdec_lpm_cfg:
-0223 d9000006 arg 6 ,debug 
+p_gpio_set_low_wake:
+0215 d9000003 arg 3 ,debug 
+0216 20206ebd branch gpio_set_wake_high 
 
-p_gpio_wake_cfg_set:
-0224 20406ebd call gpio_set_wake_high 
-0225 20200240 branch p_lpm_write_gpio_wakeup 
+p_gpio_set_qdec_mode:
+0217 704b1e01 jam 1 ,mem_mouse_qdec_set_flag 
+0218 6848cb1d fetcht 1 ,mem_mouse_wheel_temp_gpio 
+0219 20406f0f call gpio_set_high_impedance 
+021a 6848cb1d fetcht 1 ,mem_mouse_wheel_temp_gpio 
 
-p_gpio_set_low_wake:
-0226 d9000003 arg 3 ,debug 
-0227 20200224 branch p_gpio_wake_cfg_set 
+p_mouse_qdec_lpm_cfg:
+021b d9000006 arg 6 ,debug 
+021c 20206ebd branch gpio_set_wake_high 
 
-p_mouse_qdec_disable:
-0228 58000010 setarg 0x10 
-0229 67f08141 store 1 ,core_puwakeup 
-
-p_mouse_lpo_wait:
-022a 37d98200 until null ,lpo_edge 
-022b 20600000 rtn 
-
-p_mouse_qdec_enable:
-022c 58000080 setarg 0x80 
-022d 67f08141 store 1 ,core_puwakeup 
-022e 37d98200 until null ,lpo_edge 
-022f 2020022a branch p_mouse_lpo_wait 
+p_mouse_puchk_disable:
+021d 58000010 setarg 0x10 
+
+p_mouse_puchk_set:
+021e 67f08141 store 1 ,core_puwakeup 
+021f 37d98200 until null ,lpo_edge 
+0220 20600000 rtn 
+
+p_mouse_puchk_enable:
+0221 58000080 setarg 0x80 
+0222 2020021e branch p_mouse_puchk_set 
+
+p_mouse_lpm_before_common:
+0223 20400492 call p_clear_wake 
+0224 704b1e00 jam 0 ,mem_mouse_qdec_set_flag 
+0225 2020550d branch mouse_lpm_before_common + 1 
 
 p_lpm_sleep:
-0230 6fe143e9 fetch 2 ,mem_cb_before_lpm_sleep 
-0231 20407d79 call callback_func 
+0226 6fe143e9 fetch 2 ,mem_cb_before_lpm_sleep 
+0227 20407d79 call callback_func 
 
 p_lpm_sleep_skip_cb_function:
-0232 6fe240ad fetch 4 ,mem_sleep_counter_all 
-0233 9840fe00 iadd temp ,pdata 
-0234 67e240ad store 4 ,mem_sleep_counter_all 
-0235 20400237 call p_lpm_save_context 
-0236 20202425 branch lpm_sleep_skip_cb_function + 4 
+0228 6fe240ad fetch 4 ,mem_sleep_counter_all 
+0229 9840fe00 iadd temp ,pdata 
+022a 67e240ad store 4 ,mem_sleep_counter_all 
+022b 20400231 call p_lpm_save_context 
+022c 2040022e call p_mouse_puchk_set_check 
+022d 20202425 branch lpm_sleep_skip_cb_function + 4 
+
+p_mouse_puchk_set_check:
+022e 6fe0cb1e fetch 1 ,mem_mouse_qdec_set_flag 
+022f 203a021d branch p_mouse_puchk_disable ,blank 
+0230 20200221 branch p_mouse_puchk_enable 
 
 p_lpm_save_context:
-0237 600440e7 storer mark ,8 ,mem_saved_mark 
-0238 d8c08070 arg core_gpio_conf ,contr 
-0239 d8a040cc arg mem_saved_gpio ,contw 
-023a 20407c8f call memcpy16 
-023b d8c080d4 arg core_gpio_conf_hi ,contr 
-023c 20407c89 call memcpy8 
-023d 6ff08080 fetch 1 ,core_spid_ctrl 
-023e 67e0c0ef store 1 ,mem_saved_spidctrl 
-023f 18422400 copy temp ,regb 
+0231 600440e7 storer mark ,8 ,mem_saved_mark 
+0232 d8c08070 arg core_gpio_conf ,contr 
+0233 d8a040cc arg mem_saved_gpio ,contw 
+0234 20407c8f call memcpy16 
+0235 d8c080d4 arg core_gpio_conf_hi ,contr 
+0236 20407c89 call memcpy8 
+0237 6ff08080 fetch 1 ,core_spid_ctrl 
+0238 67e0c0ef store 1 ,mem_saved_spidctrl 
+0239 18422400 copy temp ,regb 
 
 p_lpm_write_gpio_wakeup:
-0240 df20000c arg 12 ,loopcnt 
-0241 da200016 arg mem_gpio_wakeup_cfg ,rega 
-0242 da60814d arg core_gpio_wakeup_cfg ,regc 
-0243 37d98200 until null ,lpo_edge 
+023a df20000c arg 12 ,loopcnt 
+023b da200016 arg mem_gpio_wakeup_cfg ,rega 
+023c da60814d arg core_gpio_wakeup_cfg ,regc 
+023d 37d98200 until null ,lpo_edge 
 
 p_lpm_write_gpio_loop:
-0244 efe08011 ifetch 1 ,rega 
-0245 e8408013 ifetcht 1 ,regc 
-0246 98467c00 isub temp ,null 
-0247 2022824a branch p_lpm_write_gpio_loop_next ,zero 
-0248 e7e08013 istore 1 ,regc 
-0249 37d98200 until null ,lpo_edge 
+023e efe08011 ifetch 1 ,rega 
+023f e8408013 ifetcht 1 ,regc 
+0240 98467c00 isub temp ,null 
+0241 20228244 branch p_lpm_write_gpio_loop_next ,zero 
+0242 e7e08013 istore 1 ,regc 
+0243 37d98200 until null ,lpo_edge 
 
 p_lpm_write_gpio_loop_next:
-024a 1a20a201 increase 1 ,rega 
-024b 1a60a601 increase 1 ,regc 
-024c c2000244 loop p_lpm_write_gpio_loop 
-024d 1a420400 copy regb ,temp 
-024e 20600000 rtn 
+0244 1a20a201 increase 1 ,rega 
+0245 1a60a601 increase 1 ,regc 
+0246 c200023e loop p_lpm_write_gpio_loop 
+0247 1a420400 copy regb ,temp 
+0248 20600000 rtn 
 
 p_otp_read_data:
-024f 20406b3a call enable_otp_read 
-0250 20406b75 call otp_read_data + 1 
-0251 20206b38 branch otp_disable_chgpump 
+0249 20406b3a call enable_otp_read 
+024a 20406b75 call otp_read_data + 1 
+024b 20206b38 branch otp_disable_chgpump 
 
 p_g24_reconn_dispatch:
-0252 6fe145e0 fetch 2 ,mem_24g_reconn_count 
-0253 d84001f8 arg 0x01f8 ,temp 
-0254 98417e00 iand temp ,pdata 
-0255 203a025a branch p_g24_reconn_dispatch_next ,blank 
-0256 6fe145e0 fetch 2 ,mem_24g_reconn_count 
-0257 1fe0fe01 increase 1 ,pdata 
-0258 67e145e0 store 2 ,mem_24g_reconn_count 
-0259 20600000 rtn 
+024c 6fe145e0 fetch 2 ,mem_24g_reconn_count 
+024d d84001f8 arg 0x01f8 ,temp 
+024e 98417e00 iand temp ,pdata 
+024f 203a0254 branch p_g24_reconn_dispatch_next ,blank 
+0250 6fe145e0 fetch 2 ,mem_24g_reconn_count 
+0251 1fe0fe01 increase 1 ,pdata 
+0252 67e145e0 store 2 ,mem_24g_reconn_count 
+0253 20600000 rtn 
 
 p_g24_reconn_dispatch_next:
-025a 2040357f call g24_reconn_data_prep 
-025b 20403651 call g24_transmit_receive_ack 
-025c 242c3586 nbranch g24_reconn_device_fail ,sync 
-025d 2437b586 nbranch g24_reconn_device_fail ,user3 
-025e 2040366e call g24_ackpayload_parse 
-025f 6fe0c57d fetch 1 ,mem_24g_rxdata_length 
-0260 203a0269 branch p_recv_addr_zero_skip ,blank 
+0254 2040357f call g24_reconn_data_prep 
+0255 20403651 call g24_transmit_receive_ack 
+0256 242c3586 nbranch g24_reconn_device_fail ,sync 
+0257 2437b586 nbranch g24_reconn_device_fail ,user3 
+0258 2040366e call g24_ackpayload_parse 
+0259 6fe0c57d fetch 1 ,mem_24g_rxdata_length 
+025a 203a026b branch p_recv_addr_zero_skip ,blank 
 
 p_g24_reconn_dispatch_next_2:
-0261 6fe245cc fetch 4 ,mem_24g_pair_addr 
-0262 684a458f fetcht 4 ,mem_24g_addr 
-0263 98467c00 isub temp ,null 
-0264 20228266 branch p_g24_reconn_mode_judge ,zero 
-0265 2020356e branch g24_reconn_dispatch_next + 9 
+025b 6fe245cc fetch 4 ,mem_24g_pair_addr 
+025c 684a458f fetcht 4 ,mem_24g_addr 
+025d 98467c00 isub temp ,null 
+025e 20228260 branch p_g24_reconn_mode_judge ,zero 
+025f 2020356e branch g24_reconn_dispatch_next + 9 
 
 p_g24_reconn_mode_judge:
-0266 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-0267 c2983291 bbit1 mouse_enable_auto_24g_paring ,g24_pair_start 
-0268 20203549 branch g24_reconn_receiver_addr 
-
-p_recv_addr_zero_skip:
-0269 6fe2455f fetch 4 ,mem_24g_rxpayload + 2 
-026a 207a0000 rtn blank 
-026b 20200261 branch p_g24_reconn_dispatch_next_2 
+0260 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+0261 c2983291 bbit1 mouse_enable_auto_24g_paring ,g24_pair_start 
+0262 20203549 branch g24_reconn_receiver_addr 
 
 p_mouse_param_init:
-026c 2040543b call mouse_param_common_init 
-026d 2040026f call p_mouse_le_buff_modify 
-026e 2020544c branch mouse_param_init + 2 
+0263 2040543b call mouse_param_common_init 
+0264 20400266 call p_mouse_le_buff_modify 
+0265 2020544c branch mouse_param_init + 2 
 
 p_mouse_le_buff_modify:
-026f 58004a29 setarg mem_le_tx_buffer0_omemalloc_new 
-0270 67e1433f store 2 ,mem_ble_l2cap_tx_buff0_ptr 
-0271 58000020 setarg mouse_ble_l2cap_txbuff_size_new 
-0272 67e14341 store 2 ,mem_ble_l2cap_tx_buff_size_ptr 
-0273 20600000 rtn 
+0266 58004a1d setarg mem_le_tx_buffer0_omemalloc_new 
+0267 67e1433f store 2 ,mem_ble_l2cap_tx_buff0_ptr 
+0268 58000020 setarg mouse_ble_l2cap_txbuff_size_new 
+0269 67e14341 store 2 ,mem_ble_l2cap_tx_buff_size_ptr 
+026a 20600000 rtn 
+
+p_recv_addr_zero_skip:
+026b 6fe245e4 fetch 4 ,mem_24g_fast_conn_addr 
+026c 684a458f fetcht 4 ,mem_24g_addr 
+026d 2022825b branch p_g24_reconn_dispatch_next_2 ,zero 
+026e 6fe2455f fetch 4 ,mem_24g_rxpayload + 2 
+026f 207a0000 rtn blank 
+0270 2020025b branch p_g24_reconn_dispatch_next_2 
 
 p_power_ctrl_start:
-0274 6fe0c437 fetch 1 ,mem_power_ctrl_disable 
-0275 247a0000 nrtn blank 
-0276 6fe144e9 fetch 2 ,mem_ui_state_map 
-0277 c3858000 rtnbit1 ui_state_ble_adv 
-0278 6a2145f0 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
-0279 204035b4 call rssi_average 
-027a 6048c624 storet 1 ,mem_rssi_avg_received 
-027b 6fe0c629 fetch 1 ,mem_rssi_dis_max_24g 
-027c c513027e bmark1 mark_24g ,p_power_ctrl_start_next 
-027d 6fe0c62c fetch 1 ,mem_rssi_dis_max_ble 
+0271 6fe0c437 fetch 1 ,mem_power_ctrl_disable 
+0272 247a0000 nrtn blank 
+0273 6fe144e9 fetch 2 ,mem_ui_state_map 
+0274 c3858000 rtnbit1 ui_state_ble_adv 
+0275 6a2145f0 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
+0276 204035b4 call rssi_average 
+0277 6048c624 storet 1 ,mem_rssi_avg_received 
+0278 6fe0c629 fetch 1 ,mem_rssi_dis_max_24g 
+0279 c513027b bmark1 mark_24g ,p_power_ctrl_start_next 
+027a 6fe0c62c fetch 1 ,mem_rssi_dis_max_ble 
 
 p_power_ctrl_start_next:
-027e 98467c00 isub temp ,null 
-027f 24210298 nbranch p_power_ctrl_txpower_incrs_force ,positive 
+027b 98467c00 isub temp ,null 
+027c 24210295 nbranch p_power_ctrl_txpower_incrs_force ,positive 
+027d 6fe0c626 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+027e 1fe67c02 sub pdata ,2 ,null 
+027f 24210283 nbranch p_power_ctrl_txpower_decrs_check ,positive 
 0280 6fe0c626 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-0281 1fe67c02 sub pdata ,2 ,null 
-0282 24210286 nbranch p_power_ctrl_txpower_decrs_check ,positive 
-0283 6fe0c626 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-0284 c0000299 beq 0 ,p_power_ctrl_txpower_incrs 
-0285 20600000 rtn 
+0281 c0000296 beq 0 ,p_power_ctrl_txpower_incrs 
+0282 20600000 rtn 
 
 p_power_ctrl_txpower_decrs_check:
-0286 6fe0c626 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-0287 6848c627 fetcht 1 ,mem_power_ctrl_pac_succ_cnt_init 
-0288 98467c00 isub temp ,null 
-0289 24628000 nrtn zero 
-028a 70462600 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+0283 6fe0c626 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+0284 6848c627 fetcht 1 ,mem_power_ctrl_pac_succ_cnt_init 
+0285 98467c00 isub temp ,null 
+0286 24628000 nrtn zero 
+0287 70462600 jam 0 ,mem_power_ctrl_pac_succ_cnt 
 
 p_power_ctrl_txpower_decrs:
-028b 6848c624 fetcht 1 ,mem_rssi_avg_received 
-028c 6fe0c628 fetch 1 ,mem_rssi_dis_min_24g 
-028d c513028f bmark1 mark_24g ,p_power_ctrl_txpower_decrs_next 
-028e 6fe0c62b fetch 1 ,mem_rssi_dis_min_ble 
+0288 6848c624 fetcht 1 ,mem_rssi_avg_received 
+0289 6fe0c628 fetch 1 ,mem_rssi_dis_min_24g 
+028a c513028c bmark1 mark_24g ,p_power_ctrl_txpower_decrs_next 
+028b 6fe0c62b fetch 1 ,mem_rssi_dis_min_ble 
 
 p_power_ctrl_txpower_decrs_next:
-028f 98467c00 isub temp ,null 
-0290 24610000 nrtn positive 
-0291 6fe0c625 fetch 1 ,mem_power_ctrl_level 
-0292 c0003715 beq 0 ,power_ctrl_decrs_level0 
-0293 1fe0ffff increase -1 ,pdata 
-0294 67e0c625 store 1 ,mem_power_ctrl_level 
-0295 c00102a1 beq 2 ,p_power_ctrl_decrs_level2 
-0296 c000b70b beq 1 ,power_ctrl_decrs_level1 
-0297 20203715 branch power_ctrl_decrs_level0 
+028c 98467c00 isub temp ,null 
+028d 24610000 nrtn positive 
+028e 6fe0c625 fetch 1 ,mem_power_ctrl_level 
+028f c0003715 beq 0 ,power_ctrl_decrs_level0 
+0290 1fe0ffff increase -1 ,pdata 
+0291 67e0c625 store 1 ,mem_power_ctrl_level 
+0292 c001029e beq 2 ,p_power_ctrl_decrs_level2 
+0293 c000b70b beq 1 ,power_ctrl_decrs_level1 
+0294 20203715 branch power_ctrl_decrs_level0 
 
 p_power_ctrl_txpower_incrs_force:
-0298 70462600 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+0295 70462600 jam 0 ,mem_power_ctrl_pac_succ_cnt 
 
 p_power_ctrl_txpower_incrs:
-0299 6fe0c625 fetch 1 ,mem_power_ctrl_level 
-029a c001829f beq 3 ,p_power_ctrl_incrs_level3 
-029b 1fe0fe01 increase 1 ,pdata 
-029c 67e0c625 store 1 ,mem_power_ctrl_level 
-029d c000b70b beq 1 ,power_ctrl_incrs_level1 
-029e c00102a1 beq 2 ,p_power_ctrl_incrs_level2 
+0296 6fe0c625 fetch 1 ,mem_power_ctrl_level 
+0297 c001829c beq 3 ,p_power_ctrl_incrs_level3 
+0298 1fe0fe01 increase 1 ,pdata 
+0299 67e0c625 store 1 ,mem_power_ctrl_level 
+029a c000b70b beq 1 ,power_ctrl_incrs_level1 
+029b c001029e beq 2 ,p_power_ctrl_incrs_level2 
 
 p_power_ctrl_incrs_level3:
-029f 70414105 jam tx_power_5db ,mem_tx_power 
-02a0 20600000 rtn 
+029c 70414105 jam tx_power_5db ,mem_tx_power 
+029d 20600000 rtn 
 
 p_power_ctrl_decrs_level2:
 
 p_power_ctrl_incrs_level2:
-02a1 70414103 jam tx_power_3db ,mem_tx_power 
-02a2 20600000 rtn 
+029e 70414103 jam tx_power_3db ,mem_tx_power 
+029f 20600000 rtn 
 
 p_mouse_cb_fuction:
-02a3 58006235 setarg mouse_24g_short_sleep 
-02a4 67e145f8 store 2 ,mem_cb_24g_transmit_short_sleep 
-02a5 5800622b setarg mouse_24g_long_sleep 
-02a6 67e145fa store 2 ,mem_cb_24g_transmit_long_sleep 
-02a7 580002b1 setarg p_mouse_24g_before_lpm_sleep 
-02a8 67e143e9 store 2 ,mem_cb_before_lpm_sleep 
-02a9 202053f3 branch mouse_cb_fuction + 7 
+02a0 58006235 setarg mouse_24g_short_sleep 
+02a1 67e145f8 store 2 ,mem_cb_24g_transmit_short_sleep 
+02a2 5800622b setarg mouse_24g_long_sleep 
+02a3 67e145fa store 2 ,mem_cb_24g_transmit_long_sleep 
+02a4 580002b2 setarg p_mouse_24g_before_lpm_sleep 
+02a5 67e143e9 store 2 ,mem_cb_before_lpm_sleep 
+02a6 202053f3 branch mouse_cb_fuction + 7 
 
 p_soft_reset:
+02a7 2435a002 nbranch soft_reset + 1 ,wake 
+02a8 37d98200 until null ,lpo_edge 
+02a9 37d98200 until null ,lpo_edge 
 02aa 20800000 clear_stack 
 02ab 205582ad call p_mouse_wheel_init_set ,wake 
 02ac 20202003 branch soft_reset + 2 
 
 p_mouse_wheel_init_set:
-02ad 6848c64a fetcht 1 ,mem_whee_a_data_gpio 
-02ae 20406edd call gpio_config_input 
-02af 6848c64b fetcht 1 ,mem_whee_b_data_gpio 
-02b0 20206edd branch gpio_config_input 
+02ad 2040021d call p_mouse_puchk_disable 
+02ae 6848c64a fetcht 1 ,mem_whee_a_data_gpio 
+02af 20406edd call gpio_config_input 
+02b0 6848c64b fetcht 1 ,mem_whee_b_data_gpio 
+02b1 20206edd branch gpio_config_input 
 
 p_mouse_24g_before_lpm_sleep:
-02b1 20600000 rtn 
+02b2 20600000 rtn 
 
 p_mouse_load_device_info_check:
-02b2 20400464 call p_mouse_store_normal_tx_power 
-02b3 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-02b4 c289dd60 bbit1 mouse_enable_eeprom ,mouse_load_eeprom_info_check 
-02b5 c2895d6e bbit1 mouse_enable_flash ,mouse_load_flash_info_check 
-02b6 c28a02b8 bbit1 mouse_enable_otp ,p_mouse_load_otp_info_check 
-02b7 20600000 rtn 
+02b3 20400465 call p_mouse_store_normal_tx_power 
+02b4 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+02b5 c289dd60 bbit1 mouse_enable_eeprom ,mouse_load_eeprom_info_check 
+02b6 c2895d6e bbit1 mouse_enable_flash ,mouse_load_flash_info_check 
+02b7 c28a02b9 bbit1 mouse_enable_otp ,p_mouse_load_otp_info_check 
+02b8 20600000 rtn 
 
 p_mouse_load_otp_info_check:
-02b8 204002c3 call p_mouse_device_flag_temp_store 
-02b9 20405e43 call mouse_read_otp_dpi 
-02ba 20405db4 call mouse_read_otp_device_flag 
-02bb 204002d7 call p_mouse_device_flag_check 
-02bc 204002c0 call p_mouse_select_device_by_switch_check 
-02bd 204002c6 call p_mouse_read_otp_device_info 
-02be 204002df call p_mouse_read_otp_le_addr_increase_count_info 
-02bf 20205daa branch mouse_otp_load_app_initflag 
+02b9 204002c4 call p_mouse_device_flag_temp_store 
+02ba 20405e43 call mouse_read_otp_dpi 
+02bb 20405db4 call mouse_read_otp_device_flag 
+02bc 204002d8 call p_mouse_device_flag_check 
+02bd 204002c1 call p_mouse_select_device_by_switch_check 
+02be 204002c7 call p_mouse_read_otp_device_info 
+02bf 204002e0 call p_mouse_read_otp_le_addr_increase_count_info 
+02c0 20205daa branch mouse_otp_load_app_initflag 
 
 p_mouse_select_device_by_switch_check:
-02c0 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-02c1 c4150000 rtnbit0 mouse_enable_select_device_by_switch_gpio 
-02c2 204004df call p_mouse_check_select_device_by_switch 
+02c1 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+02c2 c4150000 rtnbit0 mouse_enable_select_device_by_switch_gpio 
+02c3 204004cd call p_mouse_check_select_device_by_switch 
 
 p_mouse_device_flag_temp_store:
-02c3 6fe0c666 fetch 1 ,mem_device_flag 
-02c4 67e0ca06 store 1 ,mem_mouse_device_flag_temp 
-02c5 20600000 rtn 
+02c4 6fe0c666 fetch 1 ,mem_device_flag 
+02c5 67e0ca06 store 1 ,mem_mouse_device_flag_temp 
+02c6 20600000 rtn 
 
 p_mouse_read_otp_device_info:
-02c6 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-02c7 c29f5dd1 bbit1 mouse_enable_24g_first_auto_pairing ,mouse_read_otp_le_device1 
-02c8 20205dcc branch mouse_read_otp_device_info 
+02c7 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+02c8 c29f5dd1 bbit1 mouse_enable_24g_first_auto_pairing ,mouse_read_otp_le_device1 
+02c9 20205dcc branch mouse_read_otp_device_info 
 
 p_mouse_app_initflag_check:
-02c9 6fe1468e fetch 2 ,mem_store_flag 
-02ca d840aa55 arg eeprom_init_flag ,temp 
-02cb 98467c00 isub temp ,null 
-02cc 2022834c branch p_mouse_load_device_info ,zero 
-02cd 6049468e storet 2 ,mem_store_flag 
-02ce 20405c9c call mouse_ble_init_address 
-02cf 6fe0c9a1 fetch 1 ,mem_device_flag_temp 
-02d0 67e0c666 store 1 ,mem_device_flag 
-02d1 20405c8c call mouse_load_default_dpi 
-02d2 58001122 setarg 0x1122 
-02d3 67e14695 store 2 ,mem_random_addr_increase_count 
+02ca 6fe1468e fetch 2 ,mem_store_flag 
+02cb d840aa55 arg eeprom_init_flag ,temp 
+02cc 98467c00 isub temp ,null 
+02cd 2022834d branch p_mouse_load_device_info ,zero 
+02ce 6049468e storet 2 ,mem_store_flag 
+02cf 20405c9c call mouse_ble_init_address 
+02d0 6fe0c9a1 fetch 1 ,mem_device_flag_temp 
+02d1 67e0c666 store 1 ,mem_device_flag 
+02d2 20405c8c call mouse_load_default_dpi 
+02d3 58001122 setarg 0x1122 
+02d4 67e14695 store 2 ,mem_random_addr_increase_count 
 
 p_mouse_device_flag_temp_load:
-02d4 6fe0ca06 fetch 1 ,mem_mouse_device_flag_temp 
-02d5 67e0c666 store 1 ,mem_device_flag 
-02d6 20600000 rtn 
+02d5 6fe0ca06 fetch 1 ,mem_mouse_device_flag_temp 
+02d6 67e0c666 store 1 ,mem_device_flag 
+02d7 20600000 rtn 
 
 p_mouse_device_flag_check:
-02d7 6fe0c666 fetch 1 ,mem_device_flag 
-02d8 1fe67c00 sub pdata ,0 ,null 
-02d9 202282d4 branch p_mouse_device_flag_temp_load ,zero 
-02da 1fe67c04 sub pdata ,4 ,null 
-02db 202282dd branch p_mouse_24g_init ,zero 
-02dc 20610000 rtn positive 
+02d8 6fe0c666 fetch 1 ,mem_device_flag 
+02d9 1fe67c00 sub pdata ,0 ,null 
+02da 202282d5 branch p_mouse_device_flag_temp_load ,zero 
+02db 1fe67c04 sub pdata ,4 ,null 
+02dc 202282de branch p_mouse_24g_init ,zero 
+02dd 20610000 rtn positive 
 
 p_mouse_24g_init:
-02dd 70466600 jam mode_24g_device ,mem_device_flag 
-02de 20600000 rtn 
+02de 70466600 jam mode_24g_device ,mem_device_flag 
+02df 20600000 rtn 
 
 p_mouse_read_otp_le_addr_increase_count_info:
-02df 6fe0c666 fetch 1 ,mem_device_flag 
-02e0 c1000000 rtneq mode_24g_device 
-02e1 6a4149fe fetchr regb ,2 ,mem_otp_offset_le_addr_increase_count 
-02e2 1a422600 copy regb ,regc 
+02e0 6fe0c666 fetch 1 ,mem_device_flag 
+02e1 c1000000 rtneq mode_24g_device 
+02e2 6a4149fe fetchr regb ,2 ,mem_otp_offset_le_addr_increase_count 
+02e3 1a422600 copy regb ,regc 
 
 p_mouse_read_otp_le_addr_increase_count_loop:
-02e3 20405e3d call mouse_read_otp_le_addr_increase_count_common 
-02e4 6fe149e0 fetch 2 ,mem_random_addr_increase_count_temp 
-02e5 203a02ed branch p_mouse_le_addr_increase_count_load ,blank 
-02e6 67e149de store 2 ,mem_random_addr_increase_count_last 
-02e7 1a60a602 increase 2 ,regc 
-02e8 6fe14a00 fetch 2 ,mem_otp_offset_le_addr_increase_count_end 
-02e9 9a667c00 isub regc ,null 
-02ea 242102ed nbranch p_mouse_le_addr_increase_count_load ,positive 
-02eb 1a622400 copy regc ,regb 
-02ec 202002e3 branch p_mouse_read_otp_le_addr_increase_count_loop 
+02e4 20405e3d call mouse_read_otp_le_addr_increase_count_common 
+02e5 6fe149e0 fetch 2 ,mem_random_addr_increase_count_temp 
+02e6 203a02ee branch p_mouse_le_addr_increase_count_load ,blank 
+02e7 67e149de store 2 ,mem_random_addr_increase_count_last 
+02e8 1a60a602 increase 2 ,regc 
+02e9 6fe14a00 fetch 2 ,mem_otp_offset_le_addr_increase_count_end 
+02ea 9a667c00 isub regc ,null 
+02eb 242102ee nbranch p_mouse_le_addr_increase_count_load ,positive 
+02ec 1a622400 copy regc ,regb 
+02ed 202002e4 branch p_mouse_read_otp_le_addr_increase_count_loop 
 
 p_mouse_le_addr_increase_count_load:
-02ed 6fe149de fetch 2 ,mem_random_addr_increase_count_last 
-02ee 67e14695 store 2 ,mem_random_addr_increase_count 
-02ef 20600000 rtn 
+02ee 6fe149de fetch 2 ,mem_random_addr_increase_count_last 
+02ef 67e14695 store 2 ,mem_random_addr_increase_count 
+02f0 20600000 rtn 
 
 p_mouse_store_device_info:
-02f0 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-02f1 c289dcb1 bbit1 mouse_enable_eeprom ,mouse_store_eeprom_device_info 
-02f2 c2895cb9 bbit1 mouse_enable_flash ,mouse_store_flash_device_info 
-02f3 c28a02f5 bbit1 mouse_enable_otp ,p_mouse_store_otp_device_info 
-02f4 20600000 rtn 
+02f1 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+02f2 c289dcb1 bbit1 mouse_enable_eeprom ,mouse_store_eeprom_device_info 
+02f3 c2895cb9 bbit1 mouse_enable_flash ,mouse_store_flash_device_info 
+02f4 c28a02f6 bbit1 mouse_enable_otp ,p_mouse_store_otp_device_info 
+02f5 20600000 rtn 
 
 p_mouse_store_otp_device_info:
-02f5 204002f8 call p_mouse_write_otp_locall_addr 
-02f6 204002fd call p_mouse_write_otp_device_flag 
-02f7 20205cc1 branch mouse_store_otp_device_info + 1 
+02f6 204002f9 call p_mouse_write_otp_locall_addr 
+02f7 204002fe call p_mouse_write_otp_device_flag 
+02f8 20205cc1 branch mouse_store_otp_device_info + 1 
 
 p_mouse_write_otp_locall_addr:
-02f8 6fe0c666 fetch 1 ,mem_device_flag 
-02f9 c1000000 rtneq mode_24g_device 
-02fa c0008324 beq mode_bt_device1 ,p_mouse_write_otp_le_locall_addr1 
-02fb c0010338 beq mode_bt_device2 ,p_mouse_write_otp_le_locall_addr2 
-02fc 20600000 rtn 
+02f9 6fe0c666 fetch 1 ,mem_device_flag 
+02fa c1000000 rtneq mode_24g_device 
+02fb c0008325 beq mode_bt_device1 ,p_mouse_write_otp_le_locall_addr1 
+02fc c0010339 beq mode_bt_device2 ,p_mouse_write_otp_le_locall_addr2 
+02fd 20600000 rtn 
 
 p_mouse_write_otp_device_flag:
-02fd 6a4149e2 fetchr regb ,2 ,mem_otp_offset_device_flag 
-02fe 1a422600 copy regb ,regc 
+02fe 6a4149e2 fetchr regb ,2 ,mem_otp_offset_device_flag 
+02ff 1a422600 copy regb ,regc 
 
 p_mouse_write_otp_device_flag_loop:
-02ff 20405dc0 call mouse_read_otp_device_flag_common 
-0300 6fe0c9a1 fetch 1 ,mem_device_flag_temp 
-0301 203a0309 branch p_mouse_device_flag_store ,blank 
-0302 67e0c9a0 store 1 ,mem_device_flag_last 
-0303 1a60a601 increase 1 ,regc 
-0304 6fe149e4 fetch 2 ,mem_otp_offset_device_flag_end 
-0305 9a667c00 isub regc ,null 
-0306 24610000 nrtn positive 
-0307 1a622400 copy regc ,regb 
-0308 202002ff branch p_mouse_write_otp_device_flag_loop 
+0300 20405dc0 call mouse_read_otp_device_flag_common 
+0301 6fe0c9a1 fetch 1 ,mem_device_flag_temp 
+0302 203a030a branch p_mouse_device_flag_store ,blank 
+0303 67e0c9a0 store 1 ,mem_device_flag_last 
+0304 1a60a601 increase 1 ,regc 
+0305 6fe149e4 fetch 2 ,mem_otp_offset_device_flag_end 
+0306 9a667c00 isub regc ,null 
+0307 24610000 nrtn positive 
+0308 1a622400 copy regc ,regb 
+0309 20200300 branch p_mouse_write_otp_device_flag_loop 
 
 p_mouse_device_flag_store:
-0309 6fe0c9a0 fetch 1 ,mem_device_flag_last 
-030a 1fe17ef0 and pdata ,0xf0 ,pdata 
-030b 203a0313 branch p_mouse_device_flag_store_check ,blank 
-030c 6fe0c666 fetch 1 ,mem_device_flag 
-030d 20400321 call p_mouse_device_flag_otp_store_judge 
-030e 67e0c9a2 store 1 ,mem_device_flag_value 
-
-p_mouse_devoce_flag_store_end:
-030f df200001 arg 1 ,loopcnt 
-0310 1a622400 copy regc ,regb 
-0311 da2049a2 arg mem_device_flag_value ,rega 
-0312 20206b45 branch otp_write 
+030a 6fe0c9a0 fetch 1 ,mem_device_flag_last 
+030b 1fe17ef0 and pdata ,0xf0 ,pdata 
+030c 203a0314 branch p_mouse_device_flag_store_check ,blank 
+030d 6fe0c666 fetch 1 ,mem_device_flag 
+030e 20400322 call p_mouse_device_flag_otp_store_judge 
+030f 67e0c9a2 store 1 ,mem_device_flag_value 
+
+p_mouse_device_flag_store_end:
+0310 df200001 arg 1 ,loopcnt 
+0311 1a622400 copy regc ,regb 
+0312 da2049a2 arg mem_device_flag_value ,rega 
+0313 20206b45 branch otp_write 
 
 p_mouse_device_flag_store_check:
-0313 6848c9a0 fetcht 1 ,mem_device_flag_last 
-0314 6fe0c666 fetch 1 ,mem_device_flag 
-0315 20400321 call p_mouse_device_flag_otp_store_judge 
-0316 98467c00 isub temp ,null 
-0317 20628000 rtn zero 
-0318 1ff27e00 lshift4 pdata ,pdata 
-0319 9840fe00 iadd temp ,pdata 
-031a 67e0c9a2 store 1 ,mem_device_flag_value 
-031b 1a627e00 copy regc ,pdata 
-031c 684949e2 fetcht 2 ,mem_otp_offset_device_flag 
-031d 98467c00 isub temp ,null 
-031e 2022830f branch p_mouse_devoce_flag_store_end ,zero 
-031f 1a60a7ff increase -1 ,regc 
-0320 2020030f branch p_mouse_devoce_flag_store_end 
+0314 6848c9a0 fetcht 1 ,mem_device_flag_last 
+0315 6fe0c666 fetch 1 ,mem_device_flag 
+0316 20400322 call p_mouse_device_flag_otp_store_judge 
+0317 98467c00 isub temp ,null 
+0318 20628000 rtn zero 
+0319 1ff27e00 lshift4 pdata ,pdata 
+031a 9840fe00 iadd temp ,pdata 
+031b 67e0c9a2 store 1 ,mem_device_flag_value 
+031c 1a627e00 copy regc ,pdata 
+031d 684949e2 fetcht 2 ,mem_otp_offset_device_flag 
+031e 98467c00 isub temp ,null 
+031f 20228310 branch p_mouse_device_flag_store_end ,zero 
+0320 1a60a7ff increase -1 ,regc 
+0321 20200310 branch p_mouse_device_flag_store_end 
 
 p_mouse_device_flag_otp_store_judge:
-0321 c1800000 rtnne mode_24g_device 
-0322 1fe0fe04 increase 4 ,pdata 
-0323 20600000 rtn 
+0322 c1800000 rtnne mode_24g_device 
+0323 1fe0fe04 increase 4 ,pdata 
+0324 20600000 rtn 
 
 p_mouse_write_otp_le_locall_addr1:
-0324 6a4149ee fetchr regb ,2 ,mem_otp_offset_le_locall_addr1 
-0325 1a422600 copy regb ,regc 
+0325 6a4149ee fetchr regb ,2 ,mem_otp_offset_le_locall_addr1 
+0326 1a422600 copy regb ,regc 
 
 p_mouse_write_otp_le_locall_addr1_loop:
-0326 20405df3 call mouse_read_otp_le_locall_addr1_common 
-0327 6fe349b5 fetch 6 ,mem_mouse_le_locall_addr1_temp 
-0328 203a0330 branch p_mouse_le_local_addr1_store ,blank 
-0329 67e349af store 6 ,mem_mouse_le_locall_addr1_last 
-032a 1a60a606 increase 6 ,regc 
-032b 6fe149f0 fetch 2 ,mem_otp_offset_le_locall_addr1_end 
-032c 9a667c00 isub regc ,null 
-032d 24610000 nrtn positive 
-032e 1a622400 copy regc ,regb 
-032f 20200326 branch p_mouse_write_otp_le_locall_addr1_loop 
+0327 20405df3 call mouse_read_otp_le_locall_addr1_common 
+0328 6fe349b5 fetch 6 ,mem_mouse_le_locall_addr1_temp 
+0329 203a0331 branch p_mouse_le_local_addr1_store ,blank 
+032a 67e349af store 6 ,mem_mouse_le_locall_addr1_last 
+032b 1a60a606 increase 6 ,regc 
+032c 6fe149f0 fetch 2 ,mem_otp_offset_le_locall_addr1_end 
+032d 9a667c00 isub regc ,null 
+032e 24610000 nrtn positive 
+032f 1a622400 copy regc ,regb 
+0330 20200327 branch p_mouse_write_otp_le_locall_addr1_loop 
 
 p_mouse_le_local_addr1_store:
-0330 6fe349af fetch 6 ,mem_mouse_le_locall_addr1_last 
-0331 684b466e fetcht 6 ,mem_device1_locall_addr 
-0332 98467c00 isub temp ,null 
-0333 20628000 rtn zero 
-0334 df200006 arg 6 ,loopcnt 
-0335 da20466e arg mem_device1_locall_addr ,rega 
-0336 1a622400 copy regc ,regb 
-0337 20206b45 branch otp_write 
+0331 6fe349af fetch 6 ,mem_mouse_le_locall_addr1_last 
+0332 684b466e fetcht 6 ,mem_device1_locall_addr 
+0333 98467c00 isub temp ,null 
+0334 20628000 rtn zero 
+0335 df200006 arg 6 ,loopcnt 
+0336 da20466e arg mem_device1_locall_addr ,rega 
+0337 1a622400 copy regc ,regb 
+0338 20206b45 branch otp_write 
 
 p_mouse_write_otp_le_locall_addr2:
-0338 6a4149f6 fetchr regb ,2 ,mem_otp_offset_le_locall_addr2 
-0339 1a422600 copy regb ,regc 
+0339 6a4149f6 fetchr regb ,2 ,mem_otp_offset_le_locall_addr2 
+033a 1a422600 copy regb ,regc 
 
 p_mouse_write_otp_le_locall_addr2_loop:
-033a 20405e17 call mouse_read_otp_le_locall_addr2_common 
-033b 6fe349cd fetch 6 ,mem_mouse_le_locall_addr2_temp 
-033c 203a0344 branch p_mouse_le_local_addr2_store ,blank 
-033d 67e349c7 store 6 ,mem_mouse_le_locall_addr2_last 
-033e 1a60a606 increase 6 ,regc 
-033f 6fe149f8 fetch 2 ,mem_otp_offset_le_locall_addr2_end 
-0340 9a667c00 isub regc ,null 
-0341 24610000 nrtn positive 
-0342 1a622400 copy regc ,regb 
-0343 2020033a branch p_mouse_write_otp_le_locall_addr2_loop 
+033b 20405e17 call mouse_read_otp_le_locall_addr2_common 
+033c 6fe349cd fetch 6 ,mem_mouse_le_locall_addr2_temp 
+033d 203a0345 branch p_mouse_le_local_addr2_store ,blank 
+033e 67e349c7 store 6 ,mem_mouse_le_locall_addr2_last 
+033f 1a60a606 increase 6 ,regc 
+0340 6fe149f8 fetch 2 ,mem_otp_offset_le_locall_addr2_end 
+0341 9a667c00 isub regc ,null 
+0342 24610000 nrtn positive 
+0343 1a622400 copy regc ,regb 
+0344 2020033b branch p_mouse_write_otp_le_locall_addr2_loop 
 
 p_mouse_le_local_addr2_store:
-0344 6fe349c7 fetch 6 ,mem_mouse_le_locall_addr2_last 
-0345 684b467b fetcht 6 ,mem_device2_locall_addr 
-0346 98467c00 isub temp ,null 
-0347 20628000 rtn zero 
-0348 df200006 arg 6 ,loopcnt 
-0349 da20467b arg mem_device2_locall_addr ,rega 
-034a 1a622400 copy regc ,regb 
-034b 20206b45 branch otp_write 
+0345 6fe349c7 fetch 6 ,mem_mouse_le_locall_addr2_last 
+0346 684b467b fetcht 6 ,mem_device2_locall_addr 
+0347 98467c00 isub temp ,null 
+0348 20628000 rtn zero 
+0349 df200006 arg 6 ,loopcnt 
+034a da20467b arg mem_device2_locall_addr ,rega 
+034b 1a622400 copy regc ,regb 
+034c 20206b45 branch otp_write 
 
 p_mouse_load_device_info:
-034c 20400385 call p_mouse_le_locall_addr_init_check 
-034d 2040039d call p_mouse_select_reconn_device 
-034e 20400350 call p_mouse_otp_load_dpi 
-034f 20205c90 branch mouse_load_device_info + 1 
+034d 20400386 call p_mouse_le_locall_addr_init_check 
+034e 2040039e call p_mouse_select_reconn_device 
+034f 20400351 call p_mouse_otp_load_dpi 
+0350 20205c90 branch mouse_load_device_info + 1 
 
 p_mouse_otp_load_dpi:
-0350 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-0351 c4078000 rtnbit0 mouse_enable_load_and_store_dpi 
-0352 6fe0c690 fetch 1 ,mem_mouse_dpi 
-0353 c0005c94 beq 0 ,mouse_otp_load_dpi 
-0354 c0030356 beq 6 ,p_mouse_dpi_reinit 
-0355 20600000 rtn 
+0351 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+0352 c4078000 rtnbit0 mouse_enable_load_and_store_dpi 
+0353 6fe0c690 fetch 1 ,mem_mouse_dpi 
+0354 c0005c94 beq 0 ,mouse_otp_load_dpi 
+0355 c0030357 beq 6 ,p_mouse_dpi_reinit 
+0356 20600000 rtn 
 
 p_mouse_dpi_reinit:
-0356 70469000 jam mouse_dpi_level1 ,mem_mouse_dpi 
-0357 20600000 rtn 
+0357 70469000 jam mouse_dpi_level1 ,mem_mouse_dpi 
+0358 20600000 rtn 
 
 p_mouse_store_dpi_info_check:
-0358 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-0359 c289dcb5 bbit1 mouse_enable_eeprom ,mouse_store_eerpom_dpi 
-035a c28a035c bbit1 mouse_enable_otp ,p_mouse_store_otp_dpi 
-035b 20600000 rtn 
+0359 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+035a c289dcb5 bbit1 mouse_enable_eeprom ,mouse_store_eerpom_dpi 
+035b c28a035d bbit1 mouse_enable_otp ,p_mouse_store_otp_dpi 
+035c 20600000 rtn 
 
 p_mouse_store_otp_dpi:
-035c 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-035d c4078000 rtnbit0 mouse_enable_load_and_store_dpi 
-035e 6a4149fa fetchr regb ,2 ,mem_otp_offset_dpi 
-035f 1a422600 copy regb ,regc 
+035d 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+035e c4078000 rtnbit0 mouse_enable_load_and_store_dpi 
+035f 6a4149fa fetchr regb ,2 ,mem_otp_offset_dpi 
+0360 1a422600 copy regb ,regc 
 
 p_mouse_otp_store_dpi_loop:
-0360 20405e51 call mouse_read_otp_dpi_common 
-0361 6fe0c9d4 fetch 1 ,mem_mouse_dpi_temp 
-0362 203a036a branch p_mouse_otp_dpi_store ,blank 
-0363 67e0c9d3 store 1 ,mem_mouse_dpi_last 
-0364 1a60a601 increase 1 ,regc 
-0365 6fe149fc fetch 2 ,mem_otp_offset_dpi_end 
-0366 9a667c00 isub regc ,null 
-0367 24610000 nrtn positive 
-0368 1a622400 copy regc ,regb 
-0369 20200360 branch p_mouse_otp_store_dpi_loop 
+0361 20405e51 call mouse_read_otp_dpi_common 
+0362 6fe0c9d4 fetch 1 ,mem_mouse_dpi_temp 
+0363 203a036b branch p_mouse_otp_dpi_store ,blank 
+0364 67e0c9d3 store 1 ,mem_mouse_dpi_last 
+0365 1a60a601 increase 1 ,regc 
+0366 6fe149fc fetch 2 ,mem_otp_offset_dpi_end 
+0367 9a667c00 isub regc ,null 
+0368 24610000 nrtn positive 
+0369 1a622400 copy regc ,regb 
+036a 20200361 branch p_mouse_otp_store_dpi_loop 
 
 p_mouse_otp_dpi_store:
-036a 6fe0c9d3 fetch 1 ,mem_mouse_dpi_last 
-036b 1fe17ef0 and pdata ,0xf0 ,pdata 
-036c 203a0374 branch p_mouse_dpi_store_last_check ,blank 
-036d 6fe0c690 fetch 1 ,mem_mouse_dpi 
-036e 20400382 call p_mouse_dpi_otp_store_judge 
-036f 67e0c9d5 store 1 ,mem_mouse_otp_dpi_value 
+036b 6fe0c9d3 fetch 1 ,mem_mouse_dpi_last 
+036c 1fe17ef0 and pdata ,0xf0 ,pdata 
+036d 203a0375 branch p_mouse_dpi_store_last_check ,blank 
+036e 6fe0c690 fetch 1 ,mem_mouse_dpi 
+036f 20400383 call p_mouse_dpi_otp_store_judge 
+0370 67e0c9d5 store 1 ,mem_mouse_otp_dpi_value 
 
 p_mouse_dpi_store_end:
-0370 df200001 arg 1 ,loopcnt 
-0371 1a622400 copy regc ,regb 
-0372 da2049d5 arg mem_mouse_otp_dpi_value ,rega 
-0373 20206b45 branch otp_write 
+0371 df200001 arg 1 ,loopcnt 
+0372 1a622400 copy regc ,regb 
+0373 da2049d5 arg mem_mouse_otp_dpi_value ,rega 
+0374 20206b45 branch otp_write 
 
 p_mouse_dpi_store_last_check:
-0374 6848c9d3 fetcht 1 ,mem_mouse_dpi_last 
-0375 6fe0c690 fetch 1 ,mem_mouse_dpi 
-0376 20400382 call p_mouse_dpi_otp_store_judge 
-0377 98467c00 isub temp ,null 
-0378 20628000 rtn zero 
-0379 1ff27e00 lshift4 pdata ,pdata 
-037a 9840fe00 iadd temp ,pdata 
-037b 67e0c9d5 store 1 ,mem_mouse_otp_dpi_value 
-037c 1a627e00 copy regc ,pdata 
-037d 684949fa fetcht 2 ,mem_otp_offset_dpi 
-037e 98467c00 isub temp ,null 
-037f 20228370 branch p_mouse_dpi_store_end ,zero 
-0380 1a60a7ff increase -1 ,regc 
-0381 20200370 branch p_mouse_dpi_store_end 
+0375 6848c9d3 fetcht 1 ,mem_mouse_dpi_last 
+0376 6fe0c690 fetch 1 ,mem_mouse_dpi 
+0377 20400383 call p_mouse_dpi_otp_store_judge 
+0378 98467c00 isub temp ,null 
+0379 20628000 rtn zero 
+037a 1ff27e00 lshift4 pdata ,pdata 
+037b 9840fe00 iadd temp ,pdata 
+037c 67e0c9d5 store 1 ,mem_mouse_otp_dpi_value 
+037d 1a627e00 copy regc ,pdata 
+037e 684949fa fetcht 2 ,mem_otp_offset_dpi 
+037f 98467c00 isub temp ,null 
+0380 20228371 branch p_mouse_dpi_store_end ,zero 
+0381 1a60a7ff increase -1 ,regc 
+0382 20200371 branch p_mouse_dpi_store_end 
 
 p_mouse_dpi_otp_store_judge:
-0382 c1800000 rtnne mouse_dpi_level1 
-0383 1fe0fe06 increase 6 ,pdata 
-0384 20600000 rtn 
+0383 c1800000 rtnne mouse_dpi_level1 
+0384 1fe0fe06 increase 6 ,pdata 
+0385 20600000 rtn 
 
 p_mouse_le_locall_addr_init_check:
-0385 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-0386 c29f038c bbit1 mouse_enable_24g_first_auto_pairing ,p_mouse_le_addr1_init_check 
-0387 6fe0c666 fetch 1 ,mem_device_flag 
-0388 c1000000 rtneq mode_24g_device 
-0389 c000838c beq mode_bt_device1 ,p_mouse_le_addr1_init_check 
-038a c0010393 beq mode_bt_device2 ,p_mouse_le_addr2_init_check 
-038b 20600000 rtn 
+0386 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+0387 c29f038d bbit1 mouse_enable_24g_first_auto_pairing ,p_mouse_le_addr1_init_check 
+0388 6fe0c666 fetch 1 ,mem_device_flag 
+0389 c1000000 rtneq mode_24g_device 
+038a c000838d beq mode_bt_device1 ,p_mouse_le_addr1_init_check 
+038b c0010394 beq mode_bt_device2 ,p_mouse_le_addr2_init_check 
+038c 20600000 rtn 
 
 p_mouse_le_addr1_init_check:
-038c 6fe3466e fetch 6 ,mem_device1_locall_addr 
-038d 684b46e6 fetcht 6 ,mem_mouse_compare_addr 
-038e 98467c00 isub temp ,null 
-038f 24628000 nrtn zero 
-0390 6fe342db fetch 6 ,mem_le_lap 
-0391 67e3466e store 6 ,mem_device1_locall_addr 
-0392 20600000 rtn 
+038d 6fe3466e fetch 6 ,mem_device1_locall_addr 
+038e 684b46e6 fetcht 6 ,mem_mouse_compare_addr 
+038f 98467c00 isub temp ,null 
+0390 24628000 nrtn zero 
+0391 6fe342db fetch 6 ,mem_le_lap 
+0392 67e3466e store 6 ,mem_device1_locall_addr 
+0393 20600000 rtn 
 
 p_mouse_le_addr2_init_check:
-0393 6fe3466e fetch 6 ,mem_device1_locall_addr 
-0394 684b46e6 fetcht 6 ,mem_mouse_compare_addr 
-0395 98467c00 isub temp ,null 
-0396 24628000 nrtn zero 
-0397 6fe342db fetch 6 ,mem_le_lap 
-0398 1fe0ff00 add pdata ,0x0100 ,pdata 
-0399 67e3466e store 6 ,mem_device1_locall_addr 
-039a 20600000 rtn 
+0394 6fe3466e fetch 6 ,mem_device1_locall_addr 
+0395 684b46e6 fetcht 6 ,mem_mouse_compare_addr 
+0396 98467c00 isub temp ,null 
+0397 24628000 nrtn zero 
+0398 6fe342db fetch 6 ,mem_le_lap 
+0399 1fe0ff00 add pdata ,0x0100 ,pdata 
+039a 67e3466e store 6 ,mem_device1_locall_addr 
+039b 20600000 rtn 
 
 p_mouse_buletooth_fast_conn_end:
-039b 2040039d call p_mouse_select_reconn_device 
-039c 20205a9c branch mouse_buletooth_fast_conn_end + 2 
+039c 2040039e call p_mouse_select_reconn_device 
+039d 20205a9c branch mouse_buletooth_fast_conn_end + 2 
 
 p_mouse_select_reconn_device:
-039d 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-039e c30a5c6f bbit0 mouse_enable_otp ,mouse_select_reconn_device 
-039f c29f03a5 bbit1 mouse_enable_24g_first_auto_pairing ,p_mouse_load_le_device1 
+039e 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+039f c30a5c6f bbit0 mouse_enable_otp ,mouse_select_reconn_device 
+03a0 c29f03a6 bbit1 mouse_enable_24g_first_auto_pairing ,p_mouse_load_le_device1 
 
 p_mouse_select_reconn_device_start:
-03a0 6fe0c666 fetch 1 ,mem_device_flag 
-03a1 c1000000 rtneq mode_24g_device 
-03a2 c00083a5 beq mode_bt_device1 ,p_mouse_load_le_device1 
-03a3 c00103aa beq mode_bt_device2 ,p_mouse_load_le_device2 
-03a4 20600000 rtn 
+03a1 6fe0c666 fetch 1 ,mem_device_flag 
+03a2 c1000000 rtneq mode_24g_device 
+03a3 c00083a6 beq mode_bt_device1 ,p_mouse_load_le_device1 
+03a4 c00103ab beq mode_bt_device2 ,p_mouse_load_le_device2 
+03a5 20600000 rtn 
 
 p_mouse_load_le_device1:
-03a5 6fe34668 fetch 6 ,mem_device1_addr 
-03a6 67e34116 store 6 ,mem_hci_plap 
-03a7 6fe3466e fetch 6 ,mem_device1_locall_addr 
-03a8 67e342db store 6 ,mem_le_lap 
-03a9 20600000 rtn 
+03a6 6fe34668 fetch 6 ,mem_device1_addr 
+03a7 67e34116 store 6 ,mem_hci_plap 
+03a8 6fe3466e fetch 6 ,mem_device1_locall_addr 
+03a9 67e342db store 6 ,mem_le_lap 
+03aa 20600000 rtn 
 
 p_mouse_load_le_device2:
-03aa 6fe34675 fetch 6 ,mem_device2_addr 
-03ab 67e34116 store 6 ,mem_hci_plap 
-03ac 6fe3467b fetch 6 ,mem_device2_locall_addr 
-03ad 67e342db store 6 ,mem_le_lap 
-03ae 20600000 rtn 
+03ab 6fe34675 fetch 6 ,mem_device2_addr 
+03ac 67e34116 store 6 ,mem_hci_plap 
+03ad 6fe3467b fetch 6 ,mem_device2_locall_addr 
+03ae 67e342db store 6 ,mem_le_lap 
+03af 20600000 rtn 
 
 p_mouse_store_remote_bdaddr:
-03af 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-03b0 c4010000 rtnbit0 mouse_store_eeprom_flag 
-03b1 c30a5c43 bbit0 mouse_enable_otp ,mouse_store_remote_bdaddr + 1 
-03b2 d8e00002 arg mouse_store_eeprom_flag ,queue 
-03b3 20405f04 call mouse_disable_function_flag 
-03b4 20405c4a call mouse_check_device_addr 
-03b5 204003b7 call p_mouse_before_store_reconn_info 
-03b6 20205ca3 branch mouse_store_device_info_delay 
+03b0 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+03b1 c4010000 rtnbit0 mouse_store_eeprom_flag 
+03b2 c30a5c43 bbit0 mouse_enable_otp ,mouse_store_remote_bdaddr + 1 
+03b3 d8e00002 arg mouse_store_eeprom_flag ,queue 
+03b4 20405f04 call mouse_disable_function_flag 
+03b5 20405c4a call mouse_check_device_addr 
+03b6 204003b8 call p_mouse_before_store_reconn_info 
+03b7 20205ca3 branch mouse_store_device_info_delay 
 
 p_mouse_before_store_reconn_info:
-03b7 6fe0c666 fetch 1 ,mem_device_flag 
-03b8 c00083bb beq mode_bt_device1 ,p_mouse_store_le_device1 
-03b9 c00103c0 beq mode_bt_device2 ,p_mouse_store_le_device2 
-03ba 20600000 rtn 
+03b8 6fe0c666 fetch 1 ,mem_device_flag 
+03b9 c00083bc beq mode_bt_device1 ,p_mouse_store_le_device1 
+03ba c00103c1 beq mode_bt_device2 ,p_mouse_store_le_device2 
+03bb 20600000 rtn 
 
 p_mouse_store_le_device1:
-03bb 6fe30178 fetch 6 ,mem_le_plap 
-03bc 67e34668 store 6 ,mem_device1_addr 
-03bd 6fe342db fetch 6 ,mem_le_lap 
-03be 67e3466e store 6 ,mem_device1_locall_addr 
-03bf 20600000 rtn 
+03bc 6fe30178 fetch 6 ,mem_le_plap 
+03bd 67e34668 store 6 ,mem_device1_addr 
+03be 6fe342db fetch 6 ,mem_le_lap 
+03bf 67e3466e store 6 ,mem_device1_locall_addr 
+03c0 20600000 rtn 
 
 p_mouse_store_le_device2:
-03c0 6fe30178 fetch 6 ,mem_le_plap 
-03c1 67e34675 store 6 ,mem_device2_addr 
-03c2 6fe342db fetch 6 ,mem_le_lap 
-03c3 67e3467b store 6 ,mem_device2_locall_addr 
-03c4 20600000 rtn 
+03c1 6fe30178 fetch 6 ,mem_le_plap 
+03c2 67e34675 store 6 ,mem_device2_addr 
+03c3 6fe342db fetch 6 ,mem_le_lap 
+03c4 67e3467b store 6 ,mem_device2_locall_addr 
+03c5 20600000 rtn 
 
 p_mouse_bb_event_timer:
-03c5 204003db call p_mouse_le_send_conn_param_update_timer 
-03c6 2040614d call mouse_low_voltage_led_timer 
-03c7 2040553d call mouse_adc_read 
-03c8 20406110 call mouse_logo_led_on_timer 
-03c9 204061b1 call mouse_led_multi_timer 
-03ca 2040611e call mouse_dpi_led_blink_delay_timer 
-03cb 2040328e call g24_pair_timeout_timer 
-03cc 20403531 call g24_reconn_timeout_timer 
-03cd 20405fdd call mouse_24g_long_sleep_param_update_timer 
-03ce 2040572c call mouse_dpi_key_check_long_press 
-03cf 20405b9b call mouse_bt_discovery_check 
-03d0 20405bab call mouse_commbination_key_process 
-03d1 20405bce call mouse_check_discovery_timeout_timer 
-03d2 20405bd3 call mouse_check_direct_timeout_timer 
-03d3 20405be1 call mouse_le_enable_att_list_timer 
-03d4 20405bee call mouse_le_battery_updata_timer 
-03d5 20405be4 call mouse_le_send_smp_security_request_timer 
-03d6 20405bfb call mouse_check_reconnect_delay_long_sleep 
-03d7 204003de call p_mouse_current_mult_update_timer 
-03d8 204056b6 call mouse_wheel_trigger_timer 
-03d9 20405c0e call mouse_store_information_delay_timer 
-03da 20205c05 branch mouse_check_no_data_timeout_timer 
+03c6 204003dc call p_mouse_le_send_conn_param_update_timer 
+03c7 2040614d call mouse_low_voltage_led_timer 
+03c8 2040553d call mouse_adc_read 
+03c9 20406110 call mouse_logo_led_on_timer 
+03ca 204061b1 call mouse_led_multi_timer 
+03cb 2040611e call mouse_dpi_led_blink_delay_timer 
+03cc 2040328e call g24_pair_timeout_timer 
+03cd 20403531 call g24_reconn_timeout_timer 
+03ce 20405fdd call mouse_24g_long_sleep_param_update_timer 
+03cf 2040572c call mouse_dpi_key_check_long_press 
+03d0 20405b9b call mouse_bt_discovery_check 
+03d1 20405bab call mouse_commbination_key_process 
+03d2 20405bce call mouse_check_discovery_timeout_timer 
+03d3 20405bd3 call mouse_check_direct_timeout_timer 
+03d4 20405be1 call mouse_le_enable_att_list_timer 
+03d5 20405bee call mouse_le_battery_updata_timer 
+03d6 20405be4 call mouse_le_send_smp_security_request_timer 
+03d7 20405bfb call mouse_check_reconnect_delay_long_sleep 
+03d8 204003df call p_mouse_current_mult_update_timer 
+03d9 204056b6 call mouse_wheel_trigger_timer 
+03da 20405c0e call mouse_store_information_delay_timer 
+03db 20205c05 branch mouse_check_no_data_timeout_timer 
 
 p_mouse_le_send_conn_param_update_timer:
-03db da604a05 arg mem_mouse_le_send_conn_param_update_timer ,regc 
-03dc da405aef arg mouse_updata_le_param ,regb 
-03dd 202042e0 branch timer_single_step 
+03dc da604a05 arg mem_mouse_le_send_conn_param_update_timer ,regc 
+03dd da405aef arg mouse_updata_le_param ,regb 
+03de 202042e0 branch timer_single_step 
 
 p_mouse_current_mult_update_timer:
-03de da60477e arg mem_mouse_current_mult_timer ,regc 
-03df da4003e1 arg p_mouse_current_mult_reinit ,regb 
-03e0 202042e0 branch timer_single_step 
+03df da60477e arg mem_mouse_current_mult_timer ,regc 
+03e0 da4003e2 arg p_mouse_current_mult_reinit ,regb 
+03e1 202042e0 branch timer_single_step 
 
 p_mouse_current_mult_reinit:
-03e1 6fe0c96b fetch 1 ,mem_lpm_mult_init 
-03e2 67e0c0c0 store 1 ,mem_lpm_mult 
-03e3 70477d03 jam 3 ,mem_mouse_long_mult_flag 
-03e4 20600000 rtn 
+03e2 6fe0c96b fetch 1 ,mem_lpm_mult_init 
+03e3 67e0c0c0 store 1 ,mem_lpm_mult 
+03e4 70477d03 jam 3 ,mem_mouse_long_mult_flag 
+03e5 20600000 rtn 
 
 p_mouse_start_discovery:
-03e5 204059ed call mouse_sensor_powerdown 
-03e6 20205c1b branch mouse_start_discovery + 1 
+03e6 204059ed call mouse_sensor_powerdown 
+03e7 20205c1b branch mouse_start_discovery + 1 
 
 p_mouse_priority_bb_event:
-03e7 1a627e00 copy regc ,pdata 
-03e8 c02003fc beq bt_evt_le_parse_conn_papa_update_rsp ,p_mouse_le_conn_param_update_rsp_recieved 
-03e9 c00a8401 beq bt_evt_le_disconnected ,p_mouse_le_bb_disconnected 
-03ea c01903f3 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
-03eb c01e041f beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-03ec c01c8430 beq bt_evt_24g_pairing_complete ,p_mouse_24g_pairing_complete 
-03ed c01d0433 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
-03ee c00a03f0 beq bt_evt_le_connected ,p_mouse_le_bb_event_connected 
-03ef 20205ac3 branch mouse_priority_bb_event + 2 
+03e8 1a627e00 copy regc ,pdata 
+03e9 c02003fd beq bt_evt_le_parse_conn_papa_update_rsp ,p_mouse_le_conn_param_update_rsp_recieved 
+03ea c00a8402 beq bt_evt_le_disconnected ,p_mouse_le_bb_disconnected 
+03eb c01903f4 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
+03ec c01e0420 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+03ed c01c8431 beq bt_evt_24g_pairing_complete ,p_mouse_24g_pairing_complete 
+03ee c01d0434 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+03ef c00a03f1 beq bt_evt_le_connected ,p_mouse_le_bb_event_connected 
+03f0 20205ac3 branch mouse_priority_bb_event + 2 
 
 p_mouse_le_bb_event_connected:
-03f0 58000000 setarg 0 
-03f1 67e24c04 store 4 ,mem_le_conn_first_rcv 
-03f2 20205ad0 branch mouse_le_bb_event_connected 
+03f1 58000000 setarg 0 
+03f2 67e24bf9 store 4 ,mem_le_conn_first_rcv 
+03f3 20205ad0 branch mouse_le_bb_event_connected 
 
 p_mouse_le_ll_start_encryt:
-03f3 6fe0c795 fetch 1 ,mem_mouse_le_reconnect_flag 
-03f4 c00083f7 beq 1 ,p_mouse_le_ll_reconn_start_encryt 
-03f5 70484414 jam 20 ,mem_le_start_encrypt_timer 
-03f6 202003f9 branch p_mouse_le_ll_reconn_start_encryt_new 
+03f4 6fe0c795 fetch 1 ,mem_mouse_le_reconnect_flag 
+03f5 c00083f8 beq 1 ,p_mouse_le_ll_reconn_start_encryt 
+03f6 70484414 jam 20 ,mem_le_start_encrypt_timer 
+03f7 202003fa branch p_mouse_le_ll_reconn_start_encryt_new 
 
 p_mouse_le_ll_reconn_start_encryt:
-03f7 20405aef call mouse_updata_le_param 
-03f8 70484405 jam 5 ,mem_le_start_encrypt_timer 
+03f8 20405aef call mouse_updata_le_param 
+03f9 70484405 jam 5 ,mem_le_start_encrypt_timer 
 
 p_mouse_le_ll_reconn_start_encryt_new:
-03f9 6fe0cc03 fetch 1 ,mem_le_conn_rcv_new 
-03fa 67e0cc04 store 1 ,mem_le_conn_first_rcv 
-03fb 20205af6 branch mouse_le_ll_enable_start_enc_flag 
+03fa 6fe0cbf8 fetch 1 ,mem_le_conn_rcv_new 
+03fb 67e0cbf9 store 1 ,mem_le_conn_first_rcv 
+03fc 20205af6 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_conn_param_update_rsp_recieved:
-03fc 6fe0ca04 fetch 1 ,mem_mouse_le_send_conn_param_update 
-03fd 247a0000 nrtn blank 
-03fe 704a0401 jam 1 ,mem_mouse_le_send_conn_param_update 
-03ff 704a051e jam 30 ,mem_mouse_le_send_conn_param_update_timer 
-0400 20600000 rtn 
+03fd 6fe0ca04 fetch 1 ,mem_mouse_le_send_conn_param_update 
+03fe 247a0000 nrtn blank 
+03ff 704a0401 jam 1 ,mem_mouse_le_send_conn_param_update 
+0400 704a051e jam 30 ,mem_mouse_le_send_conn_param_update_timer 
+0401 20600000 rtn 
 
 p_mouse_le_bb_disconnected:
-0401 58000000 setarg 0 
-0402 67e0ca04 store 1 ,mem_mouse_le_send_conn_param_update 
-0403 67e0ca05 store 1 ,mem_mouse_le_send_conn_param_update_timer 
-0404 58000000 setarg 0 
-0405 67e147c0 store 2 ,mem_le_battery_level_updata_timer 
-0406 70479400 jam 0 ,mem_mouse_le_bb_connected_flag 
-0407 d8400006 arg le_interval_7_5ms ,temp 
-0408 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-0409 c28d840b bbit1 mouse_enable_bt_125hz ,p_mouse_le_bb_disconnected_next 
-040a d8400007 arg le_interval_8_75ms ,temp 
+0402 58000000 setarg 0 
+0403 67e0ca04 store 1 ,mem_mouse_le_send_conn_param_update 
+0404 67e0ca05 store 1 ,mem_mouse_le_send_conn_param_update_timer 
+0405 58000000 setarg 0 
+0406 67e147c0 store 2 ,mem_le_battery_level_updata_timer 
+0407 70479400 jam 0 ,mem_mouse_le_bb_connected_flag 
+0408 d8400006 arg le_interval_7_5ms ,temp 
+0409 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+040a c28d840c bbit1 mouse_enable_bt_125hz ,p_mouse_le_bb_disconnected_next 
+040b d8400007 arg le_interval_8_75ms ,temp 
 
 p_mouse_le_bb_disconnected_next:
-040b 604942d3 storet 2 ,mem_le_interval_min 
-040c 604942d5 storet 2 ,mem_le_interval_min + 2 
-040d 7047c200 jam le_lpm_enable ,mem_mouse_le_conn_param_reject 
-040e 70495600 jam 0 ,mem_mouse_clear_sensor_data_flag 
-040f 204029cb call le_clr_config_more_data 
-0410 20200411 branch p_mouse_bb_disconnected 
+040c 604942d3 storet 2 ,mem_le_interval_min 
+040d 604942d5 storet 2 ,mem_le_interval_min + 2 
+040e 7047c200 jam le_lpm_enable ,mem_mouse_le_conn_param_reject 
+040f 70495600 jam 0 ,mem_mouse_clear_sensor_data_flag 
+0410 204029cb call le_clr_config_more_data 
+0411 20200412 branch p_mouse_bb_disconnected 
 
 p_mouse_bb_disconnected:
-0411 20405b7b call mouse_bb_discon_clear_stack 
-0412 6fe143ef fetch app_disc_rsn_size ,mem_app_disconn_reason 
-0413 c2838416 bbit1 app_disc_ble ,p_mouse4_0_event_bb_disconn 
-0414 c28042fc bbit1 app_disc_by_button ,app_disconn_reason_clear 
-0415 20205c1a branch mouse_start_discovery 
+0412 20405b7b call mouse_bb_discon_clear_stack 
+0413 6fe143ef fetch app_disc_rsn_size ,mem_app_disconn_reason 
+0414 c2838417 bbit1 app_disc_ble ,p_mouse4_0_event_bb_disconn 
+0415 c28042fc bbit1 app_disc_by_button ,app_disconn_reason_clear 
+0416 20205c1a branch mouse_start_discovery 
 
 p_mouse4_0_event_bb_disconn:
-0416 6fe143ef fetch app_disc_rsn_size ,mem_app_disconn_reason 
-0417 c28042fc bbit1 app_disc_by_button ,app_disconn_reason_clear 
-0418 6fe0c843 fetch 1 ,mem_le_connect_status_flag 
-0419 1fe17e03 and pdata ,0x03 ,pdata 
-041a 20405b21 call mouse_le_clean_connect_flag 
-041b c081d4a9 bne 0x03 ,mouse_start_reconnect 
-041c 6fe0cc07 fetch 1 ,mem_le_check_retransmit_discon_flag 
-041d 243a54a9 nbranch mouse_start_reconnect ,blank 
-041e 202054cd branch mouse_app_enter_hibernate 
+0417 6fe143ef fetch app_disc_rsn_size ,mem_app_disconn_reason 
+0418 c28042fc bbit1 app_disc_by_button ,app_disconn_reason_clear 
+0419 6fe0c843 fetch 1 ,mem_le_connect_status_flag 
+041a 1fe17e03 and pdata ,0x03 ,pdata 
+041b 20405b21 call mouse_le_clean_connect_flag 
+041c c081d4a9 bne 0x03 ,mouse_start_reconnect 
+041d 6fe0cbfc fetch 1 ,mem_le_check_retransmit_discon_flag 
+041e 243a54a9 nbranch mouse_start_reconnect ,blank 
+041f 202054cd branch mouse_app_enter_hibernate 
 
 p_mouse_24g_attempt_success:
-041f 6fe2458f fetch 4 ,mem_24g_addr 
-0420 67e245e8 store 4 ,mem_24g_receiver_addr 
-0421 67e24691 store 4 ,mem_mouse_24g_addr 
-0422 2040355a call g24_ch_syncword_crc8_init 
-0423 20405c0b call mouse_no_data_timer_init 
-0424 2040618e call mouse_device_poweron_led_config 
-0425 20405a73 call mouse_init_sensor_reset 
-0426 70477d00 jam 0 ,mem_mouse_long_mult_flag 
-0427 7045fc00 jam 0 ,mem_24g_conn_sm 
-0428 7045e200 jam 0 ,mem_24g_reconn_type 
-0429 6fe245e8 fetch 4 ,mem_24g_receiver_addr 
-042a 684a45e4 fetcht 4 ,mem_24g_fast_conn_addr 
-042b 98467c00 isub temp ,null 
-042c 20628000 rtn zero 
-042d 20406016 call mouse_soft_agc_disable 
-042e 20400467 call p_mouse_fetch_normal_tx_power 
-042f 20206042 branch mouse_24g_first_store_reconn_info 
+0420 6fe2458f fetch 4 ,mem_24g_addr 
+0421 67e245e8 store 4 ,mem_24g_receiver_addr 
+0422 67e24691 store 4 ,mem_mouse_24g_addr 
+0423 2040355a call g24_ch_syncword_crc8_init 
+0424 20405c0b call mouse_no_data_timer_init 
+0425 2040618e call mouse_device_poweron_led_config 
+0426 20405a73 call mouse_init_sensor_reset 
+0427 70477d00 jam 0 ,mem_mouse_long_mult_flag 
+0428 7045fc00 jam 0 ,mem_24g_conn_sm 
+0429 7045e200 jam 0 ,mem_24g_reconn_type 
+042a 6fe245e8 fetch 4 ,mem_24g_receiver_addr 
+042b 684a45e4 fetcht 4 ,mem_24g_fast_conn_addr 
+042c 98467c00 isub temp ,null 
+042d 20628000 rtn zero 
+042e 20406016 call mouse_soft_agc_disable 
+042f 20400468 call p_mouse_fetch_normal_tx_power 
+0430 20206042 branch mouse_24g_first_store_reconn_info 
 
 p_mouse_24g_pairing_complete:
-0430 20406016 call mouse_soft_agc_disable 
-0431 20400467 call p_mouse_fetch_normal_tx_power 
-0432 20206084 branch mouse_24g_pairing_complete 
+0431 20406016 call mouse_soft_agc_disable 
+0432 20400468 call p_mouse_fetch_normal_tx_power 
+0433 20206084 branch mouse_24g_pairing_complete 
 
 p_mouse_24g_attempt_fail:
-0433 20406016 call mouse_soft_agc_disable 
-0434 20400467 call p_mouse_fetch_normal_tx_power 
-0435 6fe0c87a fetch 1 ,mem_mouse_dpi_button_state 
-0436 c1008000 rtneq dpi_button_state_down 
-0437 6fe0c600 fetch 1 ,mem_24g_attempt_fail_flag 
-0438 243a5ff2 nbranch mouse_24g_hibernate_set ,blank 
-0439 6fe0c5e2 fetch 1 ,mem_24g_reconn_type 
-043a c002043e beq pair_and_3_0_addr ,p_mouse_24g_auto_pair_attempt_fail 
-043b c000e05f beq fast_conn_and_receiver ,mouse_24g_fast_conn_attempt_fail 
-043c c0018445 beq receiver_and_3_0_addr ,p_mouse_reconn_dongle_attempt_fail 
-043d 20206055 branch mouse_24g_attempt_fail + 2 
+0434 20406016 call mouse_soft_agc_disable 
+0435 20400468 call p_mouse_fetch_normal_tx_power 
+0436 6fe0c87a fetch 1 ,mem_mouse_dpi_button_state 
+0437 c1008000 rtneq dpi_button_state_down 
+0438 6fe0c600 fetch 1 ,mem_24g_attempt_fail_flag 
+0439 243a5ff2 nbranch mouse_24g_hibernate_set ,blank 
+043a 6fe0c5e2 fetch 1 ,mem_24g_reconn_type 
+043b c002043f beq pair_and_3_0_addr ,p_mouse_24g_auto_pair_attempt_fail 
+043c c000e05f beq fast_conn_and_receiver ,mouse_24g_fast_conn_attempt_fail 
+043d c0018446 beq receiver_and_3_0_addr ,p_mouse_reconn_dongle_attempt_fail 
+043e 20206055 branch mouse_24g_attempt_fail + 2 
 
 p_mouse_24g_auto_pair_attempt_fail:
-043e 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-043f c31f6059 bbit0 mouse_enable_24g_first_auto_pairing ,mouse_24g_attempt_fail_enter_hibernate 
-0440 6fe0c71b fetch 1 ,mem_device_number 
-0441 c000e059 beq 1 ,mouse_24g_attempt_fail_enter_hibernate 
+043f 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+0440 c31f6059 bbit0 mouse_enable_24g_first_auto_pairing ,mouse_24g_attempt_fail_enter_hibernate 
+0441 6fe0c71b fetch 1 ,mem_device_number 
+0442 c000e059 beq 1 ,mouse_24g_attempt_fail_enter_hibernate 
 
 p_mouse_24g_first_bluetooth_reconnect:
-0442 20406018 call mouse_24g_stop 
-0443 70466601 jam mode_bt_device1 ,mem_device_flag 
-0444 202054a0 branch mouse_start_reconnect_device 
+0443 20406018 call mouse_24g_stop 
+0444 70466601 jam mode_bt_device1 ,mem_device_flag 
+0445 202054a0 branch mouse_start_reconnect_device 
 
 p_mouse_reconn_dongle_attempt_fail:
-0445 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-0446 c31f6059 bbit0 mouse_enable_24g_first_auto_pairing ,mouse_24g_attempt_fail_enter_hibernate 
-0447 c289e059 bbit1 mouse_enable_eeprom ,mouse_24g_attempt_fail_enter_hibernate 
-0448 c28a6059 bbit1 mouse_enable_otp ,mouse_24g_attempt_fail_enter_hibernate 
-0449 c2896059 bbit1 mouse_enable_flash ,mouse_24g_attempt_fail_enter_hibernate 
-044a 20206034 branch mouse_24g_start_auto_pair 
+0446 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+0447 c31f6059 bbit0 mouse_enable_24g_first_auto_pairing ,mouse_24g_attempt_fail_enter_hibernate 
+0448 c289e059 bbit1 mouse_enable_eeprom ,mouse_24g_attempt_fail_enter_hibernate 
+0449 c28a6059 bbit1 mouse_enable_otp ,mouse_24g_attempt_fail_enter_hibernate 
+044a c2896059 bbit1 mouse_enable_flash ,mouse_24g_attempt_fail_enter_hibernate 
+044b 20206034 branch mouse_24g_start_auto_pair 
 
 p_mouse_start_work:
-044b 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-044c c29f0450 bbit1 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_first_start_auto_pair_mode 
-044d 6fe0c666 fetch 1 ,mem_device_flag 
-044e c0000457 beq mode_24g_device ,p_mouse_24g_start_mode 
-044f 20205491 branch mouse_le_fast_conn_judge 
+044c 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+044d c29f0451 bbit1 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_first_start_auto_pair_mode 
+044e 6fe0c666 fetch 1 ,mem_device_flag 
+044f c0000458 beq mode_24g_device ,p_mouse_24g_start_mode 
+0450 20205491 branch mouse_le_fast_conn_judge 
 
 p_mouse_24g_first_start_auto_pair_mode:
-0450 204054ac call mouse_wakeup_from_power_check 
-0451 20340453 branch p_mouse_24g_first_start_reconn ,user 
-0452 2020602f branch mouse_24g_reconn_general_dongle 
+0451 204054ac call mouse_wakeup_from_power_check 
+0452 20340454 branch p_mouse_24g_first_start_reconn ,user 
+0453 2020602f branch mouse_24g_reconn_general_dongle 
 
 p_mouse_24g_first_start_reconn:
-0453 6fe0c666 fetch 1 ,mem_device_flag 
-0454 c0006067 beq mode_24g_device ,mouse_24g_reconn_dongle_start 
-0455 20405aa8 call mouse_bluetooth_fast_conn_disable 
-0456 20200442 branch p_mouse_24g_first_bluetooth_reconnect 
+0454 6fe0c666 fetch 1 ,mem_device_flag 
+0455 c0006067 beq mode_24g_device ,mouse_24g_reconn_dongle_start 
+0456 20405aa8 call mouse_bluetooth_fast_conn_disable 
+0457 20200443 branch p_mouse_24g_first_bluetooth_reconnect 
 
 p_mouse_24g_start_mode:
-0457 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-0458 c308e02a bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
-0459 20406195 call mouse_device_24g_pair_led_config 
-045a 204054ac call mouse_wakeup_from_power_check 
-045b 20346067 branch mouse_24g_reconn_dongle_start ,user 
-045c 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-045d c298045f bbit1 mouse_enable_auto_24g_paring ,p_mouse_24g_reconn_general_dongle 
-045e 20206023 branch mouse_24g_start_mode + 7 
+0458 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+0459 c308e02a bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
+045a 20406195 call mouse_device_24g_pair_led_config 
+045b 204054ac call mouse_wakeup_from_power_check 
+045c 20346067 branch mouse_24g_reconn_dongle_start ,user 
+045d 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+045e c2980460 bbit1 mouse_enable_auto_24g_paring ,p_mouse_24g_reconn_general_dongle 
+045f 20206023 branch mouse_24g_start_mode + 7 
 
 p_mouse_24g_reconn_general_dongle:
-045f 70466600 jam mode_24g_device ,mem_device_flag 
-0460 6fe14721 fetch 2 ,mem_mouse_24g_power_on_fast_conn_timer 
-0461 67e145de store 2 ,mem_24g_reconn_timeout 
-0462 7045e201 jam fast_conn_and_receiver ,mem_24g_reconn_type 
-0463 20203534 branch g24_reconn_start 
+0460 70466600 jam mode_24g_device ,mem_device_flag 
+0461 6fe14721 fetch 2 ,mem_mouse_24g_power_on_fast_conn_timer 
+0462 67e145de store 2 ,mem_24g_reconn_timeout 
+0463 7045e201 jam fast_conn_and_receiver ,mem_24g_reconn_type 
+0464 20203534 branch g24_reconn_start 
 
 p_mouse_store_normal_tx_power:
-0464 6fe0c141 fetch 1 ,mem_tx_power 
-0465 67e0ca07 store 1 ,mem_normal_tx_power 
-0466 20600000 rtn 
+0465 6fe0c141 fetch 1 ,mem_tx_power 
+0466 67e0ca07 store 1 ,mem_normal_tx_power 
+0467 20600000 rtn 
 
 p_mouse_fetch_normal_tx_power:
-0467 6fe0ca07 fetch 1 ,mem_normal_tx_power 
-0468 67e0c141 store 1 ,mem_tx_power 
-0469 20600000 rtn 
+0468 6fe0ca07 fetch 1 ,mem_normal_tx_power 
+0469 67e0c141 store 1 ,mem_tx_power 
+046a 20600000 rtn 
 
 p_mouse_idle:
-046a 2040620e call mouse_low_voltage_led_no_enter_lpm 
-046b 204078aa call ui_check_paring_button 
-046c 2040046e call p_mouse_dpi_check 
-046d 20205e61 branch mouse_idle + 4 
+046b 2040620e call mouse_low_voltage_led_no_enter_lpm 
+046c 204078aa call ui_check_paring_button 
+046d 2040046f call p_mouse_dpi_check 
+046e 20205e61 branch mouse_idle + 4 
 
 p_mouse_dpi_check:
-046e 6fe0c649 fetch 1 ,mem_dpi_button_gpio 
-046f c17f8000 rtneq gpio_disable 
-0470 da200000 arg 0 ,rega 
-0471 70497705 jam mouse_dpi_key ,mem_mouse_key_temp 
-0472 6848c649 fetcht 1 ,mem_dpi_button_gpio 
-0473 20400475 call p_mouse_dpi_key_check 
-0474 202056c1 branch mouse_dpi_check_next 
+046f 6fe0c649 fetch 1 ,mem_dpi_button_gpio 
+0470 c17f8000 rtneq gpio_disable 
+0471 da200000 arg 0 ,rega 
+0472 70497705 jam mouse_dpi_key ,mem_mouse_key_temp 
+0473 6848c649 fetcht 1 ,mem_dpi_button_gpio 
+0474 20400476 call p_mouse_dpi_key_check 
+0475 202056c1 branch mouse_dpi_check_next 
 
 p_mouse_dpi_key_check:
-0475 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-0476 c295d6de bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
-0477 6fe0c974 fetch 1 ,mem_mouse_dpikey_press_status 
-0478 1fe22600 copy pdata ,regc 
-0479 6fe0c654 fetch 1 ,mem_matrix_public_gpio 
-047a c07f847c beq gpio_disable ,p_mouse_3io6key_dpi_check 
-047b 202056ce branch mouse_dpi_key_check_next 
+0476 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+0477 c295d6de bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
+0478 6fe0c974 fetch 1 ,mem_mouse_dpikey_press_status 
+0479 1fe22600 copy pdata ,regc 
+047a 6fe0c654 fetch 1 ,mem_matrix_public_gpio 
+047b c07f847d beq gpio_disable ,p_mouse_3io6key_dpi_check 
+047c 202056ce branch mouse_dpi_key_check_next 
 
 p_mouse_3io6key_dpi_check:
-047c 6fe0c649 fetch 1 ,mem_dpi_button_gpio 
-047d 20405946 call mouse_gpio_config_output_low 
-047e 6848c649 fetcht 1 ,mem_dpi_button_gpio 
-047f 20200480 branch p_mouse_3io6key_check 
+047d 6fe0c649 fetch 1 ,mem_dpi_button_gpio 
+047e 20405946 call mouse_gpio_config_output_low 
+047f 6848c649 fetcht 1 ,mem_dpi_button_gpio 
+0480 20200481 branch p_mouse_3io6key_check 
 
 p_mouse_3io6key_check:
-0480 1a627e00 copy regc ,pdata 
-0481 67e0c978 store 1 ,mem_mouse_key_status 
-0482 1fe3fe00 lshift pdata ,pdata 
-0483 1fe22400 copy pdata ,regb 
-0484 18422600 copy temp ,regc 
-0485 204055b1 call mouse_gpio_config_input_pd 
-0486 1a620400 copy regc ,temp 
-0487 20406ee6 call gpio_get_bit 
-0488 7d20a400 nsetflag true ,0 ,regb 
-0489 2040593d call mouse_check_press 
-048a 20205929 branch mouse_check_key_connect_gnd_1 
+0481 1a627e00 copy regc ,pdata 
+0482 67e0c978 store 1 ,mem_mouse_key_status 
+0483 1fe3fe00 lshift pdata ,pdata 
+0484 1fe22400 copy pdata ,regb 
+0485 18422600 copy temp ,regc 
+0486 204055b1 call mouse_gpio_config_input_pd 
+0487 1a620400 copy regc ,temp 
+0488 20406ee6 call gpio_get_bit 
+0489 7d20a400 nsetflag true ,0 ,regb 
+048a 2040593d call mouse_check_press 
+048b 20205929 branch mouse_check_key_connect_gnd_1 
 
 p_g24_short_sleep:
-048b 204036b4 call g24_lpm_wait 
-048c 24740000 nrtn user 
-048d 204036be call g24_setgpio_lpm_before 
-048e 20400491 call p_clear_wake 
-048f 6fe1c608 fetch 3 ,mem_24g_short_sleep_set 
-0490 20203622 branch g24_long_seep2 
+048c 204036b4 call g24_lpm_wait 
+048d 24740000 nrtn user 
+048e 204036be call g24_setgpio_lpm_before 
+048f 20400492 call p_clear_wake 
+0490 6fe1c608 fetch 3 ,mem_24g_short_sleep_set 
+0491 20203622 branch g24_long_seep2 
 
 p_clear_wake:
-0491 58000000 setarg 0 
-0492 79207e15 set1 21 ,pdata 
-0493 67e40016 store 8 ,mem_gpio_wakeup_cfg 
-0494 58000000 setarg 0 
-0495 67e2001e store 4 ,mem_gpio_wakeup_cfg + 8 
-0496 20600000 rtn 
+0492 58000000 setarg 0 
+0493 79207e15 set1 21 ,pdata 
+0494 67e40016 store 8 ,mem_gpio_wakeup_cfg 
+0495 58000000 setarg 0 
+0496 67e2001e store 4 ,mem_gpio_wakeup_cfg + 8 
+0497 20600000 rtn 
 
 p_mouse_24g_hibernate_set:
-0497 70460000 jam 0 ,mem_24g_attempt_fail_flag 
-0498 20403647 call g24_transmit_next_packet 
-0499 5fffffff setarg -1 
-049a 67e245af store 4 ,mem_24g_enter_hibernate 
-049b 58000000 setarg 0 
-049c 67e3c846 store 7 ,mem_mouse_key 
-049d 70473f01 jam 1 ,mem_sensor_shutdown_flag 
-049e 204059ed call mouse_sensor_powerdown 
-049f 2020622b branch mouse_24g_long_sleep 
+0498 70460000 jam 0 ,mem_24g_attempt_fail_flag 
+0499 20403647 call g24_transmit_next_packet 
+049a 5fffffff setarg -1 
+049b 67e245af store 4 ,mem_24g_enter_hibernate 
+049c 58000000 setarg 0 
+049d 67e3c846 store 7 ,mem_mouse_key 
+049e 70473f01 jam 1 ,mem_sensor_shutdown_flag 
+049f 204059ed call mouse_sensor_powerdown 
+04a0 2020622b branch mouse_24g_long_sleep 
 
 p_mouse_setgpio_hibernate:
-04a0 20405a92 call mouse_set_sdio_high 
-04a1 20400491 call p_clear_wake 
-04a2 204056a9 call mouse_before_hibernate_wheel_gpio_set 
-04a3 6848c654 fetcht 1 ,mem_matrix_public_gpio 
-04a4 20406ef7 call gpio_out_active 
-04a5 6848c654 fetcht 1 ,mem_matrix_public_gpio 
-04a6 20406ed3 call gpio_clr_wake 
-04a7 6fe0c64d fetch 1 ,mem_mouse_sensor_sdio_gpio 
-04a8 20405943 call mouse_gpio_config_output_high 
-04a9 6848c65a fetcht 1 ,mem_device_switch_gpio 
-04aa 204055ab call mouse_gpio_set_pupd_by_input 
-04ab d8400015 arg 21 ,temp 
-04ac 204055b5 call mouse_gpio_config_input_pu 
-04ad 2040611a call mouse_logo_led_off 
-04ae 2040550c call mouse_lpm_before_common 
-04af 204054f9 call mouse_gpio_pd_idle 
-04b0 6848c64a fetcht 1 ,mem_whee_a_data_gpio 
-04b1 20406f0f call gpio_set_high_impedance 
-04b2 6848c64b fetcht 1 ,mem_whee_b_data_gpio 
-04b3 20406f0f call gpio_set_high_impedance 
-04b4 6848c65b fetcht 1 ,mem_mouse_reuse_2ice_gpio 
-04b5 204055b5 call mouse_gpio_config_input_pu 
-04b6 204004b8 call p_mouse_gpio_set_high_impedance 
-04b7 202054e5 branch mouse_setgpio_hibernate_next 
-
-p_mouse_gpio_set_high_impedance:
-04b8 6fe1c73c fetch 3 ,mem_mouse_set_high_impedance_bit_set 
-04b9 67e18670 store 3 ,mem_pdatatemp 
-04ba df200018 arg 24 ,loopcnt 
-04bb d8400000 arg 0 ,temp 
-
-p_mouse_gpio_set_high_impedance_bit_loop:
-04bc 6fe18670 fetch 3 ,mem_pdatatemp 
-04bd 2feffe00 isolate1 0 ,pdata 
-04be 204084c5 call p_gpio_set_analog ,true 
-04bf 6fe18670 fetch 3 ,mem_pdatatemp 
-04c0 1fe37e00 rshift pdata ,pdata 
-04c1 67e18670 store 3 ,mem_pdatatemp 
-04c2 18408401 increase 1 ,temp 
-04c3 c20004bc loop p_mouse_gpio_set_high_impedance_bit_loop 
-04c4 20600000 rtn 
-
-p_gpio_set_analog:
-04c5 18467cff sub temp ,ui_button_gpio_disable ,null 
-04c6 20628000 rtn zero 
-04c7 20206f0b branch gpio_set_analog 
+04a1 20405a92 call mouse_set_sdio_high 
+04a2 20400492 call p_clear_wake 
+04a3 204056a9 call mouse_before_hibernate_wheel_gpio_set 
+04a4 6848c654 fetcht 1 ,mem_matrix_public_gpio 
+04a5 20406ef7 call gpio_out_active 
+04a6 6848c654 fetcht 1 ,mem_matrix_public_gpio 
+04a7 20406ed3 call gpio_clr_wake 
+04a8 6fe0c64d fetch 1 ,mem_mouse_sensor_sdio_gpio 
+04a9 20405943 call mouse_gpio_config_output_high 
+04aa 6848c65a fetcht 1 ,mem_device_switch_gpio 
+04ab 204055ab call mouse_gpio_set_pupd_by_input 
+04ac d8400015 arg 21 ,temp 
+04ad 204055b5 call mouse_gpio_config_input_pu 
+04ae 2040611a call mouse_logo_led_off 
+04af 2040550c call mouse_lpm_before_common 
+04b0 204054f9 call mouse_gpio_pd_idle 
+04b1 6848c64a fetcht 1 ,mem_whee_a_data_gpio 
+04b2 20406f0f call gpio_set_high_impedance 
+04b3 6848c64b fetcht 1 ,mem_whee_b_data_gpio 
+04b4 20406f0f call gpio_set_high_impedance 
+04b5 202054e5 branch mouse_setgpio_hibernate_next 
 
 p_mouse_24g_package_data:
-04c8 c6930000 rtnmark0 mark_24g 
-04c9 20405601 call mouse_motion 
-04ca 24740000 nrtn user 
-04cb 6fe0c77c fetch 1 ,mem_mouse_24g_long_sleep_flag 
-04cc 70477c00 jam 0 ,mem_mouse_24g_long_sleep_flag 
-04cd 245a04dd ncall p_mouse_24g_short_sleep_clear_wake ,blank 
-04ce 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-04cf c30b04d2 bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
-04d0 6fe0c96c fetch 1 ,mem_customer_key 
-04d1 243a60b6 nbranch mouse_24g_keyboard_package_data ,blank 
+04b6 c6930000 rtnmark0 mark_24g 
+04b7 20405601 call mouse_motion 
+04b8 24740000 nrtn user 
+04b9 6fe0c77c fetch 1 ,mem_mouse_24g_long_sleep_flag 
+04ba 70477c00 jam 0 ,mem_mouse_24g_long_sleep_flag 
+04bb 245a04cb ncall p_mouse_24g_short_sleep_clear_wake ,blank 
+04bc 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+04bd c30b04c0 bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
+04be 6fe0c96c fetch 1 ,mem_customer_key 
+04bf 243a60b6 nbranch mouse_24g_keyboard_package_data ,blank 
 
 p_mouse_24g_mouse_package_data:
-04d2 204004d4 call p_mouse_data_xy_release 
-04d3 202060a2 branch mouse_24g_mouse_package_data + 1 
+04c0 204004c2 call p_mouse_data_xy_release 
+04c1 202060a2 branch mouse_24g_mouse_package_data + 1 
 
 p_mouse_data_xy_release:
-04d4 6fe0c659 fetch 1 ,mem_sensor_motion_gpio 
-04d5 c1ff8000 rtnne gpio_disable 
-04d6 6fe0c77d fetch 1 ,mem_mouse_long_mult_flag 
-04d7 207a0000 rtn blank 
-04d8 1fe0ffff increase -1 ,pdata 
-04d9 67e0c77d store 1 ,mem_mouse_long_mult_flag 
-04da 58000000 setarg 0 
-04db 67e24847 store 4 ,mem_mouse_x 
-04dc 20205a73 branch mouse_init_sensor_reset 
+04c2 6fe0c659 fetch 1 ,mem_sensor_motion_gpio 
+04c3 c1ff8000 rtnne gpio_disable 
+04c4 6fe0c77d fetch 1 ,mem_mouse_long_mult_flag 
+04c5 207a0000 rtn blank 
+04c6 1fe0ffff increase -1 ,pdata 
+04c7 67e0c77d store 1 ,mem_mouse_long_mult_flag 
+04c8 58000000 setarg 0 
+04c9 67e24847 store 4 ,mem_mouse_x 
+04ca 20205a73 branch mouse_init_sensor_reset 
 
 p_mouse_24g_short_sleep_clear_wake:
-04dd 20400491 call p_clear_wake 
-04de 20200240 branch p_lpm_write_gpio_wakeup 
+04cb 20400492 call p_clear_wake 
+04cc 2020023a branch p_lpm_write_gpio_wakeup 
 
 p_mouse_check_select_device_by_switch:
-04df 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
-04e0 c4150000 rtnbit0 mouse_enable_select_device_by_switch_gpio 
-04e1 c31fdeb9 bbit0 mouse_enable_switch_gpio_connect_vin ,mouse_switch_gpio_connect_gnd 
+04cd 6fe44713 fetch mouse_flag_len ,mem_mouse_flag 
+04ce c4150000 rtnbit0 mouse_enable_select_device_by_switch_gpio 
+04cf c31fdeb9 bbit0 mouse_enable_switch_gpio_connect_vin ,mouse_switch_gpio_connect_gnd 
 
 p_mouse_switch_gpio_connect_vin:
-04e2 6848c65a fetcht 1 ,mem_device_switch_gpio 
-04e3 20406ef7 call gpio_out_active 
-04e4 6848c65a fetcht 1 ,mem_device_switch_gpio 
-04e5 204055b1 call mouse_gpio_config_input_pd 
-04e6 6848c65a fetcht 1 ,mem_device_switch_gpio 
-04e7 20406ee6 call gpio_get_bit 
-04e8 2420dec2 nbranch mouse_check_select_24g_device ,true 
-04e9 20205ebe branch mouse_select_btdevice 
+04d0 6848c65a fetcht 1 ,mem_device_switch_gpio 
+04d1 20406ef7 call gpio_out_active 
+04d2 6848c65a fetcht 1 ,mem_device_switch_gpio 
+04d3 204055b1 call mouse_gpio_config_input_pd 
+04d4 6848c65a fetcht 1 ,mem_device_switch_gpio 
+04d5 20406ee6 call gpio_get_bit 
+04d6 2420dec2 nbranch mouse_check_select_24g_device ,true 
+04d7 20205ebe branch mouse_select_btdevice 
 
 p_mouse_init_sensor:
-04ea 20405958 call mouse_read_sensor_id 
-04eb c018595f beq p32xx_id1 ,mouse_init_p32xx_id2_judge 
-04ec c018d9c6 beq p3065_id1 ,mouse_init_p3065 
-04ed c02c04ef beq pka8g2_id1 ,p_mouse_ka8g2_id2_judge 
-04ee 20205952 branch mouse_init_sensor + 5 
+04d8 20405958 call mouse_read_sensor_id 
+04d9 c018595f beq p32xx_id1 ,mouse_init_p32xx_id2_judge 
+04da c018d9c6 beq p3065_id1 ,mouse_init_p3065 
+04db c02c04dd beq pka8g2_id1 ,p_mouse_ka8g2_id2_judge 
+04dc 20205952 branch mouse_init_sensor + 5 
 
 p_mouse_ka8g2_id2_judge:
-04ef 204059e7 call mouse_sensor_poweron 
-04f0 6fe0c85a fetch 1 ,mem_sensor_id2 
-04f1 c02c84f3 beq pka8g2_id2 ,p_mouse_ka8g2_init_param 
-04f2 2020595f branch mouse_init_p32xx_id2_judge 
+04dd 204059e7 call mouse_sensor_poweron 
+04de 6fe0c85a fetch 1 ,mem_sensor_id2 
+04df c02c84e1 beq pka8g2_id2 ,p_mouse_ka8g2_init_param 
+04e0 2020595f branch mouse_init_p32xx_id2_judge 
 
 p_mouse_ka8g2_init_param:
-04f3 7049570b jam ka8g2 ,mem_config_sensor_type 
-04f4 da604a0b arg mem_sensor_ka8g2_init_new ,regc 
-04f5 20205995 branch mouse_sensor_wr_seq 
+04e1 7049570b jam ka8g2 ,mem_config_sensor_type 
+04e2 da604a0b arg mem_sensor_ka8g2_init_new ,regc 
+04e3 20205995 branch mouse_sensor_wr_seq 
 
 p_mouse_check_sensor_data:
-04f6 6fe0c420 fetch 1 ,mem_spi_write_flash_sm 
-04f7 c1800000 rtnne flash_sm_no_buys 
-04f8 6fe0c957 fetch 1 ,mem_config_sensor_type 
-04f9 c00584fb beq ka8g2 ,p_mouse_pka8g2_sensor_motion 
-04fa 202059f8 branch mouse_check_sensor_data + 2 
+04e4 6fe0c420 fetch 1 ,mem_spi_write_flash_sm 
+04e5 c1800000 rtnne flash_sm_no_buys 
+04e6 6fe0c957 fetch 1 ,mem_config_sensor_type 
+04e7 c00584e9 beq ka8g2 ,p_mouse_pka8g2_sensor_motion 
+04e8 202059f8 branch mouse_check_sensor_data + 2 
 
 p_mouse_pka8g2_sensor_motion:
-04fb 20405a6d call mouse_clear_sensor_data 
-04fc 6fe0c659 fetch 1 ,mem_sensor_motion_gpio 
-04fd c07f8501 beq gpio_disable ,p_mouse_pka8g2_sensor_motion_1 
-04fe 6848c659 fetcht 1 ,mem_sensor_motion_gpio 
-04ff 20406ee6 call gpio_get_bit 
-0500 24608000 nrtn true 
+04e9 20405a6d call mouse_clear_sensor_data 
+04ea 6fe0c659 fetch 1 ,mem_sensor_motion_gpio 
+04eb c07f84ef beq gpio_disable ,p_mouse_pka8g2_sensor_motion_1 
+04ec 6848c659 fetcht 1 ,mem_sensor_motion_gpio 
+04ed 20406ee6 call gpio_get_bit 
+04ee 24608000 nrtn true 
 
 p_mouse_pka8g2_sensor_motion_1:
-0501 58000000 setarg pan_reg_pid_l 
-0502 204069e5 call twspi_read 
-0503 c0ac5955 bne pka8g2_id1 ,mouse_twspi_reset 
-0504 20205a2f branch mouse_p3212_sensor_motion_2 
+04ef 58000000 setarg pan_reg_pid_l 
+04f0 204069e5 call twspi_read 
+04f1 c0ac5955 bne pka8g2_id1 ,mouse_twspi_reset 
+04f2 20205a2f branch mouse_p3212_sensor_motion_2 
 
 p_mouse_motion:
-0505 78547c00 disable user 
-0506 58000000 setarg 0 
-0507 67e34847 store 6 ,mem_mouse_x 
-0508 204004f6 call p_mouse_check_sensor_data 
-0509 20205606 branch mouse_motion + 5 
+04f3 78547c00 disable user 
+04f4 58000000 setarg 0 
+04f5 67e34847 store 6 ,mem_mouse_x 
+04f6 204004e4 call p_mouse_check_sensor_data 
+04f7 58000089 setarg 0x0089 
+04f8 204069e4 call twspi_write 
+04f9 20405747 call mouse_setting_sensor_type 
+04fa 20405612 call mouse_zwheel 
+04fb 20405617 call mouse_t_zwheel 
+04fc 204004fe call p_mouse_key 
+04fd 2020560c branch mouse_motion + 11 
+
+p_mouse_key:
+04fe 2040584c call mouse_check_firekey_gpio 
+04ff 6fe0c987 fetch 1 ,mem_fire_key_flag 
+0500 243a5860 nbranch fire_key_press ,blank 
+0501 6fe0c982 fetch 1 ,mem_fire_key_status 
+0502 243a585f nbranch fire_key_process ,blank 
+0503 20405888 call mouse_check_key_gpio 
+0504 20400506 call p_mouse_ghost_key_check 
+0505 202057ad branch mouse_key + 7 
+
+p_mouse_ghost_key_check:
+0506 70497900 jam 0 ,mem_mouse_matrix_key_cow_count 
+0507 70497a00 jam 0 ,mem_mouse_matrix_key_row_count 
+0508 70497b00 jam 0 ,mem_mouse_ghost_flag 
+0509 1fe22400 copy pdata ,regb 
+050a 6848c644 fetcht 1 ,mem_lbutton_gpio 
+050b 6fe0c647 fetch 1 ,mem_bk_button_gpio 
+050c 98467c00 isub temp ,null 
+050d 20228518 branch p_mouse_matrix_ghost_key_l_bk ,zero 
+050e 6fe0c648 fetch 1 ,mem_fw_button_gpio 
+050f 98467c00 isub temp ,null 
+0510 2022851e branch p_mouse_matrix_ghost_key_l_fw ,zero 
+0511 6848c645 fetcht 1 ,mem_mbutton_gpio 
+0512 6fe0c647 fetch 1 ,mem_bk_button_gpio 
+0513 98467c00 isub temp ,null 
+0514 20228527 branch p_mouse_ghost_key_mbk_rfw ,zero 
+
+p_mouse_ghost_key_mfw_rbk:
+0515 204057fb call mouse_ghost_key_check_m_fw 
+
+p_mouse_ghost_key_rbk:
+0516 2040052c call p_mouse_ghost_key_check_r_bk 
+0517 202057e5 branch mouse_ghost_key_check_next 
+
+p_mouse_matrix_ghost_key_l_bk:
+0518 6848c645 fetcht 1 ,mem_mbutton_gpio 
+0519 6fe0c648 fetch 1 ,mem_fw_button_gpio 
+051a 98467c00 isub temp ,null 
+051b 2022d7d6 branch mouse_ghost_key_lbk_mfw ,zero 
+
+p_mouse_ghost_key_lbk_rfw:
+051c 204057ef call mouse_ghost_key_check_l_bk 
+051d 20200528 branch p_mouse_ghost_key_rfw 
+
+p_mouse_matrix_ghost_key_l_fw:
+051e 6848c645 fetcht 1 ,mem_mbutton_gpio 
+051f 6fe0c647 fetch 1 ,mem_bk_button_gpio 
+0520 98467c00 isub temp ,null 
+0521 20228524 branch p_mouse_ghost_key_lfw_mbk ,zero 
+
+p_mouse_ghost_key_lfw_rbk:
+0522 2040052e call p_mouse_ghost_key_check_l_fw 
+0523 20200516 branch p_mouse_ghost_key_rbk 
+
+p_mouse_ghost_key_lfw_mbk:
+0524 2040052e call p_mouse_ghost_key_check_l_fw 
+0525 2040052a call p_mouse_ghost_key_check_m_bk 
+0526 202057e5 branch mouse_ghost_key_check_next 
+
+p_mouse_ghost_key_mbk_rfw:
+0527 2040052a call p_mouse_ghost_key_check_m_bk 
+
+p_mouse_ghost_key_rfw:
+0528 20400530 call p_mouse_ghost_key_check_r_fw 
+0529 202057e5 branch mouse_ghost_key_check_next 
+
+p_mouse_ghost_key_check_m_bk:
+052a 1a417e12 and regb ,mouse_m_bk_button ,pdata 
+052b 202057f3 branch mouse_ghost_key_check_m_bk + 1 
+
+p_mouse_ghost_key_check_r_bk:
+052c 1a417e0a and regb ,mouse_r_bk_button ,pdata 
+052d 202057f6 branch mouse_ghost_key_check_r_bk + 1 
+
+p_mouse_ghost_key_check_l_fw:
+052e 1a417e11 and regb ,mouse_l_fw_button ,pdata 
+052f 202057f9 branch mouse_ghost_key_check_l_fw + 1 
+
+p_mouse_ghost_key_check_r_fw:
+0530 1a417e12 and regb ,mouse_r_fw_button ,pdata 
+0531 202057ff branch mouse_ghost_key_check_r_fw + 1 
               org 0x2000
 
 start:
Index: output/ramcode.rom
===================================================================
--- /1121s/branch/mouse/ZXS_Project/1m/mouse_public_24g_first_bt_WK303_double_dpi/output/ramcode.rom	(revision 1548)
+++ /1121s/branch/mouse/ZXS_Project/1m/mouse_public_24g_first_bt_WK303_double_dpi/output/ramcode.rom	(working copy)
@@ -1,63 +1,57 @@
 c2840027
-c00002aa
-c0010054
-c008005d
-c008805f
-c00a015e
-c00a80e0
-c00c0100
-c00c8107
-c00d006d
-c0128230
-c03402a3
-c03482b2
-c036026c
-c036803c
-c037044b
-c03984a0
-c03b8036
-c03d0505
-c03f8480
-c04084ea
-c042039b
-c04283e7
-c04301f5
-c04383c5
-c04403e5
-c04503af
-c04602f0
-c0468358
-c047046a
-c04582c9
-c04804df
-c04a8497
-c04b04c8
-c06a8214
-c06b020d
-c062824f
-c06d0147
+c00002a7
+c001004e
+c0080057
+c0088059
+c00a0157
+c00a80d9
+c00c00f9
+c00c8100
+c00d0067
+c0128226
+c03402a0
+c03482b3
+c0360263
+c0368036
+c037044c
+c03984a1
+c03a0223
+c03d04f3
+c03f8481
+c04084d8
+c042039c
+c04283e8
+c04301ee
+c04383c6
+c04403e6
+c04503b0
+c04582ca
+c04602f1
+c0468359
+c047046b
+c04804cd
+c04a8498
+c04b04b6
+c0628249
+c06a820d
+c06b0206
+c06d0140
 2020235a
-c00a017f
-c00d017e
-c01281ae
-c01301b3
-c01c81c5
-c01d01cf
-c02601cb
-c02681c9
-c0480252
-c04b048b
-c04d00ee
-c04e80f5
-c04f8274
+c00a0178
+c00d0177
+c01281a7
+c01301ac
+c01c81be
+c01d01c8
+c02601c4
+c02681c2
+c048024c
+c04b048c
+c04d00e7
+c04e80ee
+c04f8271
 c17f8000
 2020235a
-20406f82
-20406fb0
-1fe6fc0a
-20407d5f
-67e14633
-20205553
 6fe0c64f
 67e0c958
 6fe0c64e
@@ -90,7 +84,7 @@
 20402018
 2040310f
 2040248c
-20200054
+2020004e
 70890000
 20202153
 708a0f60
@@ -117,7 +111,7 @@
 708a844a
 708a8540
 708a16fe
-204000b4
+204000ae
 204070d7
 37d98200
 70813b5f
@@ -125,7 +119,7 @@
 70813c88
 37d98200
 6fe0c099
-c00800a9
+c00800a3
 6fe0c438
 1fe1fe04
 67f08a02
@@ -136,15 +130,15 @@
 67f18a73
 708a8660
 708a8b3b
-2040009b
+20400095
 70804300
 70804205
 58557474
 67f18968
 7089606e
-2040011a
-20400145
-20400095
+20400113
+2040013e
+2040008f
 7041480c
 20206f4e
 20758000
@@ -154,7 +148,7 @@
 37d98200
 20600000
 6fe0c099
-c00c00a1
+c00c009b
 6fe0c438
 1fe1fe06
 67f08a02
@@ -177,8 +171,8 @@
 67f18a73
 708a762a
 70890204
-20200088
-203580dc
+20200082
+203580c0
 6fe2020d
 207a0000
 37d98200
@@ -196,6 +190,9 @@
 9841fe00
 67f08138
 37d98200
+6fe1415b
+207a0000
+67e1020f
 6ff08acb
 1fe17ef0
 6848820f
@@ -218,10 +215,6 @@
 9841fe00
 67f08a02
 20600000
-6fe1415b
-207a0000
-67e1020f
-202000c6
 2040686f
 204021ba
 18002a08
@@ -238,7 +231,7 @@
 202021b4
 6fe0c793
 247a0000
-204000f2
+204000eb
 202060fc
 6fe0c655
 c17f8000
@@ -246,13 +239,13 @@
 6848c601
 6fe0c621
 98467c00
-242100fa
+242100f3
 20203681
 6fe2458f
 684a45e4
 98467c00
 2022b222
-20400299
+20400296
 2020369b
 580aaa7e
 67f18a0f
@@ -263,9 +256,9 @@
 20202203
 6fe0c141
 c0032225
-c005010d
-c04f0116
-c0550112
+c0050106
+c04f010f
+c055010b
 2020220e
 708a1425
 58a93f3f
@@ -292,7 +285,7 @@
 708ac200
 708ac300
 d8e00006
-20400137
+20400130
 2a2ffe0d
 2040211d
 2a4ffe0d
@@ -300,14 +293,14 @@
 d8e00005
 2040211c
 2040211e
-20400137
+20400130
 d8a08ac2
 1a31fe00
 20402117
 1a51fe00
 20402117
 18e08fff
-2021012c
+20210125
 2020214f
 2000003c
 58000f00
@@ -332,7 +325,7 @@
 6fe0c409
 67f080cd
 20000bb8
-20400157
+20400150
 708a08c1
 6a40c419
 df200008
@@ -343,7 +336,7 @@
 20600000
 7080cc03
 6ff08129
-c3028158
+c3028151
 68590164
 6049440a
 7080cc00
@@ -352,7 +345,7 @@
 708a8d12
 708a8e0a
 6fe0c099
-c0080177
+c0080170
 58005762
 67f10907
 70890103
@@ -363,7 +356,7 @@
 708a8d44
 708a8e0a
 6fe0c099
-c0080174
+c008016d
 58002bb1
 67f10907
 c6978000
@@ -372,34 +365,34 @@
 20600000
 58004189
 67f10907
-20200170
+20200169
 58008312
 67f10907
-20200165
-6fe0cc03
+2020015e
+6fe0cbf8
 da600100
 9a60fe00
 20600000
-2020019e
-20400181
+20200197
+2040017a
 20202563
-6fe0cc04
+6fe0cbf9
 207a0000
-6fe0cc05
+6fe0cbfa
 247a0000
-6848cc04
-6fe0cc03
+6848cbf9
+6fe0cbf8
 98467c00
-2441017a
+24410173
 98467e00
 1fe67c64
-20210193
-6fe0cc06
+2021018c
+6fe0cbfb
 1fe67c14
-24410191
-704c0501
+2441018a
+704bfa01
 20600000
-704c0701
+704bfc01
 2020431f
 6848817f
 6fe0804c
@@ -407,18 +400,18 @@
 9842fe00
 2feffe02
 58000000
-6848cc06
+6848cbfb
 7920fe00
 98408400
-6048cc06
+6048cbfb
 20600000
 6fe08005
 1fe0fe01
 67e08005
-243681a5
-6fe0cc03
+2436819e
+6fe0cbf8
 1fe0fe01
-67e0cc03
+67e0cbf8
 6fe08168
 c3818000
 79207e03
@@ -462,27 +455,27 @@
 793f8030
 20202ae3
 efe10006
-c00201d2
+c00201cb
 202028eb
 efe18006
 67e1c397
-c00501d7
-c00901e6
+c00501d0
+c00901df
 20202b96
 6fe44713
 c31dad19
 20402dc7
 68494398
 6fe0c321
-c28181e1
+c28181da
 6fe14398
 c0182e03
 68494398
 20202d1d
 6fe14332
 98467c00
-242281dd
-243401dd
+242281d6
+243401d6
 20202d46
 18c22200
 6fe14335
@@ -502,13 +495,13 @@
 20402a28
 247a0000
 6fe0c78f
-c07f8200
+c07f81f9
 6fe0c843
 1fe17e03
 c1818000
-6fe0cc05
+6fe0cbfa
 207a0000
-6fe0cc07
+6fe0cbfc
 247a0000
 6fe0c956
 205a5a71
@@ -521,7 +514,7 @@
 20405ab2
 24740000
 20405abc
-204004d4
+204004c2
 20205b37
 18467cff
 20628000
@@ -532,39 +525,40 @@
 20206ebd
 18467cff
 20628000
-6048cb29
+6048cb1d
 20406ee6
-2020821a
-2020021f
-20400228
-20400223
-2040022c
-6848cb29
-20206f0f
-6848cb29
+20208217
+6848cb1d
 20406f0f
-20400226
-20200228
-d9000006
-20406ebd
-20200240
+6848cb1d
 d9000003
-20200224
+20206ebd
+704b1e01
+6848cb1d
+20406f0f
+6848cb1d
+d9000006
+20206ebd
 58000010
 67f08141
 37d98200
 20600000
 58000080
-67f08141
-37d98200
-2020022a
+2020021e
+20400492
+704b1e00
+2020550d
 6fe143e9
 20407d79
 6fe240ad
 9840fe00
 67e240ad
-20400237
+20400231
+2040022e
 20202425
+6fe0cb1e
+203a021d
+20200221
 600440e7
 d8c08070
 d8a040cc
@@ -581,12 +575,12 @@
 efe08011
 e8408013
 98467c00
-2022824a
+20228244
 e7e08013
 37d98200
 1a20a201
 1a60a601
-c2000244
+c200023e
 1a420400
 20600000
 20406b3a
@@ -595,7 +589,7 @@
 6fe145e0
 d84001f8
 98417e00
-203a025a
+203a0254
 6fe145e0
 1fe0fe01
 67e145e0
@@ -606,26 +600,29 @@
 2437b586
 2040366e
 6fe0c57d
-203a0269
+203a026b
 6fe245cc
 684a458f
 98467c00
-20228266
+20228260
 2020356e
 6fe44713
 c2983291
 20203549
-6fe2455f
-207a0000
-20200261
 2040543b
-2040026f
+20400266
 2020544c
-58004a29
+58004a1d
 67e1433f
 58000020
 67e14341
 20600000
+6fe245e4
+684a458f
+2022825b
+6fe2455f
+207a0000
+2020025b
 6fe0c437
 247a0000
 6fe144e9
@@ -634,15 +631,15 @@
 204035b4
 6048c624
 6fe0c629
-c513027e
+c513027b
 6fe0c62c
 98467c00
-24210298
+24210295
 6fe0c626
 1fe67c02
-24210286
+24210283
 6fe0c626
-c0000299
+c0000296
 20600000
 6fe0c626
 6848c627
@@ -651,7 +648,7 @@
 70462600
 6848c624
 6fe0c628
-c513028f
+c513028c
 6fe0c62b
 98467c00
 24610000
@@ -659,16 +656,16 @@
 c0003715
 1fe0ffff
 67e0c625
-c00102a1
+c001029e
 c000b70b
 20203715
 70462600
 6fe0c625
-c001829f
+c001829c
 1fe0fe01
 67e0c625
 c000b70b
-c00102a1
+c001029e
 70414105
 20600000
 70414103
@@ -677,34 +674,38 @@
 67e145f8
 5800622b
 67e145fa
-580002b1
+580002b2
 67e143e9
 202053f3
+2435a002
+37d98200
+37d98200
 20800000
 205582ad
 20202003
+2040021d
 6848c64a
 20406edd
 6848c64b
 20206edd
 20600000
-20400464
+20400465
 6fe44713
 c289dd60
 c2895d6e
-c28a02b8
+c28a02b9
 20600000
-204002c3
+204002c4
 20405e43
 20405db4
-204002d7
-204002c0
-204002c6
-204002df
+204002d8
+204002c1
+204002c7
+204002e0
 20205daa
 6fe44713
 c4150000
-204004df
+204004cd
 6fe0c666
 67e0ca06
 20600000
@@ -714,7 +715,7 @@
 6fe1468e
 d840aa55
 98467c00
-2022834c
+2022834d
 6049468e
 20405c9c
 6fe0c9a1
@@ -727,9 +728,9 @@
 20600000
 6fe0c666
 1fe67c00
-202282d4
+202282d5
 1fe67c04
-202282dd
+202282de
 20610000
 70466600
 20600000
@@ -739,47 +740,47 @@
 1a422600
 20405e3d
 6fe149e0
-203a02ed
+203a02ee
 67e149de
 1a60a602
 6fe14a00
 9a667c00
-242102ed
+242102ee
 1a622400
-202002e3
+202002e4
 6fe149de
 67e14695
 20600000
 6fe44713
 c289dcb1
 c2895cb9
-c28a02f5
+c28a02f6
 20600000
-204002f8
-204002fd
+204002f9
+204002fe
 20205cc1
 6fe0c666
 c1000000
-c0008324
-c0010338
+c0008325
+c0010339
 20600000
 6a4149e2
 1a422600
 20405dc0
 6fe0c9a1
-203a0309
+203a030a
 67e0c9a0
 1a60a601
 6fe149e4
 9a667c00
 24610000
 1a622400
-202002ff
+20200300
 6fe0c9a0
 1fe17ef0
-203a0313
+203a0314
 6fe0c666
-20400321
+20400322
 67e0c9a2
 df200001
 1a622400
@@ -787,7 +788,7 @@
 20206b45
 6848c9a0
 6fe0c666
-20400321
+20400322
 98467c00
 20628000
 1ff27e00
@@ -796,9 +797,9 @@
 1a627e00
 684949e2
 98467c00
-2022830f
+20228310
 1a60a7ff
-2020030f
+20200310
 c1800000
 1fe0fe04
 20600000
@@ -806,14 +807,14 @@
 1a422600
 20405df3
 6fe349b5
-203a0330
+203a0331
 67e349af
 1a60a606
 6fe149f0
 9a667c00
 24610000
 1a622400
-20200326
+20200327
 6fe349af
 684b466e
 98467c00
@@ -826,14 +827,14 @@
 1a422600
 20405e17
 6fe349cd
-203a0344
+203a0345
 67e349c7
 1a60a606
 6fe149f8
 9a667c00
 24610000
 1a622400
-2020033a
+2020033b
 6fe349c7
 684b467b
 98467c00
@@ -842,21 +843,21 @@
 da20467b
 1a622400
 20206b45
-20400385
-2040039d
-20400350
+20400386
+2040039e
+20400351
 20205c90
 6fe44713
 c4078000
 6fe0c690
 c0005c94
-c0030356
+c0030357
 20600000
 70469000
 20600000
 6fe44713
 c289dcb5
-c28a035c
+c28a035d
 20600000
 6fe44713
 c4078000
@@ -864,19 +865,19 @@
 1a422600
 20405e51
 6fe0c9d4
-203a036a
+203a036b
 67e0c9d3
 1a60a601
 6fe149fc
 9a667c00
 24610000
 1a622400
-20200360
+20200361
 6fe0c9d3
 1fe17ef0
-203a0374
+203a0375
 6fe0c690
-20400382
+20400383
 67e0c9d5
 df200001
 1a622400
@@ -884,7 +885,7 @@
 20206b45
 6848c9d3
 6fe0c690
-20400382
+20400383
 98467c00
 20628000
 1ff27e00
@@ -893,18 +894,18 @@
 1a627e00
 684949fa
 98467c00
-20228370
+20228371
 1a60a7ff
-20200370
+20200371
 c1800000
 1fe0fe06
 20600000
 6fe44713
-c29f038c
+c29f038d
 6fe0c666
 c1000000
-c000838c
-c0010393
+c000838d
+c0010394
 20600000
 6fe3466e
 684b46e6
@@ -921,15 +922,15 @@
 1fe0ff00
 67e3466e
 20600000
-2040039d
+2040039e
 20205a9c
 6fe44713
 c30a5c6f
-c29f03a5
+c29f03a6
 6fe0c666
 c1000000
-c00083a5
-c00103aa
+c00083a6
+c00103ab
 20600000
 6fe34668
 67e34116
@@ -947,11 +948,11 @@
 d8e00002
 20405f04
 20405c4a
-204003b7
+204003b8
 20205ca3
 6fe0c666
-c00083bb
-c00103c0
+c00083bc
+c00103c1
 20600000
 6fe30178
 67e34668
@@ -963,7 +964,7 @@
 6fe342db
 67e3467b
 20600000
-204003db
+204003dc
 2040614d
 2040553d
 20406110
@@ -981,7 +982,7 @@
 20405bee
 20405be4
 20405bfb
-204003de
+204003df
 204056b6
 20405c0e
 20205c05
@@ -989,7 +990,7 @@
 da405aef
 202042e0
 da60477e
-da4003e1
+da4003e2
 202042e0
 6fe0c96b
 67e0c0c0
@@ -998,25 +999,25 @@
 204059ed
 20205c1b
 1a627e00
-c02003fc
-c00a8401
-c01903f3
-c01e041f
-c01c8430
-c01d0433
-c00a03f0
+c02003fd
+c00a8402
+c01903f4
+c01e0420
+c01c8431
+c01d0434
+c00a03f1
 20205ac3
 58000000
-67e24c04
+67e24bf9
 20205ad0
 6fe0c795
-c00083f7
+c00083f8
 70484414
-202003f9
+202003fa
 20405aef
 70484405
-6fe0cc03
-67e0cc04
+6fe0cbf8
+67e0cbf9
 20205af6
 6fe0ca04
 247a0000
@@ -1031,17 +1032,17 @@
 70479400
 d8400006
 6fe44713
-c28d840b
+c28d840c
 d8400007
 604942d3
 604942d5
 7047c200
 70495600
 204029cb
-20200411
+20200412
 20405b7b
 6fe143ef
-c2838416
+c2838417
 c28042fc
 20205c1a
 6fe143ef
@@ -1050,7 +1051,7 @@
 1fe17e03
 20405b21
 c081d4a9
-6fe0cc07
+6fe0cbfc
 243a54a9
 202054cd
 6fe2458f
@@ -1068,21 +1069,21 @@
 98467c00
 20628000
 20406016
-20400467
+20400468
 20206042
 20406016
-20400467
+20400468
 20206084
 20406016
-20400467
+20400468
 6fe0c87a
 c1008000
 6fe0c600
 243a5ff2
 6fe0c5e2
-c002043e
+c002043f
 c000e05f
-c0018445
+c0018446
 20206055
 6fe44713
 c31f6059
@@ -1098,24 +1099,24 @@
 c2896059
 20206034
 6fe44713
-c29f0450
+c29f0451
 6fe0c666
-c0000457
+c0000458
 20205491
 204054ac
-20340453
+20340454
 2020602f
 6fe0c666
 c0006067
 20405aa8
-20200442
+20200443
 6fe44713
 c308e02a
 20406195
 204054ac
 20346067
 6fe44713
-c298045f
+c2980460
 20206023
 70466600
 6fe14721
@@ -1130,26 +1131,26 @@
 20600000
 2040620e
 204078aa
-2040046e
+2040046f
 20205e61
 6fe0c649
 c17f8000
 da200000
 70497705
 6848c649
-20400475
+20400476
 202056c1
 6fe44713
 c295d6de
 6fe0c974
 1fe22600
 6fe0c654
-c07f847c
+c07f847d
 202056ce
 6fe0c649
 20405946
 6848c649
-20200480
+20200481
 1a627e00
 67e0c978
 1fe3fe00
@@ -1164,7 +1165,7 @@
 204036b4
 24740000
 204036be
-20400491
+20400492
 6fe1c608
 20203622
 58000000
@@ -1183,7 +1184,7 @@
 204059ed
 2020622b
 20405a92
-20400491
+20400492
 204056a9
 6848c654
 20406ef7
@@ -1202,37 +1203,18 @@
 20406f0f
 6848c64b
 20406f0f
-6848c65b
-204055b5
-204004b8
 202054e5
-6fe1c73c
-67e18670
-df200018
-d8400000
-6fe18670
-2feffe00
-204084c5
-6fe18670
-1fe37e00
-67e18670
-18408401
-c20004bc
-20600000
-18467cff
-20628000
-20206f0b
 c6930000
 20405601
 24740000
 6fe0c77c
 70477c00
-245a04dd
+245a04cb
 6fe44713
-c30b04d2
+c30b04c0
 6fe0c96c
 243a60b6
-204004d4
+204004c2
 202060a2
 6fe0c659
 c1ff8000
@@ -1243,8 +1225,8 @@
 58000000
 67e24847
 20205a73
-20400491
-20200240
+20400492
+2020023a
 6fe44713
 c4150000
 c31fdeb9
@@ -1259,11 +1241,11 @@
 20405958
 c018595f
 c018d9c6
-c02c04ef
+c02c04dd
 20205952
 204059e7
 6fe0c85a
-c02c84f3
+c02c84e1
 2020595f
 7049570b
 da604a0b
@@ -1271,11 +1253,11 @@
 6fe0c420
 c1800000
 6fe0c957
-c00584fb
+c00584e9
 202059f8
 20405a6d
 6fe0c659
-c07f8501
+c07f84ef
 6848c659
 20406ee6
 24608000
@@ -1286,5 +1268,63 @@
 78547c00
 58000000
 67e34847
-204004f6
-20205606
+204004e4
+58000089
+204069e4
+20405747
+20405612
+20405617
+204004fe
+2020560c
+2040584c
+6fe0c987
+243a5860
+6fe0c982
+243a585f
+20405888
+20400506
+202057ad
+70497900
+70497a00
+70497b00
+1fe22400
+6848c644
+6fe0c647
+98467c00
+20228518
+6fe0c648
+98467c00
+2022851e
+6848c645
+6fe0c647
+98467c00
+20228527
+204057fb
+2040052c
+202057e5
+6848c645
+6fe0c648
+98467c00
+2022d7d6
+204057ef
+20200528
+6848c645
+6fe0c647
+98467c00
+20228524
+2040052e
+20200516
+2040052e
+2040052a
+202057e5
+2040052a
+20400530
+202057e5
+1a417e12
+202057f3
+1a417e0a
+202057f6
+1a417e11
+202057f9
+1a417e12
+202057ff
Index: output/sched.rom
===================================================================
--- /1121s/branch/mouse/ZXS_Project/1m/mouse_public_24g_first_bt_WK303_double_dpi/output/sched.rom	(revision 1548)
+++ /1121s/branch/mouse/ZXS_Project/1m/mouse_public_24g_first_bt_WK303_double_dpi/output/sched.rom	(working copy)
@@ -13,7 +13,7 @@
 00   #mem_patch0b
 00   #mem_patch0c
 73   #mem_patch0d
-88   #mem_patch0e
+18   #mem_patch0e
 84   #mem_patch0f
 f2   #mem_patch10
 7d   #mem_patch11
Index: program/patch.prog
===================================================================
--- /1121s/branch/mouse/ZXS_Project/1m/mouse_public_24g_first_bt_WK303_double_dpi/program/patch.prog	(revision 1548)
+++ /1121s/branch/mouse/ZXS_Project/1m/mouse_public_24g_first_bt_WK303_double_dpi/program/patch.prog	(working copy)
@@ -2,7 +2,6 @@
 //define AUTO_TEST
 //define PWM_SET
 //define SELECT_ANGLE
-//define UART_LOG
 define POWER_CTRL
 //define MORE_POWER_CTRL
 //define ADC_1121SB
@@ -12,7 +11,6 @@
 	bbit1 8,pf_patch_ext
 	beq patch00_0,p_soft_reset
 	beq patch00_2,p_main_loop
-//	beq patch01_7,p_rx_dcoc
 	beq patch02_0,p_shutdown_radio
 	beq patch02_1,p_set_sync_on
 	beq patch02_4,p_set_lemode
@@ -20,8 +18,6 @@
 	beq patch03_0,p_txon
 	beq patch03_1,p_set_tx_power
 	beq patch03_2,p_initialize_radio_cont
-//	beq patch03_3,p_rfpll_aac_ghpc
-//	beq patch03_5,p_dpll_ring_ibias_calc
 	beq patch04_5,p_lpm_sleep
 	beq patch0d_0,p_mouse_cb_fuction
 	beq patch0d_1,p_mouse_load_device_info_check
@@ -31,7 +27,7 @@
 endif	
 	beq patch0d_6,p_mouse_start_work
 	beq patch0e_3,p_mouse_setgpio_hibernate
-	beq patch0e_7,p_mouse_adc_read_start
+	beq patch0e_4,p_mouse_lpm_before_common
 	beq patch0f_2,p_mouse_motion
 	beq patch0f_7,p_mouse_3io6key_check
 	beq patch10_1,p_mouse_init_sensor
@@ -41,16 +37,16 @@
 	beq patch10_7,p_mouse_bb_event_timer
 	beq patch11_0,p_mouse_start_discovery
 	beq patch11_2,p_mouse_store_remote_bdaddr
+	beq patch11_3,p_mouse_app_initflag_check
 	beq patch11_4,p_mouse_store_device_info
 	beq patch11_5,p_mouse_store_dpi_info_check
 	beq patch11_6,p_mouse_idle
-	beq patch11_3,p_mouse_app_initflag_check
 	beq patch12_0,p_mouse_check_select_device_by_switch
 	beq patch12_5,p_mouse_24g_hibernate_set
 	beq patch12_6,p_mouse_24g_package_data
-	beq patch1a_5,p_gpio_set_wake_by_current_state
-	beq patch1a_6,p_gpio_set_wake
 	beq patch18_5,p_otp_read_data
+	beq patch1a_5,p_gpio_set_wake_by_current_state	
+	beq patch1a_6,p_gpio_set_wake
 	beq patch1b_2,p_sadc_calibration
 ifdef ADC_1121SB
 	beq patch1b_3,p_adc_init_data
@@ -80,23 +76,6 @@
 
 /****************************************COMMON PATCH*****************************************/
 
-p_mouse_adc_read_start:
-	call enable_adc
-	call vdd_calculate_by_mode
-	div pdata,10
-	call get_div_result
-	store 2,mem_mouse_vdd_now_vol
-
-//	fetch 1,mem_adc_config_flag
-//	beq ADC_CONFIG_GPIO, mouse_adc_data_process
-//	fetcht 2,mem_mouse_vdd_now_vol	// BAT= 1.5V, R = 200k, a = a*1.8
-//	mul32 temp,8,pdata
-//	div pdata,10
-//	call get_div_result
-//	iadd temp,pdata
-//	store 2,mem_mouse_vdd_now_vol
-	branch mouse_adc_data_process
-
 ifdef SENSOR_ANGLE_ICE_SDIO
 p_mouse_sensor_set_angle:
 	fetch 1,mem_sensor_angle_default
@@ -204,7 +183,6 @@
 	call p_set_xtal_cap
 	jam SYSTEM_CLK_12M,mem_system_clk
 	branch sadc_calibration
-//	branch p_dpll_ring_ibias_calc
 	
 p_set_xtal_cap:
 	rtn wake
@@ -265,6 +243,10 @@
 	store 1,0x8138 
 	until null,lpo_edge
 
+p_set_otp_config_wake:
+	fetch 2,mem_otp_charge_pump_x
+	rtn blank
+	store 2,mem_otp_charge_pump
 p_set_otp_config2:
 	fetch 1,0x8acb
 	and pdata,0xf0,pdata
@@ -291,12 +273,6 @@
 	store 1,0x8a02
 	rtn
 
-p_set_otp_config_wake:
-	fetch 2,mem_otp_charge_pump_x
-	rtn blank
-	store 2,mem_otp_charge_pump
-	branch p_set_otp_config2
-
 p_rf_rx_enable:
 	call rf_debug_rx_gpio_high
 	call rf_rx_agc_set
@@ -481,9 +457,6 @@
 p_rfpll_aac_ghpc:
 	rtn wake
 	branch rfpll_aac_ghpc+1
-	
-//p_dpll_ring_ibias_calc:
-//	rtn
 
 p_sadc_calibration:
 	rtn wake
@@ -583,8 +556,6 @@
 p_le_check_retransmit_count:
 	fetcht 1,mem_le_arq
 	fetch 1,mem_le_rxbuf_data_header
-//	isolate1 md,pdata
-//	setflag true,mark_ble_rx_md,mark
 	rshift pdata,pdata
 	ixor temp,pdata
 	isolate1 nesn,pdata
@@ -610,12 +581,9 @@
 	store 2,mem_le_superto
 	setarg 0
 	store 4,mem_le_transmit_window	
-//	fetch 1,mem_le_conn_rcv_new
-//	store 1,mem_le_conn_first_rcv
 	rtn
 p_le_rx_dec:
 	call le_check_retransmit	
-//	bmark1 mark_old_packet,le_retransmit_end_of_packet
 	fetchr rega, 1,mem_le_rxbuf_data_length
 	increase -4,rega
 	nbranch le_crc_fail_consecutive,positive
@@ -749,44 +717,38 @@
 	storet 1,mem_mouse_wheel_temp_gpio
 	call gpio_get_bit
 	branch p_gpio_set_qdec_mode,true
-	branch p_gpio_set_low_wake_disable_qdec
-
-p_gpio_set_qdec_mode:
-	call p_mouse_qdec_disable
-	call p_mouse_qdec_lpm_cfg
-	call p_mouse_qdec_enable
-	fetcht 1,mem_mouse_wheel_temp_gpio
-	branch gpio_set_high_impedance
-
 p_gpio_set_low_wake_disable_qdec:
 	fetcht 1,mem_mouse_wheel_temp_gpio
 	call gpio_set_high_impedance
-	call p_gpio_set_low_wake
-	branch p_mouse_qdec_disable	
-
-p_mouse_qdec_lpm_cfg:
-	arg 6,debug
-p_gpio_wake_cfg_set:
-	call gpio_set_wake_high
-	branch p_lpm_write_gpio_wakeup
-
+	fetcht 1,mem_mouse_wheel_temp_gpio
 p_gpio_set_low_wake:
 	arg 3,debug
-	branch p_gpio_wake_cfg_set
+	branch gpio_set_wake_high
+	
+p_gpio_set_qdec_mode:
+	jam 1,mem_mouse_qdec_set_flag
+	fetcht 1,mem_mouse_wheel_temp_gpio
+	call gpio_set_high_impedance
+	fetcht 1,mem_mouse_wheel_temp_gpio
+p_mouse_qdec_lpm_cfg:
+	arg 6,debug
+	branch gpio_set_wake_high
 
-p_mouse_qdec_disable:
-	setarg 0x10			//key_delay: 0x10	pu_delay: 0x00		interval: 0x00
+p_mouse_puchk_disable:
+	setarg 0x10			//bit0-1:key_delay	bit2-3:pu_delay		bit4-6:interval	bit7:enable 
+p_mouse_puchk_set:
 	store 1,core_puwakeup
-p_mouse_lpo_wait:
 	until null,lpo_edge
 	rtn
 
-p_mouse_qdec_enable:
-	setarg 0x80			//key_delay: 0x10	pu_delay: 0x00		interval: 0x00
-	store 1,core_puwakeup
-//	until null,lpo_edge
-	until null,lpo_edge		//wait jitter disappear		//acturl 2lpo ok
-	branch p_mouse_lpo_wait
+p_mouse_puchk_enable:
+	setarg 0x80			//bit0-1:key_delay	bit2-3:pu_delay		bit4-6:interval	bit7:enable 
+	branch p_mouse_puchk_set
+
+p_mouse_lpm_before_common:
+	call p_clear_wake
+	jam 0,mem_mouse_qdec_set_flag
+	branch mouse_lpm_before_common+1
 	
 p_lpm_sleep:
 	//call xtal_fast_wake
@@ -797,8 +759,14 @@
 	iadd temp,pdata
 	store 4,mem_sleep_counter_all
 	call p_lpm_save_context
+	call p_mouse_puchk_set_check
 	branch lpm_sleep_skip_cb_function+4
 
+p_mouse_puchk_set_check:
+	fetch 1,mem_mouse_qdec_set_flag
+	branch p_mouse_puchk_disable,blank
+	branch p_mouse_puchk_enable
+
 p_lpm_save_context:
 	storer mark,8,mem_saved_mark
 	arg core_gpio_conf,contr
@@ -864,11 +832,6 @@
 	bbit1 MOUSE_ENABLE_AUTO_24G_PARING,g24_pair_start
 	branch g24_reconn_receiver_addr
 
-p_recv_addr_zero_skip:
-	fetch 4,mem_24g_rxpayload+2
-	rtn blank
-	branch p_g24_reconn_dispatch_next_2
-
 p_mouse_param_init:
 	call mouse_param_common_init
 	call p_mouse_le_buff_modify
@@ -881,6 +844,14 @@
 	store 2,mem_ble_l2cap_tx_buff_size_ptr
 	rtn
 
+p_recv_addr_zero_skip:
+	fetch 4,mem_24g_fast_conn_addr
+	fetcht 4,mem_24g_addr
+	branch p_g24_reconn_dispatch_next_2,zero
+	fetch 4,mem_24g_rxpayload+2
+	rtn blank
+	branch p_g24_reconn_dispatch_next_2
+
 ifdef POWER_CTRL
 p_power_ctrl_start:
 	fetch 1,mem_power_ctrl_disable
@@ -971,11 +942,15 @@
 	branch mouse_cb_fuction+7
 
 p_soft_reset:
+	nbranch soft_reset+1,wake
+	until null,lpo_edge
+	until null,lpo_edge
 	clear_stack
 	call p_mouse_wheel_init_set,wake
 	branch soft_reset+2
 
 p_mouse_wheel_init_set:
+	call p_mouse_puchk_disable
 	fetcht 1,mem_whee_a_data_gpio		//reinit gpio pu after disable wheel wakeup
 	call gpio_config_input
 	fetcht 1,mem_whee_b_data_gpio
@@ -1043,9 +1018,6 @@
 	call p_mouse_set_sensor_gpio_sleep
 endif
 	call p_mouse_store_normal_tx_power
-ifdef UART_LOG
-	call p_app_uarta_init	
-endif
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
 	bbit1 MOUSE_ENABLE_EEPROM,mouse_load_eeprom_info_check
 	bbit1 MOUSE_ENABLE_FLASH,mouse_load_flash_info_check
@@ -1057,9 +1029,8 @@
 	call mouse_read_otp_device_flag
 	
 	call p_mouse_device_flag_check		//reinit to load info
-
 	call p_mouse_select_device_by_switch_check
-
+	
 	call p_mouse_read_otp_device_info
 	call p_mouse_read_otp_le_addr_increase_count_info
 	branch mouse_otp_load_app_initflag
@@ -1174,7 +1145,7 @@
 	call p_mouse_device_flag_otp_store_judge			// add device_flag check
 	
 	store 1,mem_device_flag_value
-p_mouse_devoce_flag_store_end:	
+p_mouse_device_flag_store_end:	
 	arg 1,loopcnt
 	copy regc,regb
 	arg mem_device_flag_value,rega
@@ -1193,10 +1164,10 @@
 	copy regc,pdata
 	fetcht 2,mem_otp_offset_device_flag
 	isub temp,null
-	branch p_mouse_devoce_flag_store_end,zero
+	branch p_mouse_device_flag_store_end,zero
 	
 	increase -1,regc
-	branch p_mouse_devoce_flag_store_end
+	branch p_mouse_device_flag_store_end
 
 p_mouse_device_flag_otp_store_judge:
 	rtnne MODE_24G_DEVICE
@@ -1744,11 +1715,11 @@
 	call gpio_set_high_impedance
 	fetcht 1,mem_whee_b_data_gpio
 	call gpio_set_high_impedance
-	fetcht 1,mem_mouse_reuse_2ice_gpio
-	call mouse_gpio_config_input_pu
-	call p_mouse_gpio_set_high_impedance
+//	fetcht 1,mem_mouse_reuse_2ice_gpio
+//	call mouse_gpio_config_input_pu
+//	call p_mouse_gpio_set_high_impedance
 	branch mouse_setgpio_hibernate_next
-
+/*
 p_mouse_gpio_set_high_impedance:
 	fetch 3,mem_mouse_set_high_impedance_bit_set
 	store 3,mem_pdatatemp
@@ -1769,7 +1740,7 @@
 	sub temp,UI_BUTTON_GPIO_DISABLE,null
 	rtn zero
 	branch gpio_set_analog
-
+*/
 p_mouse_24g_package_data:
 	rtnmark0 mark_24g
 	call mouse_motion
@@ -1815,33 +1786,6 @@
 	nbranch mouse_check_select_24g_device,true
 	branch mouse_select_btdevice
 
-ifdef PWM_SET
-
-/*
-core_clksel
-[7:6]pwm clock select
-	0:sysclk 
-	1:sysclk undivided
-	2:rc2M
-	3:lpo
-*/
-p_pwm_clk_set:
-	fetch 1,core_clksel
-	and pdata,0xc0,pdata
-	beq 0x40,pwm_24m_clk_set
-	beq 0x80,p_pwm_2m_clk_set
-	beq 0xc0,pwm_33k_clk_set
-	branch pwm_12m_clk_set
-p_pwm_2m_clk_set:
-	setarg 2000000
-	rtn
-
-p_pwm_out_set:
-	fetcht 3,mem_pdatatemp+2
-	call p_pwm_clk_set
-	branch pwm_out_set+2
-endif
-
 p_mouse_init_sensor:
 	call mouse_read_sensor_id
 	beq P32XX_ID1,mouse_init_p32xx_id2_judge
@@ -1927,13 +1871,104 @@
 p_mem_usb_data_square_cnt_set0:
 	jam 0,0X4FF0
 	branch p_ms_y_down+2
+
 else
 p_mouse_motion:
 	disable user
 	setarg 0
 	store 6,mem_mouse_x
 	call p_mouse_check_sensor_data
-	branch mouse_motion+5
+	setarg 0x0089
+	call twspi_write	
+	call mouse_setting_sensor_type
+	call mouse_zwheel
+	call mouse_t_zwheel
+	call p_mouse_key
+	branch mouse_motion+11
+
+p_mouse_key:
+	call mouse_check_firekey_gpio
+	fetch 1,mem_fire_key_flag
+	nbranch fire_key_press,blank
+	fetch 1,mem_fire_key_status
+	nbranch fire_key_process,blank
+	
+	call mouse_check_key_gpio
+	call p_mouse_ghost_key_check
+	branch mouse_key+7
+
+p_mouse_ghost_key_check:			//lbk_mfw
+	jam 0,mem_mouse_matrix_key_cow_count
+	jam 0,mem_mouse_matrix_key_row_count
+	jam 0,mem_mouse_ghost_flag
+	copy pdata,regb
+	fetcht 1,mem_lbutton_gpio
+	fetch 1,mem_bk_button_gpio
+	isub temp,null
+	branch p_mouse_matrix_ghost_key_L_BK,zero
+	fetch 1,mem_fw_button_gpio
+	isub temp,null
+	branch p_mouse_matrix_ghost_key_L_FW,zero
+	fetcht 1,mem_mbutton_gpio
+	fetch 1,mem_bk_button_gpio
+	isub temp,null
+	branch p_mouse_ghost_key_MBK_RFW,zero
+p_mouse_ghost_key_MFW_RBK:
+	call mouse_ghost_key_check_M_FW
+p_mouse_ghost_key_RBK:
+	call p_mouse_ghost_key_check_R_BK
+	branch mouse_ghost_key_check_next
+
+p_mouse_matrix_ghost_key_L_BK:
+	fetcht 1,mem_mbutton_gpio
+	fetch 1,mem_fw_button_gpio
+	isub temp,null
+	branch mouse_ghost_key_LBK_MFW,zero
+p_mouse_ghost_key_LBK_RFW:
+	call mouse_ghost_key_check_L_BK
+	branch p_mouse_ghost_key_RFW
+
+p_mouse_matrix_ghost_key_L_FW:
+	fetcht 1,mem_mbutton_gpio
+	fetch 1,mem_bk_button_gpio
+	isub temp,null
+	branch p_mouse_ghost_key_LFW_MBK,zero
+p_mouse_ghost_key_LFW_RBK:
+	call p_mouse_ghost_key_check_L_FW
+	branch p_mouse_ghost_key_RBK
+
+p_mouse_ghost_key_LFW_MBK:
+	call p_mouse_ghost_key_check_L_FW
+	call p_mouse_ghost_key_check_M_BK
+	branch mouse_ghost_key_check_next
+	
+p_mouse_ghost_key_MBK_RFW:
+	call p_mouse_ghost_key_check_M_BK
+p_mouse_ghost_key_RFW:
+	call p_mouse_ghost_key_check_R_FW
+	branch mouse_ghost_key_check_next
+
+p_mouse_ghost_key_check_M_BK:
+	and regb,MOUSE_M_BK_BUTTON,pdata
+	branch mouse_ghost_key_check_M_BK+1
+//	beq MOUSE_M_BK_BUTTON,mouse_matrix_cow_more_than_one_key
+//	rtn
+p_mouse_ghost_key_check_R_BK:
+	and regb,MOUSE_R_BK_BUTTON,pdata
+	branch mouse_ghost_key_check_R_BK+1
+//	beq MOUSE_R_BK_BUTTON,mouse_matrix_cow_more_than_one_key
+//	rtn
+p_mouse_ghost_key_check_L_FW:
+	and regb,MOUSE_L_FW_BUTTON,pdata
+	branch mouse_ghost_key_check_L_FW+1
+//	beq MOUSE_L_FW_BUTTON,mouse_matrix_cow_more_than_one_key
+//	rtn
+p_mouse_ghost_key_check_R_FW:
+	and regb,MOUSE_R_FW_BUTTON,pdata
+	branch mouse_ghost_key_check_R_FW+1
+//	beq MOUSE_R_FW_BUTTON,mouse_matrix_cow_more_than_one_key
+//	rtn	
+	
 endif
 
 ifdef ADC_1121SB
@@ -2153,7 +2188,32 @@
 	jam 0x00,0x8ac6
 	rtn
 
+
 endif
 
+ifdef PWM_SET
 
-	
+/*
+core_clksel
+[7:6]pwm clock select
+	0:sysclk 
+	1:sysclk undivided
+	2:rc2M
+	3:lpo
+*/
+p_pwm_clk_set:
+	fetch 1,core_clksel
+	and pdata,0xc0,pdata
+	beq 0x40,pwm_24m_clk_set
+	beq 0x80,p_pwm_2m_clk_set
+	beq 0xc0,pwm_33k_clk_set
+	branch pwm_12m_clk_set
+p_pwm_2m_clk_set:
+	setarg 2000000
+	rtn
+
+p_pwm_out_set:
+	fetcht 3,mem_pdatatemp+2
+	call p_pwm_clk_set
+	branch pwm_out_set+2
+endif
\ No newline at end of file
