Index: format/app_mouse.format
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/LRPair_24G/format/app_mouse.format	(revision 480)
+++ /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/LRPair_24G/format/app_mouse.format	(working copy)
@@ -324,6 +324,17 @@
 1 mem_sensor_shutdown_flag
 
 38 mem_sensor_8650_init_new
+
+0 mem_om16_dpi
+1 mem_om16_dpi_0
+1 mem_om16_dpi_1
+1 mem_om16_dpi_2
+1 mem_om16_dpi_3
+
+2 mem_mouse_xy_date_times
+
+
+
 )
 
 
@@ -486,6 +497,7 @@
 0x50 P6520A_ID2
 0x58 PKA8G2_ID1
 0x59 PKA8G2_ID2
+0x52 OM16_ID2
 
 
 //Sensor type
@@ -501,7 +513,7 @@
 0X09 KA8_UL
 0X0a KA8_HD
 0X0b KA8G2
-
+0X0c OM16
 
 //SENSOR REG
 0x00 PAN_REG_PID_L
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/LRPair_24G/output/eeprom.dat	(revision 480)
+++ /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/LRPair_24G/output/eeprom.dat	(working copy)
@@ -2,40 +2,48 @@
 02
 aa
 55
-ee
-03
+5a
+05
 c2
 84
 00
-09
+0b
 c0
 00
 00
-5c
+5e
 c0
 45
 80
-bd
+bf
 c0
 57
 00
-0b
+0d
 c0
 64
 80
-cb
+cd
 c0
 65
 00
-d3
+d5
+c0
+67
+00
+e9
+c0
+68
+01
+1b
 c0
 69
-80
-e7
+81
+3f
 c0
 6b
 00
-2c
+2e
 20
 20
 13
@@ -43,7 +51,7 @@
 c0
 75
 00
-d8
+da
 20
 20
 13
@@ -107,7 +115,7 @@
 c0
 00
 00
-1b
+1d
 20
 20
 3d
@@ -171,7 +179,7 @@
 58
 00
 00
-40
+42
 67
 e1
 48
@@ -187,7 +195,7 @@
 c0
 1d
 00
-2f
+31
 20
 20
 43
@@ -207,7 +215,7 @@
 c0
 01
 80
-34
+36
 20
 20
 48
@@ -215,7 +223,7 @@
 20
 40
 00
-37
+39
 20
 34
 48
@@ -255,7 +263,7 @@
 c2
 00
 00
-3b
+3d
 20
 60
 00
@@ -279,7 +287,7 @@
 c3
 0a
 80
-47
+49
 6f
 e0
 cb
@@ -299,7 +307,7 @@
 c2
 80
 80
-56
+58
 68
 48
 c7
@@ -379,7 +387,7 @@
 20
 40
 00
-5f
+61
 20
 20
 08
@@ -415,7 +423,7 @@
 20
 20
 00
-67
+69
 70
 0b
 58
@@ -891,7 +899,7 @@
 24
 3a
 00
-e2
+e4
 6f
 e4
 48
@@ -928,713 +936,705 @@
 20
 26
 b8
-20
-40
-3f
-65
-20
-75
-80
+78
+54
+7c
 00
+58
+00
+00
+00
+67
+e3
+48
+d1
 20
 40
 42
-36
-20
 40
-41
-b5
-c0
-18
-00
-f1
-c0
-18
-c2
-17
-c0
-2c
-42
-20
 20
 40
-41
-b2
-20
 00
-1a
-f4
+ef
 20
 20
+3f
+75
+6f
+e0
+c9
+27
+c1
+86
+00
 00
-ea
 6f
 e0
 c9
-c2
-c0
-2d
+92
+1f
+e6
+7e
+03
+24
+21
 00
-f4
+f5
 20
-20
-41
-be
-70
-49
-27
-05
+60
+00
+00
 58
 00
-80
+05
 06
-20
-40
-5b
+67
+e1
+4c
 0c
 20
 40
-7d
-12
-da
-60
-4b
-e2
+01
+08
+6f
+e0
+c8
+d3
+c2
+83
+80
+fd
 20
 40
-42
-2b
-20
+01
+10
+67
+e0
+c8
+d3
 20
-40
-8e
-ac
-5b
-aa
-55
-40
+60
 00
 00
+20
 40
 01
 00
+67
+e0
+c8
+d3
+20
+60
 00
 00
+1f
+e2
+04
 00
+df
+e0
+01
 00
+98
+46
+7e
 00
+20
+40
+01
+10
+1f
+e2
+04
 00
+df
+e0
+01
 00
+98
+46
+7e
 00
+20
+60
 00
 00
+6f
+e0
+c8
+d1
+c2
+83
+81
+0d
+20
+40
+01
+10
+67
+e0
+c8
+d1
+20
+60
 00
 00
-00
-00
-00
-08
-00
-00
-00
+20
 40
+01
 00
+67
+e0
+c8
+d1
+20
+60
 00
 00
-06
+68
 48
+cc
+0c
+98
+4f
+fe
 00
+68
+48
+cc
+0d
+98
+46
+fc
 00
+20
+40
+7d
+ef
+18
+07
+fe
 00
+1f
+e6
+7c
+7f
+24
+21
+01
+19
+20
+60
 00
 00
+58
 00
 00
+7f
+20
+60
 00
 00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-04
-00
-00
-aa
-55
+6f
+e0
+c9
+27
+c0
+06
 01
-00
-9a
+30
+c0
+01
+81
+21
+20
 40
-08
-aa
-55
-06
-00
-a8
 40
-08
-49
-2a
-22
-56
-85
-aa
-55
-1a
-00
-fe
+8f
+20
+40
 48
-b0
-04
-08
-00
-32
-05
-94
-85
-90
-63
-75
-80
-0a
-83
-4c
-0b
-0c
-0d
-ff
-ff
-ff
-05
-04
-ff
-ff
-0a
-aa
-55
-01
-00
-cb
-4b
-03
-aa
-55
-01
-00
-9a
+e1
+20
+20
 40
-08
-aa
-55
-01
+98
+20
+40
+46
+ee
+20
+40
+48
+e1
+6f
+e0
+c9
+92
+c0
 00
-7b
-41
-12
-aa
-55
 01
+2a
+c0
 00
-7d
-41
-70
-aa
-55
+81
+28
+c0
 01
-00
-d0
-44
-00
-aa
-55
 01
-00
-ea
-41
-ff
-aa
-55
+2c
+c0
 01
-00
+81
+2e
+6f
+e0
+c9
+d5
+20
+20
+40
+c7
+6f
+e0
+c9
+d4
+20
+20
+40
+c7
+6f
+e0
+c9
+d6
+20
+20
+40
+c7
+6f
+e0
+c9
+d7
+20
+20
+40
+c7
+20
+40
+46
 ee
-41
+20
+40
+48
+e1
+6f
+e0
+c9
+92
+c0
 00
-aa
-55
 01
-00
+39
 c0
-49
-05
-aa
-55
-26
 00
-e2
-4b
+81
+37
+c0
+01
+01
+3b
+c0
+01
+81
+3d
+68
+48
+cc
 09
-5a
-ff
-27
-ab
+20
+20
 40
-b3
-56
-9b
-e6
 a8
-12
-a9
-c0
-be
-e6
-a5
-af
-a0
-21
-a1
-02
-b8
-10
-b9
-0b
-a7
-ff
-b5
-d0
-b6
-00
-ff
-00
-09
-00
-ff
-ff
-aa
-55
-10
-00
-71
-4a
-09
-5a
-06
-02
-09
-69
-0d
+68
 48
-0e
-9f
-0f
-ba
-09
+cc
+08
+20
+20
+40
+a8
+68
+48
+cc
+0a
+20
+20
+40
+a8
+68
+48
+cc
+0b
+20
+20
+40
+a8
+20
+40
+3f
+65
+20
+75
+80
 00
-ff
-ff
-55
-aa
-aa
-55
-ec
+20
+40
+42
+36
+20
+40
 41
