Index: format/app_mouse.format
===================================================================
--- /1121s/branch/mouse/YJX_Project/Only_24g_mouse_public_yjx_new/format/app_mouse.format	(revision 5656)
+++ /1121s/branch/mouse/YJX_Project/Only_24g_mouse_public_yjx_new/format/app_mouse.format	(working copy)
@@ -445,6 +445,13 @@
 1 mem_sensor_3056GX_dpi_1
 1 mem_sensor_3056GX_dpi_2
 1 mem_sensor_3056GX_dpi_3
+
+22 mem_sensor_YS8299_init
+0 mem_sensor_YS8299_dpi
+1 mem_YS8299_dpi_0
+1 mem_YS8299_dpi_1
+1 mem_YS8299_dpi_2
+
 )
 
 (
@@ -759,7 +766,8 @@
 0X0b KA8G2
 0X0c S201X
 0x0d SG8670
-0x0E P3065GX
+0x0e P3065GX
+0x0f YS8299
 
 
 //SENSOR REG
Index: output/memmap.format
===================================================================
--- /1121s/branch/mouse/YJX_Project/Only_24g_mouse_public_yjx_new/output/memmap.format	(revision 5656)
+++ /1121s/branch/mouse/YJX_Project/Only_24g_mouse_public_yjx_new/output/memmap.format	(working copy)
@@ -1981,90 +1981,95 @@
 0x4b7b mem_sensor_3056GX_dpi_1
 0x4b7c mem_sensor_3056GX_dpi_2
 0x4b7d mem_sensor_3056GX_dpi_3
-0x4b7e mem_24g_txpayload_buf
-0x4b8e mem_release_data_from_receiver_enable
-0x4b8f mem_release_data_from_transmiter_enable
-0x4b90 mem_flippen_key0_gpio
-0x4b91 mem_flippen_key1_gpio
-0x4b92 mem_flippen_key2_gpio
-0x4b93 mem_flippen_key3_gpio
-0x4b94 mem_flippen_key4_gpio
-0x4b95 mem_flippen_key5_gpio
-0x4b96 mem_flippen_key6_gpio
-0x4b97 mem_flippen_key7_gpio
-0x4b98 mem_flippen_key0_press_status
-0x4b99 mem_flippen_key1_press_status
-0x4b9a mem_flippen_key2_press_status
-0x4b9b mem_flippen_key3_press_status
-0x4b9c mem_flippen_key4_press_status
-0x4b9d mem_flippen_key5_press_status
-0x4b9e mem_flippen_key6_press_status
-0x4b9f mem_flippen_key7_press_status
-0x4ba0 mem_key_press_data
-0x4ba0 mem_key_pageup_data
-0x4ba9 mem_key_pagedown_data
-0x4bb2 mem_key_shift_f5_data
-0x4bbb mem_key_esc_data
-0x4bc4 mem_key_b_data
-0x4bcd mem_key_tab
-0x4bd6 mem_key_enter
-0x4bdf mem_key_alt_tab
-0x4be8 mem_key_alt_f4
-0x4bf1 mem_key_play_pause
-0x4bfa mem_key_vol_up
-0x4c03 mem_key_vol_down
-0x4c0c mem_standard_key_release
-0x4c15 mem_system_ctrl_key_release
-0x4c1e mem_media_key_release
-0x4c27 mem_key0_long_press_flag
-0x4c28 mem_key1_long_press_flag
-0x4c29 mem_key2_long_press_flag
-0x4c2a mem_key3_long_press_flag
-0x4c2b mem_key4_long_press_flag
-0x4c2c mem_key0_long_press_event
-0x4c2d mem_key1_long_press_event
-0x4c2e mem_key2_long_press_event
-0x4c2f mem_key3_long_press_event
-0x4c30 mem_key4_long_press_event
-0x4c31 mem_key0_short_press_flag
-0x4c32 mem_key1_short_press_flag
-0x4c33 mem_key2_short_press_flag
-0x4c34 mem_key3_short_press_flag
-0x4c35 mem_key4_short_press_flag
-0x4c36 mem_key0_press_timer_count
-0x4c37 mem_key1_press_timer_count
-0x4c38 mem_key2_press_timer_count
-0x4c39 mem_key3_press_timer_count
-0x4c3a mem_key4_press_timer_count
-0x4c3b mem_combination_key_down_flag
-0x4c3c mem_combination_key_longpress_flag
-0x4c3d mem_key_disable_timer
-0x4c3e mem_24g_calculate_package_id_disable
-0x4c3f mem_24g_package_id_abandon_flag
-0x4c40 mem_24g_package_id
-0x4c41 mem_key_state
-0x4c42 mem_key_press_state
-0x4c43 mem_poweron_first_blank_data_enable
-0x4c44 mem_flippen_no_data_timeout
-0x4c46 mem_flippen_start_pair_no_data_timeout
-0x4c48 mem_key_longpress_timer_init
-0x4c4a mem_key_longpress_timer
-0x4c4c mem_low_voltage_led_blink_flag
-0x4c4d mem_low_voltage_led_blink_start_timer
-0x4c4e mem_poweron_led_blink_flag
-0x4c4f mem_24g_pair_enable_flag
-0x4c50 mem_24g_ch_work
-0x4c51 mem_24g_pair_key_down_flag
-0x4c52 mem_24g_pairing_stop_flag
-0x4c53 mem_longpress_24g_enter_hibernate_flag
-0x4c54 mem_g24_connected_state
-0x4c55 mem_g24_pairing_stop_flag
-0x4c56 mem_send_package_before_check
-0x4c57 mem_le_conn_rcv_new
-0x4c58 mem_le_conn_first_rcv
-0x4c59 mem_le_check_retransmit_flag
-0x4c5a mem_le_retransmit_cnt
-0x4c5b mem_le_check_retransmit_discon_flag
+0x4b7e mem_sensor_YS8299_init
+0x4b94 mem_sensor_YS8299_dpi
+0x4b94 mem_YS8299_dpi_0
+0x4b95 mem_YS8299_dpi_1
+0x4b96 mem_YS8299_dpi_2
+0x4b97 mem_24g_txpayload_buf
+0x4ba7 mem_release_data_from_receiver_enable
+0x4ba8 mem_release_data_from_transmiter_enable
+0x4ba9 mem_flippen_key0_gpio
+0x4baa mem_flippen_key1_gpio
+0x4bab mem_flippen_key2_gpio
+0x4bac mem_flippen_key3_gpio
+0x4bad mem_flippen_key4_gpio
+0x4bae mem_flippen_key5_gpio
+0x4baf mem_flippen_key6_gpio
+0x4bb0 mem_flippen_key7_gpio
+0x4bb1 mem_flippen_key0_press_status
+0x4bb2 mem_flippen_key1_press_status
+0x4bb3 mem_flippen_key2_press_status
+0x4bb4 mem_flippen_key3_press_status
+0x4bb5 mem_flippen_key4_press_status
+0x4bb6 mem_flippen_key5_press_status
+0x4bb7 mem_flippen_key6_press_status
+0x4bb8 mem_flippen_key7_press_status
+0x4bb9 mem_key_press_data
+0x4bb9 mem_key_pageup_data
+0x4bc2 mem_key_pagedown_data
+0x4bcb mem_key_shift_f5_data
+0x4bd4 mem_key_esc_data
+0x4bdd mem_key_b_data
+0x4be6 mem_key_tab
+0x4bef mem_key_enter
+0x4bf8 mem_key_alt_tab
+0x4c01 mem_key_alt_f4
+0x4c0a mem_key_play_pause
+0x4c13 mem_key_vol_up
+0x4c1c mem_key_vol_down
+0x4c25 mem_standard_key_release
+0x4c2e mem_system_ctrl_key_release
+0x4c37 mem_media_key_release
+0x4c40 mem_key0_long_press_flag
+0x4c41 mem_key1_long_press_flag
+0x4c42 mem_key2_long_press_flag
+0x4c43 mem_key3_long_press_flag
+0x4c44 mem_key4_long_press_flag
+0x4c45 mem_key0_long_press_event
+0x4c46 mem_key1_long_press_event
+0x4c47 mem_key2_long_press_event
+0x4c48 mem_key3_long_press_event
+0x4c49 mem_key4_long_press_event
+0x4c4a mem_key0_short_press_flag
+0x4c4b mem_key1_short_press_flag
+0x4c4c mem_key2_short_press_flag
+0x4c4d mem_key3_short_press_flag
+0x4c4e mem_key4_short_press_flag
+0x4c4f mem_key0_press_timer_count
+0x4c50 mem_key1_press_timer_count
+0x4c51 mem_key2_press_timer_count
+0x4c52 mem_key3_press_timer_count
+0x4c53 mem_key4_press_timer_count
+0x4c54 mem_combination_key_down_flag
+0x4c55 mem_combination_key_longpress_flag
+0x4c56 mem_key_disable_timer
+0x4c57 mem_24g_calculate_package_id_disable
+0x4c58 mem_24g_package_id_abandon_flag
+0x4c59 mem_24g_package_id
+0x4c5a mem_key_state
+0x4c5b mem_key_press_state
+0x4c5c mem_poweron_first_blank_data_enable
+0x4c5d mem_flippen_no_data_timeout
+0x4c5f mem_flippen_start_pair_no_data_timeout
+0x4c61 mem_key_longpress_timer_init
+0x4c63 mem_key_longpress_timer
+0x4c65 mem_low_voltage_led_blink_flag
+0x4c66 mem_low_voltage_led_blink_start_timer
+0x4c67 mem_poweron_led_blink_flag
+0x4c68 mem_24g_pair_enable_flag
+0x4c69 mem_24g_ch_work
+0x4c6a mem_24g_pair_key_down_flag
+0x4c6b mem_24g_pairing_stop_flag
+0x4c6c mem_longpress_24g_enter_hibernate_flag
+0x4c6d mem_g24_connected_state
+0x4c6e mem_g24_pairing_stop_flag
+0x4c6f mem_send_package_before_check
+0x4c70 mem_le_conn_rcv_new
+0x4c71 mem_le_conn_first_rcv
+0x4c72 mem_le_check_retransmit_flag
+0x4c73 mem_le_retransmit_cnt
+0x4c74 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/YJX_Project/Only_24g_mouse_public_yjx_new/output/otp.dat	(revision 5656)
+++ /1121s/branch/mouse/YJX_Project/Only_24g_mouse_public_yjx_new/output/otp.dat	(working copy)
@@ -27,7 +27,7 @@
 1e
 aa
 55
-80
+c0
 15
 4e
 06
@@ -120,19 +120,19 @@
 ca
 91
 6a
-df
+ef
 f6
 80
 fe
-83
+88
 0d
 c5
 8f
-35
+2a
 50
 ff
 9b
-49
+42
 6f
 4d
 dd
@@ -188,7 +188,7 @@
 59
 82
 fd
-61
+71
 c6
 12
 7e
@@ -200,7 +200,7 @@
 87
 91
 4e
-54
+64
 5d
 3a
 be
@@ -1468,7 +1468,7 @@
 c9
 44
 31
-f8
+df
 e5
 be
 93
@@ -1492,7 +1492,7 @@
 7d
 8d
 8f
-86
+af
 3d
 a7
 1f
@@ -1500,7 +1500,7 @@
 6d
 1e
 75
-52
+79
 96
 77
 c4
@@ -1508,11 +1508,11 @@
 ec
 f6
 7e
-9d
+b4
 dc
 27
 09
-5f
+78
 a8
 4e
 97
@@ -1536,7 +1536,7 @@
 43
 ef
 00
-b0
+99
 64
 0a
 b1
@@ -1547,7 +1547,7 @@
 b9
 10
 31
-b4
+9f
 1c
 b4
 e9
@@ -1555,7 +1555,7 @@
 c9
 94
 11
-70
+5f
 c0
 62
 c5
@@ -1588,7 +1588,7 @@
 b2
 42
 97
-06
+2f
 a4
 d0
 94
@@ -1600,7 +1600,7 @@
 76
 1c
 0f
-7a
+53
 2b
 f8
 7e
@@ -1624,7 +1624,7 @@
 e8
 fd
 93
-be
+99
 61
 fc
 fa
@@ -1632,7 +1632,7 @@
 f3
 e4
 91
-93
+b4
 2c
 de
 9e
@@ -2152,7 +2152,7 @@
 95
 7c
 3b
-3e
+15
 d4
 62
 82
@@ -2160,7 +2160,7 @@
 67
 6e
 c1
-88
+a7
 5e
 8a
 40
@@ -3908,7 +3908,7 @@
 04
 30
 80
-f9
+d0
 8d
 05
 c3
@@ -3940,11 +3940,11 @@
 fe
 65
 5f
-1b
+3c
 6e
 93
 8b
-02
+2b
 71
 0f
 2c
@@ -4076,7 +4076,7 @@
 11
 cc
 d7
-e4
+cb
 1f
 73
 36
@@ -4884,7 +4884,7 @@
 14
 f7
 a3
-ab
+b4
 f0
 91
 6d
@@ -4894,253 +4894,253 @@
 9e
 78
 1e
-fe
+bf
 29
-5c
+5d
 24
+33
 72
-f2
-da
-14
-03
-9e
-c9
-77
-10
-96
-fd
-8e
-11
+d3
+f4
+4f
+43
+60
+27
+79
+98
+92
+de
+38
+b1
+ee
+43
+b6
+94
 e6
-e1
-c1
-d6
-df
-e2
 76
 1b
-7f
-b5
-a5
-5a
+4f
+c5
+45
+1b
 86
-40
-ca
-60
-93
-11
-38
-8a
-b1
-93
-46
-40
-eb
-d8
+71
+9a
+09
+9d
+71
+68
+a3
+e6
+9e
+c4
+20
+a0
+82
 0c
 d1
-05
-e7
-bc
-ad
+35
+97
+5c
+ec
 fc
-75
+48
 90
-c8
+a8
 e1
-fb
-57
-66
-c3
-f9
-a4
-e6
-b8
-d8
+72
+48
+cf
+5c
+ae
+be
+aa
+77
+29
 dd
-61
+01
 d1
-5d
-1a
 97
-64
-16
-a3
-48
-21
-3d
-11
-15
-d0
-d2
-1c
-f3
-b4
-1a
-78
+4a
+fe
+37
+e5
+59
+68
+32
+d1
 5e
-bf
-2b
-01
-25
-ab
-cc
-ae
-06
-a7
-49
+d5
+41
+1d
+b3
+3f
+f4
+ec
+99
+fe
+e6
+74
+1e
+8c
+35
+90
+b4
+63
+69
+9b
 26
 43
 d1
-11
-cc
-7c
-84
-fb
-6b
-95
-3f
-f2
-8d
-2d
 7c
-3f
-e0
-d0
-6a
-e3
-88
-e3
-73
-db
-86
-e3
-20
-10
-49
-a9
-21
-df
+83
+dc
+1a
+b6
+c5
+f5
+f9
+ab
 22
-f7
 b2
+31
+b7
+48
+9d
+28
+64
+88
+83
+44
 c5
-aa
-ab
-00
-84
-1d
-c0
-6b
-65
-13
-7e
-78
-5c
 82
+c3
+fa
 7d
+7e
+49
+e7
+86
+c2
 c8
-a8
-d0
-1f
-18
-ec
-54
+5f
+c4
+02
+4f
+9f
+88
+1d
+a0
+5f
+ac
+58
+fe
+31
+0b
+1a
+7a
+cc
+4f
+30
+59
+75
+ee
+b4
+02
+db
 8e
-d4
-21
-6c
-09
-72
-32
-60
-e1
-f5
+23
+c9
 ee
+8d
+10
+e1
+c2
+b8
+33
 94
-73
-63
-bc
-85
-fc
-25
-bb
+a1
+c0
+5a
+1c
+5d
+53
 1a
-15
-f3
-34
-65
-e5
+77
+58
+04
+2a
+25
+a8
+d6
+d7
+5e
+54
+d1
+e9
+9c
+21
+db
+6b
+26
+84
+99
 39
-47
-e8
-fe
-ae
-3f
-ae
-5c
-b0
-0d
+d5
+34
+4d
+50
+50
+74
 1b
-20
-31
-ca
-d8
-90
-c9
-87
-b1
-76
-23
-1a
 f7
-2f
-9e
-dd
 4f
-99
-34
-ef
-dc
-97
-cb
-5d
-95
+cd
 17
-e7
-6f
-8a
+00
+59
+aa
+fe
+73
+71
+86
+f4
+94
+17
+e2
+66
+8b
 a1
-60
-8e
+64
+76
 d1
 12
 39
-ab
+dd
 f2
 be
-f1
-af
+fe
+68
 d0
-da
-d2
-9d
+dc
+00
+fc
 79
-d8
-18
-88
+df
+ca
+e3
 f3
-1b
-3d
-ee
+1c
+6f
+9e
 fb
-2d
-77
-cf
+2b
+24
+4a
 a5
-7b
-3d
-11
+3b
+6a
+59
 d3
 02
 33
@@ -5148,391 +5148,455 @@
 11
 7a
 1b
-3a
+3b
 11
 23
 24
-d2
+d3
 a3
 ff
 af
-17
-1a
-e2
-43
-ff
-4f
-cb
-90
-37
-30
-7e
-d0
+16
+52
+ca
+88
+6b
+b5
+8b
+8c
+33
+78
+16
+42
 04
-41
-9c
-68
-98
-ff
-2f
-a4
-79
-9f
-a9
+bb
+dc
+74
+ac
+b7
+47
+36
+7a
+65
 e9
-f3
-fa
-17
-23
-14
 f5
-39
-1c
-9a
-14
-f9
-95
-c6
+e7
+b5
+d7
+bc
+11
+5a
+d9
+8d
+65
+14
+f9
+47
+bb
 68
-25
-95
-6c
+24
+47
+05
 30
 f2
-cb
-4d
-3d
-62
+19
+25
+dd
+03
+f3
+21
+d2
+23
+64
+6f
+8c
+2a
+ae
+dc
+61
+ae
+41
+d1
 76
-34
-9d
-a3
-a2
-ff
-24
-62
-60
-b5
-81
-8e
-93
-9a
-de
-fd
-5a
-ad
+b4
+94
+c1
 8b
-59
-8f
-e2
+19
+d8
+bc
+79
+30
+75
 cb
-18
-f5
-ed
 53
 52
-7b
-4c
-c9
+75
 87
-5f
-a3
+7b
+af
+df
+b4
 79
 36
-fa
-fc
-3e
-75
-bc
-ab
-15
-00
-a9
-55
-59
-54
+f4
+37
+8b
+f5
 3e
-54
-22
-db
-b2
-13
-40
+b6
+f5
+27
+91
+f1
+16
+94
+99
+e7
+9a
+8f
+cb
+0c
+d8
 7e
-c7
-e1
-04
-20
-a2
-9d
-bd
-d1
-0d
+42
+c0
+a3
+c2
 ef
-98
-7d
+f9
+5d
+90
+8c
+1e
+e0
+1d
 ee
-b4
-02
-b0
-27
-6a
-e9
+3d
 4a
+b8
+85
+f4
+e9
+2a
 24
-ac
-a8
-90
-54
-35
+b5
+e0
+98
+c9
+5c
 8a
-84
-de
-2d
-43
-ce
+e4
+df
 64
-3f
+0b
+c6
+aa
+6b
 a5
 94
-1d
-a2
-98
-87
-de
-bd
-06
-9c
-a5
-c4
-e4
-87
-4f
-b3
-0a
-e0
-03
-e7
-73
-f6
-fa
-85
-de
-83
-e8
-a8
-39
-f9
-6b
-cb
-17
-66
-61
-86
+1c
+f0
+9f
+2f
+dc
 97
-d1
+e7
+b9
+72
+9a
+ab
+47
+d9
+c3
+ea
+a7
+3a
+9a
+3c
+36
 52
-bd
-d4
-24
-12
-77
-1a
-7e
-63
-3f
-74
-a3
-64
-b3
-aa
-86
-ee
-ff
-35
-44
-e8
-06
-2a
-9f
-fe
+21
+82
+ed
+cc
+c8
+0e
+19
+a2
+49
+54
+bf
+71
+9e
 97
+d1
+0e
+ec
+ac
 64
 17
-6a
-1b
+ce
+1a
+1e
+5d
+76
+24
+aa
+4a
+f4
+fa
+8f
+c2
+ed
+65
+4d
+c5
+11
+15
+3d
+df
+af
+2c
+7f
+fa
+53
 71
 da
-af
-6c
-c0
-d6
-0c
+a0
+7c
+99
+95
+f0
 77
 dd
-4e
-09
-00
-eb
-93
-55
-8c
-df
-ad
-2b
-ae
-90
-c1
-c3
-a5
-6c
-0e
-ec
+4c
+d3
+65
+a4
+33
+cb
+88
+28
+0b
+9e
+29
+94
+d9
+1e
+8d
 6b
-71
-00
-e7
-3f
-f9
-86
-3d
-7c
-8a
-75
-6c
-63
-c9
-c2
-a1
-4b
+a6
+e3
+ac
+3a
+da
 79
-47
-e1
-1b
-9a
-0d
-ef
-7e
-e6
-3d
-d0
 27
-5a
-8c
+41
+80
 19
-26
-fb
-df
-14
-4c
-1d
-d9
-a9
-07
-eb
-6c
+f4
+8a
+17
+ec
+72
 c9
-06
-c4
-d0
-15
+a2
+a1
+1d
+29
+4e
+9d
+4d
+ca
+64
 c2
-07
+9b
+fe
+3c
+6d
+62
+2a
+8e
+fb
+6e
+0b
+d1
+ae
+08
+52
+1b
+b8
+96
+53
+6a
+e2
+e9
 c4
-d6
-11
-b2
-a7
-20
-35
-8d
+d2
+95
+c2
 00
-24
-36
-84
-eb
-a0
-aa
-fd
-56
-82
-79
+6c
+d6
+1c
 45
+01
+9a
+72
+35
+64
+dd
+6e
+cc
+81
+e3
+a1
+b2
+f6
+41
+66
 fd
-2e
-31
 9b
-43
-ff
-b4
+57
+71
+9b
+21
+7f
+8d
 13
 07
-30
-3e
+62
+91
 89
-7b
-73
-0b
-5c
-c2
-c9
-86
-c1
-de
-5e
-78
-f5
-11
-2e
+1b
+21
 88
-11
-84
 5c
-d8
+a2
+9b
+37
+89
+d6
+9d
+67
+ba
+d1
+bf
+25
+93
+83
+5e
+ca
 5c
-f6
-ad
-6a
-68
-8b
+f4
 2d
-bd
+4f
+52
+8a
+04
+58
 97
 49
-99
-43
-80
-a3
+cb
+d7
+f2
+aa
+08
+ff
+a4
+5f
+82
+35
+e6
+29
 b0
-ab
-eb
-9f
-13
-8b
-64
-2e
-b2
-ac
+be
 46
-05
-b6
-8e
+07
+64
+2f
+8a
+1c
+c8
+b3
+5f
+ed
+20
+66
+8c
+9b
+c7
+51
+f4
+45
+cc
+20
+2c
+2c
+37
+78
+10
+30
+fc
+56
+fa
+75
 80
-09
-cd
-db
-7f
-cd
-25
+5e
+49
+d9
+38
+af
+45
+28
 36
-ac
-db
-c2
-39
-d4
-05
-c9
-44
+d8
+e0
+af
+7a
+72
+e5
+3f
+bb
+17
+6f
+c1
+83
+45
+ee
+ad
+6f
+73
+03
+18
+20
+e9
+b6
+4f
+92
+9e
+99
+8a
+0c
+fc
+94
+07
+04
+92
+92
+42
+18
+5e
+a1
+ce
+63
+3f
+2c
+35
+2f
+87
 aa
 55
 40
@@ -5624,18 +5688,18 @@
 44
 46
 06
-07
-08
 08
 07
+ff
+ff
 06
-14
 12
+14
 0d
 0f
 15
-02
-01
+03
+03
 00
 ff
 ff
@@ -6396,7 +6460,7 @@
 ff
 aa
 55
-11
+0c
 00
 68
 48
@@ -6412,6 +6476,43 @@
 1b
 11
 0e
+aa
+55
+19
+00
+7e
+4b
+09
+69
+30
+07
+31
+0a
+32
+0d
+33
+10
+34
+14
+35
+1a
+36
+27
+37
+34
+09
+00
+ff
+ff
+03
+05
+02
+aa
+55
+05
+00
+74
+48
 8a
 8b
 83
@@ -6891,8 +6992,8 @@
 aa
 aa
 55
-fb
-73
+5f
+7e
+64
 76
-d7
 20
Index: output/program.lis
===================================================================
--- /1121s/branch/mouse/YJX_Project/Only_24g_mouse_public_yjx_new/output/program.lis	(revision 5656)
+++ /1121s/branch/mouse/YJX_Project/Only_24g_mouse_public_yjx_new/output/program.lis	(working copy)
@@ -22,10 +22,10 @@
 0013 c0398488 beq patch0e_3 ,p_mouse_setgpio_hibernate 
 0014 c03a0236 beq patch0e_4 ,p_mouse_lpm_before_common 
 0015 c03c84ab beq patch0f_1 ,p_mouse_le_name_modify 
-0016 c03d051a beq patch0f_2 ,p_mouse_motion 
-0017 c03d84e3 beq patch0f_3 ,p_mouse_dpi_process 
-0018 c03e04ed beq patch0f_4 ,p_mouse_setting_dpi 
-0019 c03e84f3 beq patch0f_5 ,p_mouse_setting_sensor_type 
+0016 c03d052a beq patch0f_2 ,p_mouse_motion 
+0017 c03d84e8 beq patch0f_3 ,p_mouse_dpi_process 
+0018 c03e04f2 beq patch0f_4 ,p_mouse_setting_dpi 
+0019 c03e84f8 beq patch0f_5 ,p_mouse_setting_sensor_type 
 001a c03f8469 beq patch0f_7 ,p_mouse_3io6key_check 
 001b c04084ba beq patch10_1 ,p_mouse_init_sensor 
 001c c0420383 beq patch10_4 ,p_mouse_buletooth_fast_conn_end 
@@ -39,10 +39,10 @@
 0024 c046834d beq patch11_5 ,p_mouse_store_dpi_info_check 
 0025 c0470441 beq patch11_6 ,p_mouse_idle 
 0026 c04802fa beq patch12_0 ,p_mouse_check_select_device_by_switch 
-0027 c0498525 beq patch12_3 ,p_mouse_drawing_optima 
+0027 c0498535 beq patch12_3 ,p_mouse_drawing_optima 
 0028 c04a847f beq patch12_5 ,p_mouse_24g_hibernate_set 
 0029 c04b0494 beq patch12_6 ,p_mouse_24g_package_data 
-002a c04c0517 beq patch13_0 ,p_mouse_dpi_led_blink_init 
+002a c04c0527 beq patch13_0 ,p_mouse_dpi_led_blink_init 
 002b c062826b beq patch18_5 ,p_otp_read_data 
 002c c06a822a beq patch1a_5 ,p_gpio_set_wake_by_current_state 
 002d c06b0223 beq patch1a_6 ,p_gpio_set_wake 
@@ -437,7 +437,7 @@
 0166 20200152 branch p_set_lemode_2m 
 
 p_le_check_retransmit_timesout:
-0167 6fe0cc57 fetch 1 ,mem_le_conn_rcv_new 
+0167 6fe0cc70 fetch 1 ,mem_le_conn_rcv_new 
 0168 da600100 arg 256 ,regc 
 0169 9a60fe00 iadd regc ,pdata 
 016a 20600000 rtn 
@@ -447,25 +447,25 @@
 016c 20202563 branch le_slave_match + 1 
 
 p_le_check_retransmit:
-016d 6fe0cc58 fetch 1 ,mem_le_conn_first_rcv 
+016d 6fe0cc71 fetch 1 ,mem_le_conn_first_rcv 
 016e 207a0000 rtn blank 
-016f 6fe0cc59 fetch 1 ,mem_le_check_retransmit_flag 
+016f 6fe0cc72 fetch 1 ,mem_le_check_retransmit_flag 
 0170 247a0000 nrtn blank 
-0171 6848cc58 fetcht 1 ,mem_le_conn_first_rcv 
-0172 6fe0cc57 fetch 1 ,mem_le_conn_rcv_new 
+0171 6848cc71 fetcht 1 ,mem_le_conn_first_rcv 
+0172 6fe0cc70 fetch 1 ,mem_le_conn_rcv_new 
 0173 98467c00 isub temp ,null 
 0174 24410167 ncall p_le_check_retransmit_timesout ,positive 
 0175 98467e00 isub temp ,pdata 
 0176 1fe67c64 sub pdata ,100 ,null 
 0177 2021017f branch p_le_check_retransmit_count ,positive 
-0178 6fe0cc5a fetch 1 ,mem_le_retransmit_cnt 
+0178 6fe0cc73 fetch 1 ,mem_le_retransmit_cnt 
 0179 1fe67c14 sub pdata ,20 ,null 
 017a 2441017d ncall p_app_ble_disconnect ,positive 
-017b 704c5901 jam 1 ,mem_le_check_retransmit_flag 
+017b 704c7201 jam 1 ,mem_le_check_retransmit_flag 
 017c 20600000 rtn 
 
 p_app_ble_disconnect:
-017d 704c5b01 jam 1 ,mem_le_check_retransmit_discon_flag 
+017d 704c7401 jam 1 ,mem_le_check_retransmit_discon_flag 
 017e 2020431f branch app_ble_disconnect 
 
 p_le_check_retransmit_count:
@@ -475,10 +475,10 @@
 0182 9842fe00 ixor temp ,pdata 
 0183 2feffe02 isolate1 nesn ,pdata 
 0184 58000000 setarg 0 
-0185 6848cc5a fetcht 1 ,mem_le_retransmit_cnt 
+0185 6848cc73 fetcht 1 ,mem_le_retransmit_cnt 
 0186 7920fe00 setflag true ,0 ,pdata 
 0187 98408400 iadd temp ,temp 
-0188 6048cc5a storet 1 ,mem_le_retransmit_cnt 
+0188 6048cc73 storet 1 ,mem_le_retransmit_cnt 
 0189 20600000 rtn 
 
 p_le_got_first_packet_new:
@@ -486,9 +486,9 @@
 018b 1fe0fe01 increase 1 ,pdata 
 018c 67e08005 store 1 ,mem_le_conn_rcv 
 018d 24368191 nbranch p_le_got_first_packet_new + 7 ,match 
-018e 6fe0cc57 fetch 1 ,mem_le_conn_rcv_new 
+018e 6fe0cc70 fetch 1 ,mem_le_conn_rcv_new 
 018f 1fe0fe01 increase 1 ,pdata 
-0190 67e0cc57 store 1 ,mem_le_conn_rcv_new 
+0190 67e0cc70 store 1 ,mem_le_conn_rcv_new 
 0191 2020259b branch le_got_first_packet + 4 
 
 p_le_rx_dec:
@@ -652,9 +652,9 @@
 020f 6fe0c843 fetch 1 ,mem_le_connect_status_flag 
 0210 1fe17e03 and pdata ,0x03 ,pdata 
 0211 c1818000 rtnne 0x03 
-0212 6fe0cc59 fetch 1 ,mem_le_check_retransmit_flag 
+0212 6fe0cc72 fetch 1 ,mem_le_check_retransmit_flag 
 0213 207a0000 rtn blank 
-0214 6fe0cc5b fetch 1 ,mem_le_check_retransmit_discon_flag 
+0214 6fe0cc74 fetch 1 ,mem_le_check_retransmit_discon_flag 
 0215 247a0000 nrtn blank 
 
 p_mouse_le_next:
@@ -1267,7 +1267,7 @@
 
 p_mouse_le_bb_event_connected:
 03c8 58000000 setarg 0 
-03c9 67e24c58 store 4 ,mem_le_conn_first_rcv 
+03c9 67e24c71 store 4 ,mem_le_conn_first_rcv 
 03ca 20205ad0 branch mouse_le_bb_event_connected 
 
 p_mouse_le_ll_start_encryt:
@@ -1281,8 +1281,8 @@
 03d0 70484405 jam 5 ,mem_le_start_encrypt_timer 
 
 p_mouse_le_ll_reconn_start_encryt_new:
-03d1 6fe0cc57 fetch 1 ,mem_le_conn_rcv_new 
-03d2 67e0cc58 store 1 ,mem_le_conn_first_rcv 
+03d1 6fe0cc70 fetch 1 ,mem_le_conn_rcv_new 
+03d2 67e0cc71 store 1 ,mem_le_conn_first_rcv 
 03d3 20205af6 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_conn_param_update_rsp_recieved:
@@ -1325,7 +1325,7 @@
 03f0 1fe17e03 and pdata ,0x03 ,pdata 
 03f1 20405b21 call mouse_le_clean_connect_flag 
 03f2 c081d4a9 bne 0x03 ,mouse_start_reconnect 
-03f3 6fe0cc5b fetch 1 ,mem_le_check_retransmit_discon_flag 
+03f3 6fe0cc74 fetch 1 ,mem_le_check_retransmit_discon_flag 
 03f4 243a54a9 nbranch mouse_start_reconnect ,blank 
 03f5 202054cd branch mouse_app_enter_hibernate 
 
@@ -1595,249 +1595,275 @@
 04ba 20405958 call mouse_read_sensor_id 
 04bb c01804bf beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
 04bc c018d9c6 beq p3065_id1 ,mouse_init_p3065 
-04bd c02c04cd beq pka8g2_id1 ,p_mouse_ka8g2_id2_judge 
+04bd c02c04d2 beq pka8g2_id1 ,p_mouse_ka8g2_id2_judge 
 04be 20205952 branch mouse_init_sensor + 5 
 
 p_mouse_init_p32xx_id2_judge:
 04bf 6fe0c85a fetch 1 ,mem_sensor_id2 
-04c0 c02d04c5 beq p_mx8650 ,p_mouse_sensor_read_id3 
-04c1 c06c84c3 beq p3065gx_id2 ,p_mouse_p3065gx_init_param 
-04c2 20205961 branch mouse_init_p32xx_id2_judge + 2 
+04c0 c06c04c4 beq p8009_id2 ,p_mouse_8299_init_param 
+04c1 c02d04ca beq p_mx8650 ,p_mouse_sensor_read_id3 
+04c2 c06c84c8 beq p3065gx_id2 ,p_mouse_p3065gx_init_param 
+04c3 20205961 branch mouse_init_p32xx_id2_judge + 2 
+
+p_mouse_8299_init_param:
+04c4 7049570f jam ys8299 ,mem_config_sensor_type 
+04c5 da604b7e arg mem_sensor_ys8299_init ,regc 
+04c6 20405995 call mouse_sensor_wr_seq 
+04c7 202004f8 branch p_mouse_setting_sensor_type 
 
 p_mouse_p3065gx_init_param:
-04c3 7049570e jam p3065gx ,mem_config_sensor_type 
-04c4 20600000 rtn 
+04c8 7049570e jam p3065gx ,mem_config_sensor_type 
+04c9 20600000 rtn 
 
 p_mouse_sensor_read_id3:
-04c5 5800007a setarg 0x7a 
-04c6 204069e5 call twspi_read 
-04c7 c06104c9 beq p8670 ,p_mouse_sg8670_parm_init 
-04c8 2020596e branch mouse_mx8650_init_param 
+04ca 5800007a setarg 0x7a 
+04cb 204069e5 call twspi_read 
+04cc c06104ce beq p8670 ,p_mouse_sg8670_parm_init 
+04cd 2020596e branch mouse_mx8650_init_param 
 
 p_mouse_sg8670_parm_init:
-04c9 7049570d jam sg8670 ,mem_config_sensor_type 
-04ca da604b20 arg mem_sensor_sg8670_init ,regc 
-04cb 20405995 call mouse_sensor_wr_seq 
-04cc 202004f3 branch p_mouse_setting_sensor_type 
+04ce 7049570d jam sg8670 ,mem_config_sensor_type 
+04cf da604b20 arg mem_sensor_sg8670_init ,regc 
+04d0 20405995 call mouse_sensor_wr_seq 
+04d1 202004f8 branch p_mouse_setting_sensor_type 
 
 p_mouse_ka8g2_id2_judge:
-04cd 204059e7 call mouse_sensor_poweron 
-04ce 6fe0c85a fetch 1 ,mem_sensor_id2 
-04cf c02c84d1 beq pka8g2_id2 ,p_mouse_ka8g2_init_param 
-04d0 2020595f branch mouse_init_p32xx_id2_judge 
+04d2 204059e7 call mouse_sensor_poweron 
+04d3 6fe0c85a fetch 1 ,mem_sensor_id2 
+04d4 c02c84d6 beq pka8g2_id2 ,p_mouse_ka8g2_init_param 
+04d5 2020595f branch mouse_init_p32xx_id2_judge 
 
 p_mouse_ka8g2_init_param:
-04d1 7049570b jam ka8g2 ,mem_config_sensor_type 
-04d2 da604a0b arg mem_sensor_ka8g2_init_new ,regc 
-04d3 20205995 branch mouse_sensor_wr_seq 
+04d6 7049570b jam ka8g2 ,mem_config_sensor_type 
+04d7 da604a0b arg mem_sensor_ka8g2_init_new ,regc 
+04d8 20205995 branch mouse_sensor_wr_seq 
 
 p_mouse_check_sensor_data:
-04d4 6fe0c420 fetch 1 ,mem_spi_write_flash_sm 
-04d5 c1800000 rtnne flash_sm_no_buys 
-04d6 6fe0c957 fetch 1 ,mem_config_sensor_type 
-04d7 c00584d9 beq ka8g2 ,p_mouse_pka8g2_sensor_motion 
-04d8 202059f8 branch mouse_check_sensor_data + 2 
+04d9 6fe0c420 fetch 1 ,mem_spi_write_flash_sm 
+04da c1800000 rtnne flash_sm_no_buys 
+04db 6fe0c957 fetch 1 ,mem_config_sensor_type 
+04dc c00584de beq ka8g2 ,p_mouse_pka8g2_sensor_motion 
+04dd 202059f8 branch mouse_check_sensor_data + 2 
 
 p_mouse_pka8g2_sensor_motion:
-04d9 20405a6d call mouse_clear_sensor_data 
-04da 6fe0c659 fetch 1 ,mem_sensor_motion_gpio 
-04db c07f84df beq gpio_disable ,p_mouse_pka8g2_sensor_motion_1 
-04dc 6848c659 fetcht 1 ,mem_sensor_motion_gpio 
-04dd 20406ee6 call gpio_get_bit 
-04de 24608000 nrtn true 
+04de 20405a6d call mouse_clear_sensor_data 
+04df 6fe0c659 fetch 1 ,mem_sensor_motion_gpio 
+04e0 c07f84e4 beq gpio_disable ,p_mouse_pka8g2_sensor_motion_1 
+04e1 6848c659 fetcht 1 ,mem_sensor_motion_gpio 
+04e2 20406ee6 call gpio_get_bit 
+04e3 24608000 nrtn true 
 
 p_mouse_pka8g2_sensor_motion_1:
-04df 58000000 setarg pan_reg_pid_l 
-04e0 204069e5 call twspi_read 
-04e1 c0ac5955 bne pka8g2_id1 ,mouse_twspi_reset 
-04e2 20205a2f branch mouse_p3212_sensor_motion_2 
+04e4 58000000 setarg pan_reg_pid_l 
+04e5 204069e5 call twspi_read 
+04e6 c0ac5955 bne pka8g2_id1 ,mouse_twspi_reset 
+04e7 20205a2f branch mouse_p3212_sensor_motion_2 
 
 p_mouse_dpi_process:
-04e3 6fe0c957 fetch 1 ,mem_config_sensor_type 
-04e4 c00704e7 beq p3065gx ,p_mouse_dpi_level_4_set 
-04e5 c00604e7 beq s201x ,p_mouse_dpi_level_4_set 
-04e6 202056fa branch mouse_dpi_process + 3 
+04e8 6fe0c957 fetch 1 ,mem_config_sensor_type 
+04e9 c00704ec beq p3065gx ,p_mouse_dpi_level_4_set 
+04ea c00604ec beq s201x ,p_mouse_dpi_level_4_set 
+04eb 202056fa branch mouse_dpi_process + 3 
 
 p_mouse_dpi_level_4_set:
-04e7 6fe0c690 fetch 1 ,mem_mouse_dpi 
-04e8 1fe0fe01 increase 1 ,pdata 
-04e9 67e0c690 store 1 ,mem_mouse_dpi 
-04ea 1fe67c04 sub pdata ,4 ,null 
-04eb 2042fdca call set_pdata_0 ,zero 
-04ec 20205701 branch mouse_dpi_level_store 
+04ec 6fe0c690 fetch 1 ,mem_mouse_dpi 
+04ed 1fe0fe01 increase 1 ,pdata 
+04ee 67e0c690 store 1 ,mem_mouse_dpi 
+04ef 1fe67c04 sub pdata ,4 ,null 
+04f0 2042fdca call set_pdata_0 ,zero 
+04f1 20205701 branch mouse_dpi_level_store 
 
 p_mouse_setting_dpi:
-04ed 204004ef call p_mouse_setting_dpi_4_level 
-04ee 20205746 branch mouse_setting_dpi + 2 
+04f2 204004f4 call p_mouse_setting_dpi_4_level 
+04f3 20205746 branch mouse_setting_dpi + 2 
 
 p_mouse_setting_dpi_4_level:
-04ef 6fe0c957 fetch 1 ,mem_config_sensor_type 
-04f0 c1070000 rtneq p3065gx 
-04f1 c1060000 rtneq s201x 
-04f2 2020573e branch mouse_setting_dpi_4_level 
+04f4 6fe0c957 fetch 1 ,mem_config_sensor_type 
+04f5 c1070000 rtneq p3065gx 
+04f6 c1060000 rtneq s201x 
+04f7 2020573e branch mouse_setting_dpi_4_level 
 
 p_mouse_setting_sensor_type:
-04f3 6fe0c957 fetch 1 ,mem_config_sensor_type 
-04f4 c00684fe beq sg8670 ,p_mouse_seting_sg8670_dpi 
-04f5 c0070509 beq p3065gx ,p_mouse_seting_p3065gx_dpi 
-04f6 c00604f8 beq s201x ,p_mouse_seting_s201_dpi 
-04f7 20205748 branch mouse_setting_sensor_type + 1 
+04f8 6fe0c957 fetch 1 ,mem_config_sensor_type 
+04f9 c006850e beq sg8670 ,p_mouse_seting_sg8670_dpi 
+04fa c0070519 beq p3065gx ,p_mouse_seting_p3065gx_dpi 
+04fb c0060508 beq s201x ,p_mouse_seting_s201_dpi 
+04fc c00784fe beq ys8299 ,p_mouse_seting_ys8299_dpi 
+04fd 20205748 branch mouse_setting_sensor_type + 1 
+
+p_mouse_seting_ys8299_dpi:
+04fe 6fe0c690 fetch 1 ,mem_mouse_dpi 
+04ff c0000502 beq mouse_dpi_level1 ,p_mouse_set_ys8299_cpi0 
+0500 c0008504 beq mouse_dpi_level2 ,p_mouse_set_ys8299_cpi1 
+0501 c0010506 beq mouse_dpi_level3 ,p_mouse_set_ys8299_cpi2 
+
+p_mouse_set_ys8299_cpi0:
+0502 6848cb94 fetcht 1 ,mem_ys8299_dpi_0 
+0503 2020575e branch mouse_dpi_write 
+
+p_mouse_set_ys8299_cpi1:
+0504 6848cb95 fetcht 1 ,mem_ys8299_dpi_1 
+0505 2020575e branch mouse_dpi_write 
+
+p_mouse_set_ys8299_cpi2:
+0506 6848cb96 fetcht 1 ,mem_ys8299_dpi_2 
+0507 2020575e branch mouse_dpi_write 
 
 p_mouse_seting_s201_dpi:
-04f8 6fe0c690 fetch 1 ,mem_mouse_dpi 
-04f9 c000576f beq mouse_dpi_level1 ,mouse_set_s201_dpi_0 
-04fa c000d772 beq mouse_dpi_level2 ,mouse_set_s201_dpi_1 
-04fb c0015778 beq mouse_dpi_level3 ,mouse_set_s201_dpi_3 
-04fc c001d77b beq mouse_dpi_level4 ,mouse_set_s201_dpi_4 
-04fd 20600000 rtn 
+0508 6fe0c690 fetch 1 ,mem_mouse_dpi 
+0509 c000576f beq mouse_dpi_level1 ,mouse_set_s201_dpi_0 
+050a c000d772 beq mouse_dpi_level2 ,mouse_set_s201_dpi_1 
+050b c0015778 beq mouse_dpi_level3 ,mouse_set_s201_dpi_3 
+050c c001d77b beq mouse_dpi_level4 ,mouse_set_s201_dpi_4 
+050d 20600000 rtn 
 
 p_mouse_seting_sg8670_dpi:
-04fe 6fe0c690 fetch 1 ,mem_mouse_dpi 
-04ff c0000503 beq mouse_dpi_level1 ,p_mouse_set_sg8670_dpi_1 
-0500 c0008505 beq mouse_dpi_level2 ,p_mouse_set_sg8670_dpi_2 
-0501 c0010507 beq mouse_dpi_level3 ,p_mouse_set_sg8670_dpi_4 
-0502 20600000 rtn 
+050e 6fe0c690 fetch 1 ,mem_mouse_dpi 
+050f c0000513 beq mouse_dpi_level1 ,p_mouse_set_sg8670_dpi_1 
+0510 c0008515 beq mouse_dpi_level2 ,p_mouse_set_sg8670_dpi_2 
+0511 c0010517 beq mouse_dpi_level3 ,p_mouse_set_sg8670_dpi_4 
+0512 20600000 rtn 
 
 p_mouse_set_sg8670_dpi_1:
-0503 da604b5a arg mem_sensor_sg8670_dpi_1200 ,regc 
-0504 20205995 branch mouse_sensor_wr_seq 
+0513 da604b5a arg mem_sensor_sg8670_dpi_1200 ,regc 
+0514 20205995 branch mouse_sensor_wr_seq 
 
 p_mouse_set_sg8670_dpi_2:
-0505 da604b6a arg mem_sensor_sg8670_dpi_1600 ,regc 
-0506 20205995 branch mouse_sensor_wr_seq 
+0515 da604b6a arg mem_sensor_sg8670_dpi_1600 ,regc 
+0516 20205995 branch mouse_sensor_wr_seq 
 
 p_mouse_set_sg8670_dpi_4:
-0507 da604b4a arg mem_sensor_sg8670_dpi_800 ,regc 
-0508 20205995 branch mouse_sensor_wr_seq 
+0517 da604b4a arg mem_sensor_sg8670_dpi_800 ,regc 
+0518 20205995 branch mouse_sensor_wr_seq 
 
 p_mouse_seting_p3065gx_dpi:
-0509 6fe0c690 fetch 1 ,mem_mouse_dpi 
-050a c000050f beq mouse_dpi_level1 ,p_mouse_set_3056gx_dpi_0 
-050b c0008511 beq mouse_dpi_level2 ,p_mouse_set_3056gx_dpi_1 
-050c c0010513 beq mouse_dpi_level3 ,p_mouse_set_3056gx_dpi_2 
-050d c0018515 beq mouse_dpi_level4 ,p_mouse_set_3056gx_dpi_3 
-050e 20600000 rtn 
+0519 6fe0c690 fetch 1 ,mem_mouse_dpi 
+051a c000051f beq mouse_dpi_level1 ,p_mouse_set_3056gx_dpi_0 
+051b c0008521 beq mouse_dpi_level2 ,p_mouse_set_3056gx_dpi_1 
+051c c0010523 beq mouse_dpi_level3 ,p_mouse_set_3056gx_dpi_2 
+051d c0018525 beq mouse_dpi_level4 ,p_mouse_set_3056gx_dpi_3 
+051e 20600000 rtn 
 
 p_mouse_set_3056gx_dpi_0:
-050f 6848cb7a fetcht 1 ,mem_sensor_3056gx_dpi_0 
-0510 2020575e branch mouse_dpi_write 
+051f 6848cb7a fetcht 1 ,mem_sensor_3056gx_dpi_0 
+0520 2020575e branch mouse_dpi_write 
 
 p_mouse_set_3056gx_dpi_1:
-0511 6848cb7b fetcht 1 ,mem_sensor_3056gx_dpi_1 
-0512 2020575e branch mouse_dpi_write 
+0521 6848cb7b fetcht 1 ,mem_sensor_3056gx_dpi_1 
+0522 2020575e branch mouse_dpi_write 
 
 p_mouse_set_3056gx_dpi_2:
-0513 6848cb7c fetcht 1 ,mem_sensor_3056gx_dpi_2 
-0514 2020575e branch mouse_dpi_write 
+0523 6848cb7c fetcht 1 ,mem_sensor_3056gx_dpi_2 
+0524 2020575e branch mouse_dpi_write 
 
 p_mouse_set_3056gx_dpi_3:
-0515 6848cb7d fetcht 1 ,mem_sensor_3056gx_dpi_3 
-0516 2020575e branch mouse_dpi_write 
+0525 6848cb7d fetcht 1 ,mem_sensor_3056gx_dpi_3 
+0526 2020575e branch mouse_dpi_write 
 
 p_mouse_dpi_led_blink_init:
-0517 6fe0c957 fetch 1 ,mem_config_sensor_type 
-0518 c0076131 beq p3065gx ,mouse_dpi_led_blink_init_another 
-0519 20206123 branch mouse_dpi_led_blink_init + 2 
+0527 6fe0c957 fetch 1 ,mem_config_sensor_type 
+0528 c0076131 beq p3065gx ,mouse_dpi_led_blink_init_another 
+0529 20206123 branch mouse_dpi_led_blink_init + 2 
 
 p_mouse_motion:
-051a 78547c00 disable user 
-051b 58000000 setarg 0 
-051c 67e34847 store 6 ,mem_mouse_x 
-051d 204004d4 call p_mouse_check_sensor_data 
-051e 58000089 setarg 0x0089 
-051f 204069e4 call twspi_write 
-0520 20405747 call mouse_setting_sensor_type 
-0521 20405612 call mouse_zwheel 
-0522 20405617 call mouse_t_zwheel 
-0523 20400528 call p_mouse_key 
-0524 2020560c branch mouse_motion + 11 
+052a 78547c00 disable user 
+052b 58000000 setarg 0 
+052c 67e34847 store 6 ,mem_mouse_x 
+052d 204004d9 call p_mouse_check_sensor_data 
+052e 58000089 setarg 0x0089 
+052f 204069e4 call twspi_write 
+0530 20405747 call mouse_setting_sensor_type 
+0531 20405612 call mouse_zwheel 
+0532 20405617 call mouse_t_zwheel 
+0533 20400538 call p_mouse_key 
+0534 2020560c branch mouse_motion + 11 
 
 p_mouse_drawing_optima:
-0525 6fe0c957 fetch 1 ,mem_config_sensor_type 
-0526 c1058000 rtneq ka8g2 
-0527 20205f27 branch mouse_drawing_optima + 1 
+0535 6fe0c957 fetch 1 ,mem_config_sensor_type 
+0536 c1058000 rtneq ka8g2 
+0537 20205f27 branch mouse_drawing_optima + 1 
 
 p_mouse_key:
-0528 2040584c call mouse_check_firekey_gpio 
-0529 6fe0c987 fetch 1 ,mem_fire_key_flag 
-052a 243a5860 nbranch fire_key_press ,blank 
-052b 6fe0c982 fetch 1 ,mem_fire_key_status 
-052c 243a585f nbranch fire_key_process ,blank 
-052d 20405888 call mouse_check_key_gpio 
-052e 20400530 call p_mouse_ghost_key_check 
-052f 202057ad branch mouse_key + 7 
+0538 2040584c call mouse_check_firekey_gpio 
+0539 6fe0c987 fetch 1 ,mem_fire_key_flag 
+053a 243a5860 nbranch fire_key_press ,blank 
+053b 6fe0c982 fetch 1 ,mem_fire_key_status 
+053c 243a585f nbranch fire_key_process ,blank 
+053d 20405888 call mouse_check_key_gpio 
+053e 20400540 call p_mouse_ghost_key_check 
+053f 202057ad branch mouse_key + 7 
 
 p_mouse_ghost_key_check:
-0530 70497900 jam 0 ,mem_mouse_matrix_key_cow_count 
-0531 70497a00 jam 0 ,mem_mouse_matrix_key_row_count 
-0532 70497b00 jam 0 ,mem_mouse_ghost_flag 
-0533 1fe22400 copy pdata ,regb 
-0534 6848c644 fetcht 1 ,mem_lbutton_gpio 
-0535 6fe0c647 fetch 1 ,mem_bk_button_gpio 
-0536 98467c00 isub temp ,null 
-0537 20228542 branch p_mouse_matrix_ghost_key_l_bk ,zero 
-0538 6fe0c648 fetch 1 ,mem_fw_button_gpio 
-0539 98467c00 isub temp ,null 
-053a 20228548 branch p_mouse_matrix_ghost_key_l_fw ,zero 
-053b 6848c645 fetcht 1 ,mem_mbutton_gpio 
-053c 6fe0c647 fetch 1 ,mem_bk_button_gpio 
-053d 98467c00 isub temp ,null 
-053e 20228551 branch p_mouse_ghost_key_mbk_rfw ,zero 
+0540 70497900 jam 0 ,mem_mouse_matrix_key_cow_count 
+0541 70497a00 jam 0 ,mem_mouse_matrix_key_row_count 
+0542 70497b00 jam 0 ,mem_mouse_ghost_flag 
+0543 1fe22400 copy pdata ,regb 
+0544 6848c644 fetcht 1 ,mem_lbutton_gpio 
+0545 6fe0c647 fetch 1 ,mem_bk_button_gpio 
+0546 98467c00 isub temp ,null 
+0547 20228552 branch p_mouse_matrix_ghost_key_l_bk ,zero 
+0548 6fe0c648 fetch 1 ,mem_fw_button_gpio 
+0549 98467c00 isub temp ,null 
+054a 20228558 branch p_mouse_matrix_ghost_key_l_fw ,zero 
+054b 6848c645 fetcht 1 ,mem_mbutton_gpio 
+054c 6fe0c647 fetch 1 ,mem_bk_button_gpio 
+054d 98467c00 isub temp ,null 
+054e 20228561 branch p_mouse_ghost_key_mbk_rfw ,zero 
 
 p_mouse_ghost_key_mfw_rbk:
-053f 204057fb call mouse_ghost_key_check_m_fw 
+054f 204057fb call mouse_ghost_key_check_m_fw 
 
 p_mouse_ghost_key_rbk:
-0540 20400556 call p_mouse_ghost_key_check_r_bk 
-0541 202057e5 branch mouse_ghost_key_check_next 
+0550 20400566 call p_mouse_ghost_key_check_r_bk 
+0551 202057e5 branch mouse_ghost_key_check_next 
 
 p_mouse_matrix_ghost_key_l_bk:
-0542 6848c645 fetcht 1 ,mem_mbutton_gpio 
-0543 6fe0c648 fetch 1 ,mem_fw_button_gpio 
-0544 98467c00 isub temp ,null 
-0545 2022d7d6 branch mouse_ghost_key_lbk_mfw ,zero 
+0552 6848c645 fetcht 1 ,mem_mbutton_gpio 
+0553 6fe0c648 fetch 1 ,mem_fw_button_gpio 
+0554 98467c00 isub temp ,null 
+0555 2022d7d6 branch mouse_ghost_key_lbk_mfw ,zero 
 
 p_mouse_ghost_key_lbk_rfw:
-0546 204057ef call mouse_ghost_key_check_l_bk 
-0547 20200552 branch p_mouse_ghost_key_rfw 
+0556 204057ef call mouse_ghost_key_check_l_bk 
+0557 20200562 branch p_mouse_ghost_key_rfw 
 
 p_mouse_matrix_ghost_key_l_fw:
-0548 6848c645 fetcht 1 ,mem_mbutton_gpio 
-0549 6fe0c647 fetch 1 ,mem_bk_button_gpio 
-054a 98467c00 isub temp ,null 
-054b 2022854e branch p_mouse_ghost_key_lfw_mbk ,zero 
+0558 6848c645 fetcht 1 ,mem_mbutton_gpio 
+0559 6fe0c647 fetch 1 ,mem_bk_button_gpio 
+055a 98467c00 isub temp ,null 
+055b 2022855e branch p_mouse_ghost_key_lfw_mbk ,zero 
 
 p_mouse_ghost_key_lfw_rbk:
-054c 20400558 call p_mouse_ghost_key_check_l_fw 
-054d 20200540 branch p_mouse_ghost_key_rbk 
+055c 20400568 call p_mouse_ghost_key_check_l_fw 
+055d 20200550 branch p_mouse_ghost_key_rbk 
 
 p_mouse_ghost_key_lfw_mbk:
-054e 20400558 call p_mouse_ghost_key_check_l_fw 
-054f 20400554 call p_mouse_ghost_key_check_m_bk 
-0550 202057e5 branch mouse_ghost_key_check_next 
+055e 20400568 call p_mouse_ghost_key_check_l_fw 
+055f 20400564 call p_mouse_ghost_key_check_m_bk 
+0560 202057e5 branch mouse_ghost_key_check_next 
 
 p_mouse_ghost_key_mbk_rfw:
-0551 20400554 call p_mouse_ghost_key_check_m_bk 
+0561 20400564 call p_mouse_ghost_key_check_m_bk 
 
 p_mouse_ghost_key_rfw:
-0552 2040055a call p_mouse_ghost_key_check_r_fw 
-0553 202057e5 branch mouse_ghost_key_check_next 
+0562 2040056a call p_mouse_ghost_key_check_r_fw 
+0563 202057e5 branch mouse_ghost_key_check_next 
 
 p_mouse_ghost_key_check_m_bk:
-0554 1a417e12 and regb ,mouse_m_bk_button ,pdata 
-0555 202057f3 branch mouse_ghost_key_check_m_bk + 1 
+0564 1a417e12 and regb ,mouse_m_bk_button ,pdata 
+0565 202057f3 branch mouse_ghost_key_check_m_bk + 1 
 
 p_mouse_ghost_key_check_r_bk:
-0556 1a417e0a and regb ,mouse_r_bk_button ,pdata 
-0557 202057f6 branch mouse_ghost_key_check_r_bk + 1 
+0566 1a417e0a and regb ,mouse_r_bk_button ,pdata 
+0567 202057f6 branch mouse_ghost_key_check_r_bk + 1 
 
 p_mouse_ghost_key_check_l_fw:
-0558 1a417e11 and regb ,mouse_l_fw_button ,pdata 
-0559 202057f9 branch mouse_ghost_key_check_l_fw + 1 
+0568 1a417e11 and regb ,mouse_l_fw_button ,pdata 
+0569 202057f9 branch mouse_ghost_key_check_l_fw + 1 
 
 p_mouse_ghost_key_check_r_fw:
-055a 1a417e12 and regb ,mouse_r_fw_button ,pdata 
-055b 202057ff branch mouse_ghost_key_check_r_fw + 1 
+056a 1a417e12 and regb ,mouse_r_fw_button ,pdata 
+056b 202057ff branch mouse_ghost_key_check_r_fw + 1 
               org 0x2000
 
 start:
Index: program/patch.prog
===================================================================
--- /1121s/branch/mouse/YJX_Project/Only_24g_mouse_public_yjx_new/program/patch.prog	(revision 5656)
+++ /1121s/branch/mouse/YJX_Project/Only_24g_mouse_public_yjx_new/program/patch.prog	(working copy)
@@ -1864,10 +1864,17 @@
 
 p_mouse_init_p32xx_id2_judge:
 	fetch 1,mem_sensor_id2
+	beq P8009_ID2,p_mouse_8299_init_param
 	beq P_MX8650,p_mouse_sensor_read_id3
 	beq P3065GX_ID2,p_mouse_P3065GX_init_param
 	branch mouse_init_p32xx_id2_judge+2
 
+p_mouse_8299_init_param:
+	jam YS8299,mem_config_sensor_type
+	arg mem_sensor_YS8299_init,regc
+	call mouse_sensor_wr_seq
+	branch p_mouse_setting_sensor_type
+
 p_mouse_P3065GX_init_param:
 	jam P3065GX,mem_config_sensor_type
 	rtn
@@ -1943,8 +1950,24 @@
 	beq SG8670,p_mouse_seting_SG8670_dpi
 	beq P3065GX,p_mouse_seting_P3065GX_dpi
 	beq S201X,p_mouse_seting_S201_dpi
+	beq YS8299,p_mouse_seting_YS8299_dpi
 	branch mouse_setting_sensor_type+1
 
+p_mouse_seting_YS8299_dpi:
+	fetch 1,mem_mouse_dpi
+	beq MOUSE_DPI_LEVEL1,p_mouse_set_YS8299_cpi0		//2000
+	beq MOUSE_DPI_LEVEL2,p_mouse_set_YS8299_cpi1		//4000
+	beq MOUSE_DPI_LEVEL3,p_mouse_set_YS8299_cpi2		//1000
+p_mouse_set_YS8299_cpi0:
+	fetcht 1,mem_YS8299_dpi_0
+	branch mouse_dpi_write
+p_mouse_set_YS8299_cpi1:
+	fetcht 1,mem_YS8299_dpi_1
+	branch mouse_dpi_write
+p_mouse_set_YS8299_cpi2:
+	fetcht 1,mem_YS8299_dpi_2
+	branch mouse_dpi_write
+
 p_mouse_seting_S201_dpi:
 	fetch 1,mem_mouse_dpi
 	beq MOUSE_DPI_LEVEL1,mouse_set_S201_dpi_0	//1200
Index: sched/mouse.dat
===================================================================
--- /1121s/branch/mouse/YJX_Project/Only_24g_mouse_public_yjx_new/sched/mouse.dat	(revision 5656)
+++ /1121s/branch/mouse/YJX_Project/Only_24g_mouse_public_yjx_new/sched/mouse.dat	(working copy)
@@ -87,18 +87,18 @@
 
 mem_mouse_param_config:
 06 #mem_lbutton_gpio
-07 #mem_mbutton_gpio
-08 #mem_rbutton_gpio
-08 #mem_bk_button_gpio
-07 #mem_fw_button_gpio
+08 #mem_mbutton_gpio
+07 #mem_rbutton_gpio
+ff #mem_bk_button_gpio
+ff #mem_fw_button_gpio
 06 #mem_dpi_button_gpio
-14 #mem_whee_a_data_gpio
-12 #mem_whee_b_data_gpio
+12 #mem_whee_a_data_gpio
+14 #mem_whee_b_data_gpio
 0d #mem_mouse_sensor_sclk_gpio
 0f #mem_mouse_sensor_sdio_gpio
 15 #mem_select_sensor_angle_gpio
-02 #mem_sensor_angle_default
-01 #mem_sensor_angle_switch
+03 #mem_sensor_angle_default
+03 #mem_sensor_angle_switch
 00 #mem_config_sensor_dpi	#power on default dpi 00--1200  01--1600
 ff #mem_whee_ta_data_gpio
 ff #mem_whee_tb_data_gpio
@@ -316,6 +316,25 @@
 11	#mem_ka8g2_dpi_2
 0e	#mem_ka8g2_dpi_3
 
+mem_sensor_YS8299_init:
+09 69
+30 07
+31 0a
+32 0d
+33 10
+34 14
+35 1a
+36 27
+37 34
+09 00
+ff ff
+
+mem_sensor_YS8299_dpi:
+03 #mem_YS8299_dpi_0 2000
+05 #mem_YS8299_dpi_1 4000
+02 #mem_YS8299_dpi_2 1000
+
+
 mem_sensor_s201_dpi:
 8a  #mem_sensor_s201_dpi_0	1200
 8b  #mem_sensor_s201_dpi_1	1600