-df
-72
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+b5
+c0
+18
+01
+49
+c0
+18
+c2
+17
+c0
+2c
+42
+20
+20
+40
+41
+b2
+20
+00
+1a
+f4
+20
+20
+01
+42
+6f
+e0
+c9
+c2
+c0
+2d
+01
+4f
+c0
+29
+01
+4d
+20
+20
+41
+be
+70
+49
+27
+0c
+20
+60
+00
+00
+70
+49
+27
+05
+58
+00
+80
+06
+20
+40
+5b
+0c
+20
+40
+7d
+12
+da
+60
+4b
+e2
+20
+40
+42
+2b
+20
+20
+40
+8e
+3c
+f0
+aa
+55
+40
+00
+00
+40
+01
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+08
+00
+00
+00
+40
+00
+00
+00
+46
+49
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+04
+00
+00
+aa
+55
+01
+00
+9a
+40
+08
+aa
+55
+06
+00
+a8
+40
+08
+49
+2a
+22
+56
+85
+aa
+55
+1a
+00
+fe
+48
+b0
+04
+08
+00
+32
+05
+94
+85
+90
+63
+75
+80
+0a
+83
+4c
+0b
+0c
+0d
 ff
 ff
 ff
+05
+04
 ff
 ff
+0a
+aa
+55
+01
+00
+cb
+4b
+03
+aa
+55
+01
+00
+9a
+40
+08
+aa
+55
+01
+00
+7b
+41
+12
+aa
+55
+01
+00
+7d
+41
+70
+aa
+55
+01
+00
+d0
+44
+00
+aa
+55
+01
+00
+ea
+41
 ff
+aa
+55
+01
+00
+ee
+41
+00
+aa
+55
+01
+00
+c0
+49
+05
+aa
+55
+04
+00
+08
+4c
+70
+70
+40
+60
+aa
+55
+26
+00
+e2
+4b
+09
+5a
 ff
+27
+ab
+40
+b3
+56
+9b
+e6
+a8
+12
+a9
+c0
+be
+e6
+a5
+af
+a0
+21
+a1
+02
+b8
+10
+b9
+0b
+a7
 ff
+b5
+d0
+b6
+00
 ff
+00
+09
+00
 ff
 ff
+aa
+55
+10
+00
+71
+4a
+09
+5a
+06
+02
+09
+69
+0d
+48
+0e
+9f
+0f
+ba
+09
+00
 ff
 ff
+55
+aa
+aa
+55
+04
+45
+82
+33
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-12
-44
+1f
+e9
Index: output/flash.dat
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/LRPair_24G/output/flash.dat	(revision 480)
+++ /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/LRPair_24G/output/flash.dat	(working copy)
@@ -2,40 +2,48 @@
 02
 aa
 55
-ee
-03
+5a
+05
 c2
 84
 00
-09
+0b
 c0
 00
 00
-5c
+5e
 c0
 45
 80
-bd
+bf
 c0
 57
 00
-0b
+0d
 c0
 64
 80
-cb
+cd
 c0
 65
 00
-d3
+d5
+c0
+67
+00
+e9
+c0
+68
+01
+1b
 c0
 69
-80
-e7
+81
+3f
 c0
 6b
 00
-2c
+2e
 20
 20
 13
@@ -43,7 +51,7 @@
 c0
 75
 00
-d8
+da
 20
 20
 13
@@ -107,7 +115,7 @@
 c0
 00
 00
-1b
+1d
 20
 20
 3d
@@ -171,7 +179,7 @@
 58
 00
 00
-40
+42
 67
 e1
 48
@@ -187,7 +195,7 @@
 c0
 1d
 00
-2f
+31
 20
 20
 43
@@ -207,7 +215,7 @@
 c0
 01
 80
-34
+36
 20
 20
 48
@@ -215,7 +223,7 @@
 20
 40
 00
-37
+39
 20
 34
 48
@@ -255,7 +263,7 @@
 c2
 00
 00
-3b
+3d
 20
 60
 00
@@ -279,7 +287,7 @@
 c3
 0a
 80
-47
+49
 6f
 e0
 cb
@@ -299,7 +307,7 @@
 c2
 80
 80
-56
+58
 68
 48
 c7
@@ -379,7 +387,7 @@
 20
 40
 00
-5f
+61
 20
 20
 08
@@ -415,7 +423,7 @@
 20
 20
 00
-67
+69
 70
 0b
 58
@@ -891,7 +899,7 @@
 24
 3a
 00
-e2
+e4
 6f
 e4
 48
@@ -928,713 +936,705 @@
 20
 26
 b8
-20
-40
-3f
-65
-20
-75
-80
+78
+54
+7c
 00
+58
+00
+00
+00
+67
+e3
+48
+d1
 20
 40
 42
-36
-20
 40
-41
-b5
-c0
-18
-00
-f1
-c0
-18
-c2
-17
-c0
-2c
-42
-20
 20
 40
-41
-b2
-20
 00
-1a
-f4
+ef
 20
 20
+3f
+75
+6f
+e0
+c9
+27
+c1
+86
+00
 00
-ea
 6f
 e0
 c9
-c2
-c0
-2d
+92
+1f
+e6
+7e
+03
+24
+21
 00
-f4
+f5
 20
-20
-41
-be
-70
-49
-27
-05
+60
+00
+00
 58
 00
-80
+05
 06
-20
-40
-5b
+67
+e1
+4c
 0c
 20
 40
-7d
-12
-da
-60
-4b
-e2
+01
+08
+6f
+e0
+c8
+d3
+c2
+83
+80
+fd
 20
 40
-42
-2b
-20
+01
+10
+67
+e0
+c8
+d3
 20
-40
-8e
-ac
-5b
-aa
-55
-40
+60
 00
 00
+20
 40
 01
 00
+67
+e0
+c8
+d3
+20
+60
 00
 00
+1f
+e2
+04
 00
+df
+e0
+01
 00
+98
+46
+7e
 00
+20
+40
+01
+10
+1f
+e2
+04
 00
+df
+e0
+01
 00
+98
+46
+7e
 00
+20
+60
 00
 00
+6f
+e0
+c8
+d1
+c2
+83
+81
+0d
+20
+40
+01
+10
+67
+e0
+c8
+d1
+20
+60
 00
 00
-00
-00
-00
-08
-00
-00
-00
+20
 40
+01
 00
+67
+e0
+c8
+d1
+20
+60
 00
 00
-06
+68
 48
+cc
+0c
+98
+4f
+fe
 00
+68
+48
+cc
+0d
+98
+46
+fc
 00
+20
+40
+7d
+ef
+18
+07
+fe
 00
+1f
+e6
+7c
+7f
+24
+21
+01
+19
+20
+60
 00
 00
+58
 00
 00
+7f
+20
+60
 00
 00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-00
-04
-00
-00
-aa
-55
+6f
+e0
+c9
+27
+c0
+06
 01
-00
-9a
+30
+c0
+01
+81
+21
+20
 40
-08
-aa
-55
-06
-00
-a8
 40
-08
-49
-2a
-22
-56
-85
-aa
-55
-1a
-00
-fe
+8f
+20
+40
 48
-b0
-04
-08
-00
-32
-05
-94
-85
-90
-63
-75
-80
-0a
-83
-4c
-0b
-0c
-0d
-ff
-ff
-ff
-05
-04
-ff
-ff
-0a
-aa
-55
-01
-00
-cb
-4b
-03
-aa
-55
-01
-00
-9a
+e1
+20
+20
 40
-08
-aa
-55
-01
+98
+20
+40
+46
+ee
+20
+40
+48
+e1
+6f
+e0
+c9
+92
+c0
 00
-7b
-41
-12
-aa
-55
 01
+2a
+c0
 00
-7d
-41
-70
-aa
-55
+81
+28
+c0
 01
-00
-d0
-44
-00
-aa
-55
 01
-00
-ea
-41
-ff
-aa
-55
+2c
+c0
 01
-00
+81
+2e
+6f
+e0
+c9
+d5
+20
+20
+40
+c7
+6f
+e0
+c9
+d4
+20
+20
+40
+c7
+6f
+e0
+c9
+d6
+20
+20
+40
+c7
+6f
+e0
+c9
+d7
+20
+20
+40
+c7
+20
+40
+46
 ee
-41
+20
+40
+48
+e1
+6f
+e0
+c9
+92
+c0
 00
-aa
-55
 01
-00
+39
 c0
-49
-05
-aa
-55
-26
 00
-e2
-4b
+81
+37
+c0
+01
+01
+3b
+c0
+01
+81
+3d
+68
+48
+cc
 09
-5a
-ff
-27
-ab
+20
+20
 40
-b3
-56
-9b
-e6
 a8
-12
-a9
-c0
-be
-e6
-a5
-af
-a0
-21
-a1
-02
-b8
-10
-b9
-0b
-a7
-ff
-b5
-d0
-b6
-00
-ff
-00
-09
-00
-ff
-ff
-aa
-55
-10
-00
-71
-4a
-09
-5a
-06
-02
-09
-69
-0d
+68
 48
-0e
-9f
-0f
-ba
-09
+cc
+08
+20
+20
+40
+a8
+68
+48
+cc
+0a
+20
+20
+40
+a8
+68
+48
+cc
+0b
+20
+20
+40
+a8
+20
+40
+3f
+65
+20
+75
+80
 00
-ff
-ff
-55
-aa
-aa
-55
-ec
+20
+40
+42
+36
+20
+40
 41
-df
-72
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+b5
+c0
+18
+01
+49
+c0
+18
+c2
+17
+c0
+2c
+42
+20
+20
+40
+41
+b2
+20
+00
+1a
+f4
+20
+20
+01
+42
+6f
+e0
+c9
+c2
+c0
+2d
+01
+4f
+c0
+29
+01
+4d
+20
+20
+41
+be
+70
+49
+27
+0c
+20
+60
+00
+00
+70
+49
+27
+05
+58
+00
+80
+06
+20
+40
+5b
+0c
+20
+40
+7d
+12
+da
+60
+4b
+e2
+20
+40
+42
+2b
+20
+20
+40
+8e
+3c
+f0
+aa
+55
+40
+00
+00
+40
+01
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+08
+00
+00
+00
+40
+00
+00
+00
+46
+49
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+04
+00
+00
+aa
+55
+01
+00
+9a
+40
+08
+aa
+55
+06
+00
+a8
+40
+08
+49
+2a
+22
+56
+85
+aa
+55
+1a
+00
+fe
+48
+b0
+04
+08
+00
+32
+05
+94
+85
+90
+63
+75
+80
+0a
+83
+4c
+0b
+0c
+0d
 ff
 ff
 ff
+05
+04
 ff
 ff
+0a
+aa
+55
+01
+00
+cb
+4b
+03
+aa
+55
+01
+00
+9a
+40
+08
+aa
+55
+01
+00
+7b
+41
+12
+aa
+55
+01
+00
+7d
+41
+70
+aa
+55
+01
+00
+d0
+44
+00
+aa
+55
+01
+00
+ea
+41
 ff
+aa
+55
+01
+00
+ee
+41
+00
+aa
+55
+01
+00
+c0
+49
+05
+aa
+55
+04
+00
+08
+4c
+70
+70
+40
+60
+aa
+55
+26
+00
+e2
+4b
+09
+5a
 ff
+27
+ab
+40
+b3
+56
+9b
+e6
+a8
+12
+a9
+c0
+be
+e6
+a5
+af
+a0
+21
+a1
+02
+b8
+10
+b9
+0b
+a7
 ff
+b5
+d0
+b6
+00
 ff
+00
+09
+00
 ff
 ff
+aa
+55
+10
+00
+71
+4a
+09
+5a
+06
+02
+09
+69
+0d
+48
+0e
+9f
+0f
+ba
+09
+00
 ff
 ff
+55
+aa
+aa
+55
+04
+45
+82
+33
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-12
-44
+1f
+e9
Index: output/memmap.format
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/LRPair_24G/output/memmap.format	(revision 480)
+++ /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/LRPair_24G/output/memmap.format	(working copy)
@@ -2204,6 +2204,12 @@
 0x4bde mem_mouse_set_high_impedance_bit_set
 0x4be1 mem_sensor_shutdown_flag
 0x4be2 mem_sensor_8650_init_new
+0x4c08 mem_om16_dpi
+0x4c08 mem_om16_dpi_0
+0x4c09 mem_om16_dpi_1
+0x4c0a mem_om16_dpi_2
+0x4c0b mem_om16_dpi_3
+0x4c0c mem_mouse_xy_date_times
 0x48d0 mem_remote_car_hard_soft_switch
 0x48d1 mem_remote_car_queue_each_size
 0x48d2 mem_remote_car_queue_length
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/LRPair_24G/output/program.lis	(revision 480)
+++ /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/LRPair_24G/output/program.lis	(working copy)
@@ -1,316 +1,451 @@
               include "bt_format "
               org 0x0000
-0000 c2840009 bbit1 8 ,pf_patch_ext 
-0001 c000005c beq patch00_0 ,p_soft_reset 
-0002 c04580bd beq patch11_3 ,p_initialize_radio_cont 
-0003 c057000b beq patch15_6 ,p_app_init 
-0004 c06480cb beq patch19_1 ,p_mouse_setgpio_hibernate 
-0005 c06500d3 beq patch19_2 ,p_mouse_lpm_before_common 
-0006 c06980e7 beq patch1a_3 ,p_mouse_init_sunt 
-0007 c06b002c beq patch1a_6 ,p_mouse_priority_bb_event 
-0008 2020137c branch loop 
+0000 c284000b bbit1 8 ,pf_patch_ext 
+0001 c000005e beq patch00_0 ,p_soft_reset 
+0002 c04580bf beq patch11_3 ,p_initialize_radio_cont 
+0003 c057000d beq patch15_6 ,p_app_init 
+0004 c06480cd beq patch19_1 ,p_mouse_setgpio_hibernate 
+0005 c06500d5 beq patch19_2 ,p_mouse_lpm_before_common 
+0006 c06700e9 beq patch19_6 ,p_mouse_motion 
+0007 c068011b beq patch1a_0 ,p_mouse_seting_dpi 
+0008 c069813f beq patch1a_3 ,p_mouse_init_sunt 
+0009 c06b002e beq patch1a_6 ,p_mouse_priority_bb_event 
+000a 2020137c branch loop 
 
 pf_patch_ext:
-0009 c07500d8 beq patch3d_2 ,p_g24_transmit_no_interrupt 
-000a 2020137c branch loop 
+000b c07500da beq patch3d_2 ,p_g24_transmit_no_interrupt 
+000c 2020137c branch loop 
 
 p_app_init:
 
 p_mouse_init:
-000b 20406df3 call enable_authrom 
-000c 20403bf0 call mouse_setting_config 
-000d 204041a7 call mouse_init_sunt 
-000e 2040408e call mouse_dpi_config 
-000f 20758000 rtn wake 
-0010 20403d8a call mouse_usb_check_enable 
-0011 20404728 call mouse_drawing_optima_init 
-0012 20403bcf call mouse_cb_fuction 
-0013 2040423c call mouse_sensor_powerdown 
-0014 6fe0c92a fetch 1 ,mem_usb_addr 
-0015 c3838000 rtnbit1 7 
+000d 20406df3 call enable_authrom 
+000e 20403bf0 call mouse_setting_config 
+000f 204041a7 call mouse_init_sunt 
+0010 2040408e call mouse_dpi_config 
+0011 20758000 rtn wake 
+0012 20403d8a call mouse_usb_check_enable 
+0013 20404728 call mouse_drawing_optima_init 
+0014 20403bcf call mouse_cb_fuction 
+0015 2040423c call mouse_sensor_powerdown 
+0016 6fe0c92a fetch 1 ,mem_usb_addr 
+0017 c3838000 rtnbit1 7 
 
 p_mouse_init_wireless:
-0016 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0017 c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
-0018 6fe0c938 fetch 1 ,mem_device_flag 
-0019 c000001b beq mode_24g_device ,p_mouse_24g_start_mode 
-001a 20203d57 branch mouse_start_work + 5 
+0018 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0019 c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
+001a 6fe0c938 fetch 1 ,mem_device_flag 
+001b c000001d beq mode_24g_device ,p_mouse_24g_start_mode 
+001c 20203d57 branch mouse_start_work + 5 
 
 p_mouse_24g_start_mode:
-001b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-001c c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
-001d 20403d65 call mouse_wakeup_from_power_check 
-001e 20344806 branch mouse_24g_reconn_dongle_start ,user 
-001f 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0020 c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
-0021 c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
-0022 20404110 call mouse_key_check_once 
-0023 1a227e00 copy rega ,pdata 
-0024 1fe17e07 and pdata ,0x07 ,pdata 
-0025 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
-0026 98467c00 isub temp ,null 
-0027 2022c827 branch mouse_24g_start_pair_mode ,zero 
-0028 2020480c branch mouse_24g_reconn_general_dongle 
+001d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+001e c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
+001f 20403d65 call mouse_wakeup_from_power_check 
+0020 20344806 branch mouse_24g_reconn_dongle_start ,user 
+0021 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0022 c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
+0023 c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
+0024 20404110 call mouse_key_check_once 
+0025 1a227e00 copy rega ,pdata 
+0026 1fe17e07 and pdata ,0x07 ,pdata 
+0027 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+0028 98467c00 isub temp ,null 
+0029 2022c827 branch mouse_24g_start_pair_mode ,zero 
+002a 2020480c branch mouse_24g_reconn_general_dongle 
 
 p_mouse_cb_fuction:
-0029 58000040 setarg p_mouse_24g_package_data 
-002a 67e1489b store 2 ,mem_cb_24g_transmit_data 
-002b 20203bd1 branch mouse_cb_fuction + 2 
+002b 58000042 setarg p_mouse_24g_package_data 
+002c 67e1489b store 2 ,mem_cb_24g_transmit_data 
+002d 20203bd1 branch mouse_cb_fuction + 2 
 
 p_mouse_priority_bb_event:
-002c 1a627e00 copy regc ,pdata 
-002d c01d002f beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
-002e 20204336 branch mouse_priority_bb_event + 2 
+002e 1a627e00 copy regc ,pdata 
+002f c01d0031 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+0030 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_24g_attempt_fail:
-002f 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
-0030 243a47e1 nbranch mouse_24g_hibernate_set ,blank 
-0031 6fe0c88b fetch 1 ,mem_24g_reconn_type 
-0032 c0018034 beq receiver_and_3_0_addr ,p_mouse_reconn_dongle_attempt_fail 
-0033 20204836 branch mouse_24g_attempt_fail + 3 
+0031 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
+0032 243a47e1 nbranch mouse_24g_hibernate_set ,blank 
+0033 6fe0c88b fetch 1 ,mem_24g_reconn_type 
+0034 c0018036 beq receiver_and_3_0_addr ,p_mouse_reconn_dongle_attempt_fail 
+0035 20204836 branch mouse_24g_attempt_fail + 3 
 
 p_mouse_reconn_dongle_attempt_fail:
-0034 20400037 call p_g24_factory_check 
-0035 20344812 branch mouse_24g_start_auto_pair + 1 ,user 
-0036 20204849 branch mouse_reconn_dongle_attempt_fail 
+0036 20400039 call p_g24_factory_check 
+0037 20344812 branch mouse_24g_start_auto_pair + 1 ,user 
+0038 20204849 branch mouse_reconn_dongle_attempt_fail 
 
 p_g24_factory_check:
-0037 df200002 arg 2 ,loopcnt 
-0038 d8c04993 arg mem_mouse_24g_addr ,contr 
+0039 df200002 arg 2 ,loopcnt 
+003a d8c04993 arg mem_mouse_24g_addr ,contr 
 
 p_pdata_0xff_check:
-0039 20407e54 call enable_user 
-003a 5800ffff setarg 0xffff 
+003b 20407e54 call enable_user 
+003c 5800ffff setarg 0xffff 
 
 p_pdata_0xff_check_loop:
-003b e8410006 ifetcht 2 ,contr 
-003c 98467c00 isub temp ,null 
-003d 2442fe56 ncall disable_user ,zero 
-003e c200003b loop p_pdata_0xff_check_loop 
-003f 20600000 rtn 
+003d e8410006 ifetcht 2 ,contr 
+003e 98467c00 isub temp ,null 
+003f 2442fe56 ncall disable_user ,zero 
+0040 c200003d loop p_pdata_0xff_check_loop 
+0041 20600000 rtn 
 
 p_mouse_24g_package_data:
-0040 c6930000 rtnmark0 mark_24g 
-0041 20403f70 call mouse_motion 
-0042 24740000 nrtn user 
-0043 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0044 c30a8047 bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
-0045 6fe0cb8b fetch 1 ,mem_customer_key 
-0046 243a4884 nbranch mouse_24g_keyboard_package_data ,blank 
+0042 c6930000 rtnmark0 mark_24g 
+0043 20403f70 call mouse_motion 
+0044 24740000 nrtn user 
+0045 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0046 c30a8049 bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
+0047 6fe0cb8b fetch 1 ,mem_customer_key 
+0048 243a4884 nbranch mouse_24g_keyboard_package_data ,blank 
 
 p_mouse_24g_mouse_package_data:
-0047 204042cb call mouse_data_xy_release 
-0048 6fe0c836 fetch 1 ,mem_24g_data_type 
-0049 c2808056 bbit1 1 ,p_mouse_24g_mouse_package_data_now 
-004a 6848c7c7 fetcht 1 ,mem_24g_txbuf + 1 
-004b 6fe0c8d0 fetch 1 ,mem_mouse_key 
-004c 9841fe00 ior temp ,pdata 
-004d 67e0c8d0 store 1 ,mem_mouse_key 
-004e 6848c7cc fetcht 1 ,mem_24g_txbuf + 6 
-004f 6fe0c8d5 fetch 1 ,mem_mouse_z 
-0050 9840fe00 iadd temp ,pdata 
-0051 67e0c8d5 store 1 ,mem_mouse_z 
-0052 6848c7cd fetcht 1 ,mem_24g_txbuf + 7 
-0053 6fe0c8d6 fetch 1 ,mem_mouse_tz 
-0054 9840fe00 iadd temp ,pdata 
-0055 67e0c8d6 store 1 ,mem_mouse_tz 
+0049 204042cb call mouse_data_xy_release 
+004a 6fe0c836 fetch 1 ,mem_24g_data_type 
+004b c2808058 bbit1 1 ,p_mouse_24g_mouse_package_data_now 
+004c 6848c7c7 fetcht 1 ,mem_24g_txbuf + 1 
+004d 6fe0c8d0 fetch 1 ,mem_mouse_key 
+004e 9841fe00 ior temp ,pdata 
+004f 67e0c8d0 store 1 ,mem_mouse_key 
+0050 6848c7cc fetcht 1 ,mem_24g_txbuf + 6 
+0051 6fe0c8d5 fetch 1 ,mem_mouse_z 
+0052 9840fe00 iadd temp ,pdata 
+0053 67e0c8d5 store 1 ,mem_mouse_z 
+0054 6848c7cd fetcht 1 ,mem_24g_txbuf + 7 
+0055 6fe0c8d6 fetch 1 ,mem_mouse_tz 
+0056 9840fe00 iadd temp ,pdata 
+0057 67e0c8d6 store 1 ,mem_mouse_tz 
 
 p_mouse_24g_mouse_package_data_now:
-0056 70483601 jam type_ms ,mem_24g_data_type 
-0057 da200007 arg 7 ,rega 
-0058 da4048d0 arg mem_mouse_key ,regb 
-0059 6fe148d5 fetch 2 ,mem_mouse_z 
-005a 207a0000 rtn blank 
-005b 202026e1 branch g24_transmit_by_interrupt_enable 
+0058 70483601 jam type_ms ,mem_24g_data_type 
+0059 da200007 arg 7 ,rega 
+005a da4048d0 arg mem_mouse_key ,regb 
+005b 6fe148d5 fetch 2 ,mem_mouse_z 
+005c 207a0000 rtn blank 
+005d 202026e1 branch g24_transmit_by_interrupt_enable 
 
 p_soft_reset:
-005c 20800000 clear_stack 
-005d 2040005f call p_app_param_init 
-005e 20200804 branch soft_reset + 3 
+005e 20800000 clear_stack 
+005f 20400061 call p_app_param_init 
+0060 20200804 branch soft_reset + 3 
 
 p_app_param_init:
-005f 20758000 rtn wake 
-0060 20405c15 call app_read_efuse_sys_config 
-0061 20405c1e call app_read_efuse_dig_aon_vsel 
-0062 20405c24 call app_read_efuse_syn_afc_cfg1 
-0063 20405c29 call app_read_efuse_rf_ldo_cfg1 
-0064 20405c2f call app_read_efuse_rc_cal 
-0065 20405c33 call app_read_efuse_agc 
-0066 20200067 branch p_mouse_default_init 
+0061 20758000 rtn wake 
+0062 20405c15 call app_read_efuse_sys_config 
+0063 20405c1e call app_read_efuse_dig_aon_vsel 
+0064 20405c24 call app_read_efuse_syn_afc_cfg1 
+0065 20405c29 call app_read_efuse_rf_ldo_cfg1 
+0066 20405c2f call app_read_efuse_rc_cal 
+0067 20405c33 call app_read_efuse_agc 
+0068 20200069 branch p_mouse_default_init 
 
 p_mouse_default_init:
-0067 700b58ff jam 0xff ,mem_usb_offline_check_gpio 
-0068 704790ff jam 0xff ,mem_ui_button_gpio 
-0069 70478f1e jam 0x1e ,mem_ui_button_timeout 
-006a 5800492d setarg mem_mouse_led_type 
-006b 67e1448d store 2 ,mem_ui_led_struct_ptr 
-006c 70448c01 jam 1 ,mem_ui_led_struct_num 
-006d 58004ab5 setarg mem_mouse_rssi_signal_buf 
-006e 67e14899 store 2 ,mem_rssi_signal_buf_ptr 
-006f 70483601 jam 1 ,mem_24g_data_type 
-0070 6fe148fe fetch 2 ,mem_mouse_discovery_timeout 
-0071 67e14791 store 2 ,mem_discovery_timeout 
-0072 6fe14900 fetch 2 ,mem_mouse_24g_pair_timeout_init 
-0073 67e14881 store 2 ,mem_24g_pair_timeout_init 
-0074 6fe0c903 fetch 1 ,mem_mouse_24g_reconn_timeout_init 
-0075 67e14885 store 2 ,mem_24g_reconn_timeout_init 
-0076 6fe2c905 fetch 5 ,mem_rssi_dis_min_24g_init 
-0077 67e2c8cb store 5 ,mem_rssi_dis_min_24g 
-0078 6fe0c904 fetch 1 ,mem_mouse_24g_pair_tx_power 
-0079 67e0c87c store 1 ,mem_24g_pair_tx_power 
-007a 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-007b 247a0000 nrtn blank 
-007c 584a0800 setarg 0x4a0800 
-007d 67e1cbab store 3 ,mem_mouse_flag 
-007e 58000000 setarg 0x000000 
-007f e7e18005 istore 3 ,contw 
-0080 58000306 setarg 0x0306 
-0081 e7e10005 istore 2 ,contw 
-0082 70409901 jam 1 ,mem_lpm_mode 
-0083 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
-0084 2feffe00 isolate1 mouse_adc_enable ,pdata 
-0085 2040c6e6 call mouse_adc_read_enable ,true 
-0086 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
-0087 2feffe02 isolate1 mouse_24g_250hz_enable ,pdata 
-0088 2040c6e8 call mouse_24g_set_250hz ,true 
-0089 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
-008a 2feffe01 isolate1 mouse_search_dongle_enable ,pdata 
-008b 2040c6ea call mouse_24g_search_dongle_enable ,true 
-008c 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
-008d 2feffe03 isolate1 mouse_clk_16m_enable ,pdata 
-008e 2040c6ec call mouse_16m_enable ,true 
-008f 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
-0090 2feffe04 isolate1 mouse_dpi_4_level_enable ,pdata 
-0091 2040c6ee call mouse_dpi_4level_enable ,true 
-0092 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
-0093 2feffe05 isolate1 mouse_keyboard_enable ,pdata 
-0094 2040c6f8 call mouse_customer_key_enable ,true 
-0095 6fe0c866 fetch 1 ,mem_24g_ch_map_update 
-0096 245a230e ncall g24_chamap_param_update ,blank 
-0097 20403bfd call mouse_xtal_init 
-0098 6fe0c90b fetch 1 ,mem_mouse_global_setup 
-0099 1fe10407 and pdata ,0x07 ,temp 
-009a 6048c4a1 storet 1 ,mem_adc_channel 
-009b 1fe97e00 rshift3 pdata ,pdata 
-009c 1fe10401 and pdata ,0x01 ,temp 
-009d 6048c866 storet 1 ,mem_24g_ch_map_update 
-009e 1fe37e00 rshift pdata ,pdata 
-009f 1fe10403 and pdata ,0x03 ,temp 
-00a0 6048c8fd storet 1 ,mem_adc_config_flag_init 
-00a1 1feb7e00 rshift2 pdata ,pdata 
-00a2 1fe17e03 and pdata ,0x03 ,pdata 
-00a3 204047d4 call mouse_24g_long_sleep_set 
-00a4 6fe0c90c fetch 1 ,mem_mouse_global_setup1 
-00a5 1fe10403 and pdata ,0x03 ,temp 
-00a6 6048c924 storet 1 ,mem_sensor_angle_default 
-00a7 1feb7e00 rshift2 pdata ,pdata 
-00a8 1fe10403 and pdata ,0x03 ,temp 
-00a9 6048c925 storet 1 ,mem_sensor_angle_switch 
-00aa 1feb7e00 rshift2 pdata ,pdata 
-00ab 1fe17e03 and pdata ,0x03 ,pdata 
-00ac 67e0c926 store 1 ,mem_config_sensor_dpi 
-00ad 67e0c992 store 1 ,mem_mouse_dpi 
-00ae 1feb7e00 rshift2 pdata ,pdata 
-00af 1fe17e03 and pdata ,0x03 ,pdata 
-00b0 67e0cbb4 store 1 ,mem_device_number 
-00b1 580c0d0b setarg 0x0c0d0b 
-00b2 67e1c918 store 3 ,mem_lbutton_gpio 
-00b3 58ffffff setarg 0xffffff 
-00b4 e7e18005 istore 3 ,contw 
-00b5 580607ff setarg 0x0607ff 
+0069 700b58ff jam 0xff ,mem_usb_offline_check_gpio 
+006a 704790ff jam 0xff ,mem_ui_button_gpio 
+006b 70478f1e jam 0x1e ,mem_ui_button_timeout 
+006c 5800492d setarg mem_mouse_led_type 
+006d 67e1448d store 2 ,mem_ui_led_struct_ptr 
+006e 70448c01 jam 1 ,mem_ui_led_struct_num 
+006f 58004ab5 setarg mem_mouse_rssi_signal_buf 
+0070 67e14899 store 2 ,mem_rssi_signal_buf_ptr 
+0071 70483601 jam 1 ,mem_24g_data_type 
+0072 6fe148fe fetch 2 ,mem_mouse_discovery_timeout 
+0073 67e14791 store 2 ,mem_discovery_timeout 
+0074 6fe14900 fetch 2 ,mem_mouse_24g_pair_timeout_init 
+0075 67e14881 store 2 ,mem_24g_pair_timeout_init 
+0076 6fe0c903 fetch 1 ,mem_mouse_24g_reconn_timeout_init 
+0077 67e14885 store 2 ,mem_24g_reconn_timeout_init 
+0078 6fe2c905 fetch 5 ,mem_rssi_dis_min_24g_init 
+0079 67e2c8cb store 5 ,mem_rssi_dis_min_24g 
+007a 6fe0c904 fetch 1 ,mem_mouse_24g_pair_tx_power 
+007b 67e0c87c store 1 ,mem_24g_pair_tx_power 
+007c 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+007d 247a0000 nrtn blank 
+007e 584a0800 setarg 0x4a0800 
+007f 67e1cbab store 3 ,mem_mouse_flag 
+0080 58000000 setarg 0x000000 
+0081 e7e18005 istore 3 ,contw 
+0082 58000306 setarg 0x0306 
+0083 e7e10005 istore 2 ,contw 
+0084 70409901 jam 1 ,mem_lpm_mode 
+0085 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
+0086 2feffe00 isolate1 mouse_adc_enable ,pdata 
+0087 2040c6e6 call mouse_adc_read_enable ,true 
+0088 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
+0089 2feffe02 isolate1 mouse_24g_250hz_enable ,pdata 
+008a 2040c6e8 call mouse_24g_set_250hz ,true 
+008b 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
+008c 2feffe01 isolate1 mouse_search_dongle_enable ,pdata 
+008d 2040c6ea call mouse_24g_search_dongle_enable ,true 
+008e 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
+008f 2feffe03 isolate1 mouse_clk_16m_enable ,pdata 
+0090 2040c6ec call mouse_16m_enable ,true 
+0091 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
+0092 2feffe04 isolate1 mouse_dpi_4_level_enable ,pdata 
+0093 2040c6ee call mouse_dpi_4level_enable ,true 
+0094 6fe0c90a fetch 1 ,mem_mouse_enable_flag 
+0095 2feffe05 isolate1 mouse_keyboard_enable ,pdata 
+0096 2040c6f8 call mouse_customer_key_enable ,true 
+0097 6fe0c866 fetch 1 ,mem_24g_ch_map_update 
+0098 245a230e ncall g24_chamap_param_update ,blank 
+0099 20403bfd call mouse_xtal_init 
+009a 6fe0c90b fetch 1 ,mem_mouse_global_setup 
+009b 1fe10407 and pdata ,0x07 ,temp 
+009c 6048c4a1 storet 1 ,mem_adc_channel 
+009d 1fe97e00 rshift3 pdata ,pdata 
+009e 1fe10401 and pdata ,0x01 ,temp 
+009f 6048c866 storet 1 ,mem_24g_ch_map_update 
+00a0 1fe37e00 rshift pdata ,pdata 
+00a1 1fe10403 and pdata ,0x03 ,temp 
+00a2 6048c8fd storet 1 ,mem_adc_config_flag_init 
+00a3 1feb7e00 rshift2 pdata ,pdata 
+00a4 1fe17e03 and pdata ,0x03 ,pdata 
+00a5 204047d4 call mouse_24g_long_sleep_set 
+00a6 6fe0c90c fetch 1 ,mem_mouse_global_setup1 
+00a7 1fe10403 and pdata ,0x03 ,temp 
+00a8 6048c924 storet 1 ,mem_sensor_angle_default 
+00a9 1feb7e00 rshift2 pdata ,pdata 
+00aa 1fe10403 and pdata ,0x03 ,temp 
+00ab 6048c925 storet 1 ,mem_sensor_angle_switch 
+00ac 1feb7e00 rshift2 pdata ,pdata 
+00ad 1fe17e03 and pdata ,0x03 ,pdata 
+00ae 67e0c926 store 1 ,mem_config_sensor_dpi 
+00af 67e0c992 store 1 ,mem_mouse_dpi 
+00b0 1feb7e00 rshift2 pdata ,pdata 
+00b1 1fe17e03 and pdata ,0x03 ,pdata 
+00b2 67e0cbb4 store 1 ,mem_device_number 
+00b3 580c0d0b setarg 0x0c0d0b 
+00b4 67e1c918 store 3 ,mem_lbutton_gpio 
+00b5 58ffffff setarg 0xffffff 
 00b6 e7e18005 istore 3 ,contw 
-00b7 58ffffff setarg 0xffffff 
+00b7 580607ff setarg 0x0607ff 
 00b8 e7e18005 istore 3 ,contw 
-00b9 58001f80 setarg 0x1f80 
-00ba 67e14479 store 2 ,mem_eeprom_base 
-00bb 70448380 jam 0x80 ,mem_eeprom_block_size 
-00bc 20203c54 branch mouse_default_init_next 
+00b9 58ffffff setarg 0xffffff 
+00ba e7e18005 istore 3 ,contw 
+00bb 58001f80 setarg 0x1f80 
+00bc 67e14479 store 2 ,mem_eeprom_base 
+00bd 70448380 jam 0x80 ,mem_eeprom_block_size 
+00be 20203c54 branch mouse_default_init_next 
 
 p_initialize_radio_cont:
-00bd 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
-00be 2040126a call initialize_syn_afc_cfg1 
-00bf 20401271 call initialize_rf_ldo_cfg1 
-00c0 20401277 call initialize_rc_cal 
-00c1 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
-00c2 708a0305 jam 5 ,core_clkpll_cfg0 
-00c3 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
-00c4 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
-00c5 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
-00c6 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
-00c7 6fe0c0c5 fetch 1 ,mem_fcomp_div 
-00c8 c0841260 bne xtal_16m ,initialize_radio_cont_next 
-00c9 708a0834 jam 0x34 ,core_clkpll_cfg5 
-00ca 20201260 branch initialize_radio_cont_next 
+00bf 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+00c0 2040126a call initialize_syn_afc_cfg1 
+00c1 20401271 call initialize_rf_ldo_cfg1 
+00c2 20401277 call initialize_rc_cal 
+00c3 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+00c4 708a0305 jam 5 ,core_clkpll_cfg0 
+00c5 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+00c6 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+00c7 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+00c8 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+00c9 6fe0c0c5 fetch 1 ,mem_fcomp_div 
+00ca c0841260 bne xtal_16m ,initialize_radio_cont_next 
+00cb 708a0834 jam 0x34 ,core_clkpll_cfg5 
+00cc 20201260 branch initialize_radio_cont_next 
 
 p_mouse_setgpio_hibernate:
-00cb 204042e9 call mouse_set_sdio_high 
-00cc 20407fdc call clear_wake 
-00cd 20403e40 call mouse_lpm_before_common 
-00ce d8400013 arg 19 ,temp 
-00cf 20403f56 call mouse_gpio_config_input_pu 
-00d0 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-00d1 d840003f arg gpcfg_output_high ,temp 
-00d2 20206093 branch gpio_config_function_int 
+00cd 204042e9 call mouse_set_sdio_high 
+00ce 20407fdc call clear_wake 
+00cf 20403e40 call mouse_lpm_before_common 
+00d0 d8400013 arg 19 ,temp 
+00d1 20403f56 call mouse_gpio_config_input_pu 
+00d2 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+00d3 d840003f arg gpcfg_output_high ,temp 
+00d4 20206093 branch gpio_config_function_int 
 
 p_mouse_lpm_before_common:
-00d3 20403f88 call mouse_wheel_check 
-00d4 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-00d5 d840003f arg gpcfg_output_high ,temp 
-00d6 20406093 call gpio_config_function_int 
-00d7 20203e44 branch mouse_lpm_before_common_next 
+00d5 20403f88 call mouse_wheel_check 
+00d6 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+00d7 d840003f arg gpcfg_output_high ,temp 
+00d8 20406093 call gpio_config_function_int 
+00d9 20203e44 branch mouse_lpm_before_common_next 
 
 p_g24_transmit_no_interrupt:
-00d8 20402631 call g24_txdata_prep 
-00d9 243426a1 nbranch g24_nodata_transmit ,user 
+00da 20402631 call g24_txdata_prep 
+00db 243426a1 nbranch g24_nodata_transmit ,user 
 
 p_g24_transmit_start:
-00da 20402646 call g24_transmit_process 
-00db 204026ee call power_ctrl_start 
-00dc 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-00dd 243a00e2 nbranch p_g24_short_sleep ,blank 
+00dc 20402646 call g24_transmit_process 
+00dd 204026ee call power_ctrl_start 
+00de 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+00df 243a00e4 nbranch p_g24_short_sleep ,blank 
 
 p_g24_transmit_start_next:
-00de 6fe448b0 fetch 8 ,mem_24g_long_sleep_set 
-00df 67e4485c store 8 ,mem_24g_enter_hibernate 
-00e0 6fe148c2 fetch 2 ,mem_24g_long_sleep_param_update_timer_init 
-00e1 67e148c4 store 2 ,mem_24g_long_sleep_param_update_timer 
+00e0 6fe448b0 fetch 8 ,mem_24g_long_sleep_set 
+00e1 67e4485c store 8 ,mem_24g_enter_hibernate 
+00e2 6fe148c2 fetch 2 ,mem_24g_long_sleep_param_update_timer_init 
+00e3 67e148c4 store 2 ,mem_24g_long_sleep_param_update_timer 
 
 p_g24_short_sleep:
-00e2 204026bb call g24_lpm_wait 
-00e3 24740000 nrtn user 
-00e4 20407fdc call clear_wake 
-00e5 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
-00e6 202026b8 branch g24_long_sleep2 
+00e4 204026bb call g24_lpm_wait 
+00e5 24740000 nrtn user 
+00e6 20407fdc call clear_wake 
+00e7 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
+00e8 202026b8 branch g24_long_sleep2 
+
+p_mouse_motion:
+00e9 78547c00 disable user 
+00ea 58000000 setarg 0 
+00eb 67e348d1 store 6 ,mem_mouse_x 
+00ec 20404240 call mouse_check_sensor_data 
+00ed 204000ef call p_mouse_sensor_data_mul 
+00ee 20203f75 branch mouse_motion + 5 
+
+p_mouse_sensor_data_mul:
+00ef 6fe0c927 fetch 1 ,mem_config_sensor_type 
+00f0 c1860000 rtnne om16 
+00f1 6fe0c992 fetch 1 ,mem_mouse_dpi 
+00f2 1fe67e03 sub pdata ,3 ,pdata 
+00f3 242100f5 nbranch p_mouse_sensor_data_set ,positive 
+00f4 20600000 rtn 
+
+p_mouse_sensor_data_set:
+00f5 58000506 setarg 0x0506 
+00f6 67e14c0c store 2 ,mem_mouse_xy_date_times 
+00f7 20400108 call p_mouse_sensor_data_set_x 
+
+p_mouse_sensor_data_set_y:
+00f8 6fe0c8d3 fetch 1 ,mem_mouse_y 
+00f9 c28380fd bbit1 7 ,p_mouse_sensor_data_set_y_next 
+00fa 20400110 call p_mouse_sensor_data_set_next 
+00fb 67e0c8d3 store 1 ,mem_mouse_y 
+00fc 20600000 rtn 
+
+p_mouse_sensor_data_set_y_next:
+00fd 20400100 call p_mouse_sensor_data_set_reverse 
+00fe 67e0c8d3 store 1 ,mem_mouse_y 
+00ff 20600000 rtn 
+
+p_mouse_sensor_data_set_reverse:
+0100 1fe20400 copy pdata ,temp 
+0101 dfe00100 arg 0x100 ,pdata 
+0102 98467e00 isub temp ,pdata 
+0103 20400110 call p_mouse_sensor_data_set_next 
+0104 1fe20400 copy pdata ,temp 
+0105 dfe00100 arg 0x100 ,pdata 
+0106 98467e00 isub temp ,pdata 
+0107 20600000 rtn 
+
+p_mouse_sensor_data_set_x:
+0108 6fe0c8d1 fetch 1 ,mem_mouse_x 
+0109 c283810d bbit1 7 ,p_mouse_sensor_data_set_x_next 
+010a 20400110 call p_mouse_sensor_data_set_next 
+010b 67e0c8d1 store 1 ,mem_mouse_x 
+010c 20600000 rtn 
+
+p_mouse_sensor_data_set_x_next:
+010d 20400100 call p_mouse_sensor_data_set_reverse 
+010e 67e0c8d1 store 1 ,mem_mouse_x 
+010f 20600000 rtn 
+
+p_mouse_sensor_data_set_next:
+0110 6848cc0c fetcht 1 ,mem_mouse_xy_date_times 
+0111 984ffe00 imul32 temp ,pdata 
+0112 6848cc0d fetcht 1 ,mem_mouse_xy_date_times + 1 
+0113 9846fc00 idiv temp 
+0114 20407def call wait_div_end 
+0115 1807fe00 quotient pdata 
+0116 1fe67c7f sub pdata ,0x7f ,null 
+0117 24210119 nbranch p_mouse_sensor_data_set_next2 ,positive 
+0118 20600000 rtn 
+
+p_mouse_sensor_data_set_next2:
+0119 5800007f setarg 0x7f 
+011a 20600000 rtn 
+
+p_mouse_seting_dpi:
+011b 6fe0c927 fetch 1 ,mem_config_sensor_type 
+011c c0060130 beq om16 ,p_mouse_seting_om16_dpi 
+011d c0018121 beq p3212 ,p_mouse_seting_3212_dpi 
+011e 2040408f call mouse_setting_dpi_4_level 
+011f 204048e1 call mouse_dpi_led_blink_delay 
+0120 20204098 branch mouse_seting_sensor_type 
+
+p_mouse_seting_3212_dpi:
+0121 204046ee call mouse_dpi_4level_enable 
+0122 204048e1 call mouse_dpi_led_blink_delay 
+0123 6fe0c992 fetch 1 ,mem_mouse_dpi 
+0124 c000012a beq mouse_dpi_level1 ,p_mouse_set_p3212_cpi0 
+0125 c0008128 beq mouse_dpi_level2 ,p_mouse_set_p3212_cpi1 
+0126 c001012c beq mouse_dpi_level3 ,p_mouse_set_p3212_cpi2 
+0127 c001812e beq mouse_dpi_level4 ,p_mouse_set_p3212_cpi3 
+
+p_mouse_set_p3212_cpi1:
+0128 6fe0c9d5 fetch 1 ,mem_3212_dpi_1 
+0129 202040c7 branch mouse_p3212_dpi 
+
+p_mouse_set_p3212_cpi0:
+012a 6fe0c9d4 fetch 1 ,mem_3212_dpi_0 
+012b 202040c7 branch mouse_p3212_dpi 
+
+p_mouse_set_p3212_cpi2:
+012c 6fe0c9d6 fetch 1 ,mem_3212_dpi_2 
+012d 202040c7 branch mouse_p3212_dpi 
+
+p_mouse_set_p3212_cpi3:
+012e 6fe0c9d7 fetch 1 ,mem_3212_dpi_3 
+012f 202040c7 branch mouse_p3212_dpi 
+
+p_mouse_seting_om16_dpi:
+0130 204046ee call mouse_dpi_4level_enable 
+0131 204048e1 call mouse_dpi_led_blink_delay 
+0132 6fe0c992 fetch 1 ,mem_mouse_dpi 
+0133 c0000139 beq mouse_dpi_level1 ,p_mouse_om16_set_cpi0 
+0134 c0008137 beq mouse_dpi_level2 ,p_mouse_om16_set_cpi1 
+0135 c001013b beq mouse_dpi_level3 ,p_mouse_om16_set_cpi2 
+0136 c001813d beq mouse_dpi_level4 ,p_mouse_om16_set_cpi3 
+
+p_mouse_om16_set_cpi1:
+0137 6848cc09 fetcht 1 ,mem_om16_dpi_1 
+0138 202040a8 branch mouse_dpi_store 
+
+p_mouse_om16_set_cpi0:
+0139 6848cc08 fetcht 1 ,mem_om16_dpi_0 
+013a 202040a8 branch mouse_dpi_store 
+
+p_mouse_om16_set_cpi2:
+013b 6848cc0a fetcht 1 ,mem_om16_dpi_2 
+013c 202040a8 branch mouse_dpi_store 
+
+p_mouse_om16_set_cpi3:
+013d 6848cc0b fetcht 1 ,mem_om16_dpi_3 
+013e 202040a8 branch mouse_dpi_store 
 
 p_mouse_init_sunt:
-00e7 20403f65 call mouse_sensor_spi_init 
-00e8 20758000 rtn wake 
+013f 20403f65 call mouse_sensor_spi_init 
+0140 20758000 rtn wake 
 
 p_mouse_init_sensor_wakeup:
-00e9 20404236 call mouse_sensor_poweron 
+0141 20404236 call mouse_sensor_poweron 
 
 p_mouse_init_sensor:
-00ea 204041b5 call mouse_read_sensor_id 
-00eb c01800f1 beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
-00ec c018c217 beq p3065_id1 ,mouse_init_p3065 
-00ed c02c4220 beq pka8g2_id1 ,mouse_ka8g2_id2_judge 
-00ee 204041b2 call mouse_twspi_reset 
-00ef 20001af4 nop 6900 
-00f0 202000ea branch p_mouse_init_sensor 
+0142 204041b5 call mouse_read_sensor_id 
+0143 c0180149 beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
+0144 c018c217 beq p3065_id1 ,mouse_init_p3065 
+0145 c02c4220 beq pka8g2_id1 ,mouse_ka8g2_id2_judge 
+0146 204041b2 call mouse_twspi_reset 
+0147 20001af4 nop 6900 
+0148 20200142 branch p_mouse_init_sensor 
 
 p_mouse_init_p32xx_id2_judge:
-00f1 6fe0c9c2 fetch 1 ,mem_sensor_id2 
-00f2 c02d00f4 beq p_mx8650 ,p_mouse_mx8650_init_param 
-00f3 202041be branch mouse_init_p32xx_id2_judge + 2 
+0149 6fe0c9c2 fetch 1 ,mem_sensor_id2 
+014a c02d014f beq p_mx8650 ,p_mouse_mx8650_init_param 
+014b c029014d beq om16_id2 ,p_mouse_om16_init_param 
+014c 202041be branch mouse_init_p32xx_id2_judge + 2 
+
+p_mouse_om16_init_param:
+014d 7049270c jam om16 ,mem_config_sensor_type 
+014e 20600000 rtn 
 
 p_mouse_mx8650_init_param:
-00f4 70492705 jam mx8650 ,mem_config_sensor_type 
-00f5 58008006 setarg 0x8006 
-00f6 20405b0c call twspi_write 
-00f7 20407d12 call delay_10ms 
-00f8 da604be2 arg mem_sensor_8650_init_new ,regc 
-00f9 2040422b call mouse_sensor_wr_seq 
-00fa 2020408e branch mouse_dpi_config 
+014f 70492705 jam mx8650 ,mem_config_sensor_type 
+0150 58008006 setarg 0x8006 
+0151 20405b0c call twspi_write 
+0152 20407d12 call delay_10ms 
+0153 da604be2 arg mem_sensor_8650_init_new ,regc 
+0154 2040422b call mouse_sensor_wr_seq 
+0155 2020408e branch mouse_dpi_config 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/LRPair_24G/program/patch.prog	(revision 480)
+++ /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/LRPair_24G/program/patch.prog	(working copy)
@@ -5,6 +5,8 @@
 	beq patch15_6,p_app_init
 	beq patch19_1,p_mouse_setgpio_hibernate
 	beq patch19_2,p_mouse_lpm_before_common
+	beq patch19_6,p_mouse_motion
+	beq patch1a_0,p_mouse_seting_dpi
 	beq patch1a_3,p_mouse_init_sunt
 	beq patch1a_6,p_mouse_priority_bb_event
 	branch loop
@@ -35,6 +37,7 @@
 	fetch 1,mem_device_flag
 	beq MODE_24G_DEVICE,p_mouse_24g_start_mode
 	branch mouse_start_work+5
+
 p_mouse_24g_start_mode:
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
 	bbit0 MOUSE_ENABLE_24G,mouse_24g_mode_setup_error
@@ -304,6 +307,119 @@
 	call clear_wake
 	fetch 3,mem_24g_short_sleep_set
 	branch g24_long_sleep2
+p_mouse_motion:
+	disable user
+	setarg 0
+	store 6,mem_mouse_x
+	call mouse_check_sensor_data
+	call p_mouse_sensor_data_mul
+	branch mouse_motion+5
+
+p_mouse_sensor_data_mul:
+	fetch 1,mem_config_sensor_type
+	rtnne OM16
+	fetch 1,mem_mouse_dpi
+	sub pdata,3,pdata
+	nbranch p_mouse_sensor_data_set,positive
+	rtn
+p_mouse_sensor_data_set:
+	setarg 0x0506
+	store 2,mem_mouse_xy_date_times
+	call p_mouse_sensor_data_set_x
+p_mouse_sensor_data_set_y:
+	fetch 1,mem_mouse_y
+	bbit1 7,p_mouse_sensor_data_set_y_next
+	call p_mouse_sensor_data_set_next
+	store 1,mem_mouse_y
+	rtn
+p_mouse_sensor_data_set_y_next:
+	call p_mouse_sensor_data_set_reverse
+	store 1,mem_mouse_y
+	rtn
+p_mouse_sensor_data_set_reverse:
+	copy pdata,temp
+	arg 0x100,pdata
+	isub temp,pdata
+	call p_mouse_sensor_data_set_next
+	copy pdata,temp
+	arg 0x100,pdata
+	isub temp,pdata
+	rtn
+
+p_mouse_sensor_data_set_x:
+	fetch 1,mem_mouse_x 
+	bbit1 7,p_mouse_sensor_data_set_x_next
+	call p_mouse_sensor_data_set_next
+	store 1,mem_mouse_x
+	rtn
+p_mouse_sensor_data_set_x_next:
+	call p_mouse_sensor_data_set_reverse
+	store 1,mem_mouse_x
+	rtn
+
+p_mouse_sensor_data_set_next:
+	fetcht 1,mem_mouse_xy_date_times
+	imul32 temp,pdata
+	fetcht 1,mem_mouse_xy_date_times+1
+	idiv temp
+	call wait_div_end
+	quotient pdata
+	sub pdata,0x7f,null
+	nbranch p_mouse_sensor_data_set_next2,positive
+	rtn
+p_mouse_sensor_data_set_next2:
+	setarg 0x7f
+	rtn
+
+p_mouse_seting_dpi:
+	fetch 1,mem_config_sensor_type
+	beq OM16,p_mouse_seting_om16_dpi
+	beq P3212,p_mouse_seting_3212_dpi
+	call mouse_setting_dpi_4_level
+	call mouse_dpi_led_blink_delay
+	branch mouse_seting_sensor_type
+
+p_mouse_seting_3212_dpi:
+	call mouse_dpi_4level_enable
+	call mouse_dpi_led_blink_delay
+	fetch 1,mem_mouse_dpi
+	beq MOUSE_DPI_LEVEL1,p_mouse_set_p3212_cpi0	//1200
+	beq MOUSE_DPI_LEVEL2,p_mouse_set_p3212_cpi1	//1600
+	beq MOUSE_DPI_LEVEL3,p_mouse_set_p3212_cpi2	//2400
+	beq MOUSE_DPI_LEVEL4,p_mouse_set_p3212_cpi3	//800
+p_mouse_set_p3212_cpi1:
+	fetch 1,mem_3212_dpi_1
+	branch mouse_p3212_dpi
+p_mouse_set_p3212_cpi0:
+	fetch 1,mem_3212_dpi_0
+	branch mouse_p3212_dpi
+p_mouse_set_p3212_cpi2:
+	fetch 1,mem_3212_dpi_2
+	branch mouse_p3212_dpi
+p_mouse_set_p3212_cpi3:
+	fetch 1,mem_3212_dpi_3
+	branch mouse_p3212_dpi
+
+p_mouse_seting_om16_dpi:
+	call mouse_dpi_4level_enable
+	call mouse_dpi_led_blink_delay
+	fetch 1,mem_mouse_dpi
+	beq MOUSE_DPI_LEVEL1,p_mouse_om16_set_cpi0		//1200
+	beq MOUSE_DPI_LEVEL2,p_mouse_om16_set_cpi1		//1600
+	beq MOUSE_DPI_LEVEL3,p_mouse_om16_set_cpi2		//800
+	beq MOUSE_DPI_LEVEL4,p_mouse_om16_set_cpi3		//1000
+p_mouse_om16_set_cpi1:	//320x+8009
+	fetcht 1,mem_om16_dpi_1
+	branch mouse_dpi_store
+p_mouse_om16_set_cpi0:
+	fetcht 1,mem_om16_dpi_0
+	branch mouse_dpi_store
+p_mouse_om16_set_cpi2:
+	fetcht 1,mem_om16_dpi_2
+	branch mouse_dpi_store
+p_mouse_om16_set_cpi3:
+	fetcht 1,mem_om16_dpi_3
+	branch mouse_dpi_store
 
 p_mouse_init_sunt:
 	call mouse_sensor_spi_init
@@ -323,7 +439,14 @@
 p_mouse_init_p32xx_id2_judge:
 	fetch 1,mem_sensor_id2
 	beq P_MX8650,p_mouse_mx8650_init_param
+	beq OM16_ID2,p_mouse_om16_init_param
 	branch mouse_init_p32xx_id2_judge+2
+p_mouse_om16_init_param:
+	jam OM16,mem_config_sensor_type
+	rtn
+
+
+
 
 p_mouse_mx8650_init_param:	
 	jam MX8650,mem_config_sensor_type
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/LRPair_24G/sched/mouse.dat	(revision 480)
+++ /YC1308AC/branch/mouse_project/XZR/1319AC_only24g/LRPair_24G/sched/mouse.dat	(working copy)
@@ -72,6 +72,14 @@
 
 mem_store_information_delay_timer_init:05
 
+
+
+mem_om16_dpi:
+7 ##mem_om16_dpi_0
+7 ##mem_om16_dpi_1
+4 ##mem_om16_dpi_2
+6 ##mem_om16_dpi_3
+
 mem_sensor_8650_init_new:
 09 5a
 ff 27
