Index: format/app_mouse.format
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/format/app_mouse.format	(revision 1227)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/format/app_mouse.format	(working copy)
@@ -396,6 +396,9 @@
 4 mem_sleep_time_temp
 4 mem_sleep_miss_temp
 0 mem_mouse_end
+
+16 mem_mouse_rssi_signal_buf_patch
+16 mem_mouse_rssi_signal_buf_temp
 )
 
 
@@ -736,4 +739,20 @@
 1 MULTI_LED_BLINK
 )
 
+//uarta init param start
+(
+0xd0 AT_baud_230400
+0x177 AT_baud_128000
+0x1a0 AT_baud_115200
+0x4e2 AT_baud_38400
+0x1388 AT_baud_9600
+)
+
+(
+0x4e00 mem_module_rx_buf
+0x4eff mem_module_rx_buf_end
+0x4f00 mem_module_tx_buf
+0x4fff mem_module_tx_buf_end
+)
+//uarta init param end
 
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/output/eeprom.dat	(revision 1227)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/output/eeprom.dat	(working copy)
@@ -2,8 +2,8 @@
 02
 aa
 55
-e2
-15
+92
+16
 c2
 84
 00
@@ -11,95 +11,95 @@
 c0
 00
 00
-24
+25
 c0
 01
 80
-2b
+2e
 c0
 41
 80
-44
+47
 c0
 45
 80
-7b
+7e
 c0
 4f
 80
-88
+8b
 c0
 57
 00
-8a
+8d
 c0
 58
 00
-6f
+72
 c0
 61
 82
-bb
+be
 c0
 62
 00
-28
+2b
 c0
 63
 81
-9b
+9e
 c0
 64
 81
-a1
+a4
 c0
 65
 01
-d6
+d9
 c0
 66
 00
-6b
+6e
 c0
 67
 04
-05
+08
 c0
 67
 85
-05
+08
 c0
 68
 02
-d0
+d3
 c0
 68
 84
-37
+3a
 c0
 6a
 04
-16
+19
 c0
 6b
 02
-04
+07
 c0
 6c
 82
-e1
+e4
 c0
 6d
 03
-84
+87
 c0
 6f
 04
-aa
+ad
 c0
 74
 03
-b4
+b7
 20
 20
 13
@@ -107,43 +107,47 @@
 c0
 19
 80
-4b
+4e
 c0
 1a
 00
-50
+53
 c0
 43
 83
-b0
+b3
 c0
 50
 83
-c8
+cb
 c0
 60
 03
-d2
+d5
 c0
 6e
 82
-ab
+ae
 c0
 71
 02
-71
+74
 c0
 74
 82
-79
+7c
 c0
 75
 01
-3d
+40
 c0
 76
 03
-f9
+fc
+c0
+76
+85
+7b
 20
 20
 13
@@ -156,6 +160,14 @@
 40
 30
 f3
+58
+00
+4c
+71
+67
+e1
+48
+99
 20
 40
 3b
@@ -171,7 +183,7 @@
 24
 5a
 03
-02
+05
 20
 20
 3d
@@ -223,7 +235,7 @@
 20
 40
 00
-38
+3b
 20
 20
 08
@@ -255,7 +267,7 @@
 20
 3a
 00
-41
+44
 6f
 e0
 c6
@@ -443,7 +455,7 @@
 20
 40
 00
-50
+53
 20
 20
 3e
@@ -495,7 +507,7 @@
 20
 20
 00
-6f
+72
 70
 8a
 8b
@@ -559,7 +571,7 @@
 24
 55
 80
-b7
+ba
 20
 40
 6d
@@ -567,7 +579,7 @@
 20
 40
 00
-e2
+e5
 20
 40
 41
@@ -579,7 +591,7 @@
 20
 40
 00
-9a
+9d
 6f
 e1
 c8
@@ -591,11 +603,11 @@
 20
 40
 05
-74
+77
 20
 40
 00
-a5
+a8
 20
 40
 40
@@ -611,11 +623,11 @@
 20
 40
 00
-f8
+fb
 20
 40
 04
-28
+2b
 20
 20
 3b
@@ -667,15 +679,15 @@
 20
 40
 00
-b0
+b3
 20
 40
-02
-fd
+03
+00
 20
 20
 00
-a8
+ab
 6f
 e4
 4b
@@ -691,7 +703,7 @@
 c2
 83
 80
-ae
+b1
 70
 4c
 3a
@@ -719,7 +731,7 @@
 c2
 83
 80
-b5
+b8
 70
 4c
 39
@@ -759,7 +771,7 @@
 24
 21
 00
-c9
+cc
 d8
 c0
 4c
@@ -811,7 +823,7 @@
 20
 40
 00
-df
+e2
 6f
 e0
 cc
@@ -923,7 +935,7 @@
 20
 40
 00
-f2
+f5
 20
 40
 3d
@@ -931,7 +943,7 @@
 20
 40
 00
-ec
+ef
 6f
 e4
 4b
@@ -943,7 +955,7 @@
 20
 40
 00
-ef
+f2
 20
 20
 3b
@@ -979,7 +991,7 @@
 24
 5a
 00
-f5
+f8
 20
 20
 3f
@@ -987,19 +999,19 @@
 20
 40
 03
-34
+37
 20
 40
 03
-36
+39
 20
 20
 03
-38
+3b
 58
 00
+01
 00
-fd
 67
 e1
 48
@@ -1007,7 +1019,7 @@
 58
 00
 01
-17
+1a
 67
 e1
 48
@@ -1035,7 +1047,7 @@
 c3
 0a
 81
-04
+07
 6f
 e0
 cb
@@ -1055,7 +1067,7 @@
 c2
 80
 81
-13
+16
 68
 48
 c7
@@ -1187,7 +1199,7 @@
 24
 21
 01
-2d
+30
 20
 40
 25
@@ -1199,11 +1211,11 @@
 24
 2c
 01
-33
+36
 24
 37
 81
-33
+36
 20
 40
 48
@@ -1227,7 +1239,7 @@
 c0
 08
 01
-35
+38
 20
 60
 00
@@ -1239,7 +1251,7 @@
 20
 20
 01
-23
+26
 70
 4b
 a3
@@ -1271,7 +1283,7 @@
 20
 20
 04
-28
+2b
 20
 40
 26
@@ -1279,11 +1291,11 @@
 24
 34
 01
-e8
+eb
 20
 40
 01
-71
+74
 20
 40
 26
@@ -1295,7 +1307,7 @@
 24
 3a
 01
-47
+4a
 6f
 e4
 48
@@ -1335,7 +1347,7 @@
 24
 22
 81
-6b
+6e
 68
 49
 4c
@@ -1347,7 +1359,7 @@
 20
 22
 81
-61
+64
 6f
 e2
 4c
@@ -1355,7 +1367,7 @@
 20
 3a
 01
-61
+64
 68
 4a
 4c
@@ -1371,7 +1383,7 @@
 24
 21
 01
-64
+67
 6f
 e1
 c8
@@ -1383,7 +1395,7 @@
 24
 21
 01
-6f
+72
 d8
 40
 06
@@ -1395,7 +1407,7 @@
 24
 21
 01
-6f
+72
 67
 e2
 4c
@@ -1403,7 +1415,7 @@
 20
 40
 01
-68
+6b
 20
 40
 26
@@ -1419,7 +1431,7 @@
 20
 40
 01
-68
+6b
 6f
 e1
 c8
@@ -1427,7 +1439,7 @@
 20
 20
 01
-5c
+5f
 18
 46
 04
@@ -1443,7 +1455,7 @@
 20
 20
 01
-5c
+5f
 58
 00
 00
@@ -1471,7 +1483,7 @@
 20
 20
 01
-52
+55
 70
 4c
 68
@@ -1507,15 +1519,15 @@
 24
 2c
 01
-7d
+80
 24
 37
 81
-7d
+80
 20
 40
 05
-35
+38
 20
 40
 26
@@ -1523,7 +1535,7 @@
 20
 40
 01
-89
+8c
 20
 20
 26
@@ -1575,7 +1587,7 @@
 20
 20
 01
-74
+77
 6f
 e0
 cb
@@ -1583,7 +1595,7 @@
 24
 5a
 01
-8d
+90
 70
 4b
 e1
@@ -1663,11 +1675,11 @@
 20
 40
 04
-21
+24
 20
 40
 04
-28
+2b
 20
 20
 3e
@@ -1683,11 +1695,11 @@
 20
 40
 03
-44
+47
 20
 40
 00
-f5
+f8
 20
 40
 40
@@ -1747,15 +1759,15 @@
 20
 40
 01
-b6
+b9
 20
 40
 01
-c3
+c6
 20
 20
 01
-ca
+cd
 6f
 e1
 cb
@@ -1803,7 +1815,7 @@
 c2
 00
 01
-ba
+bd
 20
 60
 00
@@ -1951,11 +1963,11 @@
 20
 40
 04
-28
+2b
 20
 20
 01
-ed
+f0
 6f
 e0
 c8
@@ -1963,7 +1975,7 @@
 20
 5a
 01
-f6
+f9
 6f
 e0
 c8
@@ -1995,7 +2007,7 @@
 20
 40
 05
-74
+77
 6f
 e0
 cb
@@ -2067,7 +2079,7 @@
 20
 20
 01
-3f
+42
 1a
 62
 7e
@@ -2075,35 +2087,35 @@
 c0
 00
 82
-11
+14
 c0
 1e
 02
-3a
+3d
 c0
 1c
 82
-33
+36
 c0
 1d
 02
-45
+48
 c0
 19
 02
-1f
+22
 c0
 22
 02
-26
+29
 c0
 0a
 82
-15
+18
 c0
 0a
 02
-0e
+11
 20
 20
 43
@@ -2115,7 +2127,7 @@
 24
 5a
 03
-07
+0a
 20
 20
 43
@@ -2131,7 +2143,7 @@
 24
 5a
 03
-07
+0a
 20
 20
 43
@@ -2183,7 +2195,7 @@
 c0
 00
 82
-23
+26
 70
 4b
 76
@@ -2279,7 +2291,7 @@
 20
 40
 03
-07
+0a
 20
 20
 48
@@ -2307,15 +2319,15 @@
 c0
 00
 02
-42
+45
 20
 40
 03
-07
+0a
 20
 20
 02
-43
+46
 20
 40
 48
@@ -2335,7 +2347,7 @@
 24
 3a
 01
-df
+e2
 6f
 e0
 c8
@@ -2343,15 +2355,15 @@
 c0
 01
 02
-4c
+4f
 c0
 02
 02
-64
+67
 c0
 01
 82
-69
+6c
 20
 20
 48
@@ -2363,11 +2375,11 @@
 c2
 97
 82
-55
+58
 c2
 98
 02
-55
+58
 c3
 1d
 48
@@ -2387,7 +2399,7 @@
 20
 22
 82
-59
+5c
 20
 20
 48
@@ -2403,7 +2415,7 @@
 20
 40
 03
-02
+05
 20
 20
 48
@@ -2447,7 +2459,7 @@
 20
 40
 03
-02
+05
 20
 20
 48
@@ -2459,7 +2471,7 @@
 c3
 17
 82
-6e
+71
 6f
 e0
 cb
@@ -2467,7 +2479,7 @@
 c0
 00
 82
-6e
+71
 20
 20
 48
@@ -2479,15 +2491,15 @@
 c3
 17
 82
-6e
+71
 c2
 89
 82
-6e
+71
 c2
 89
 02
-6e
+71
 20
 20
 48
@@ -2503,7 +2515,7 @@
 20
 20
 01
-df
+e2
 70
 48
 8b
@@ -2551,7 +2563,7 @@
 20
 3a
 02
-81
+84
 6f
 e1
 48
@@ -2579,11 +2591,11 @@
 24
 2c
 02
-9c
+9f
 24
 37
 82
-9c
+9f
 20
 40
 26
@@ -2619,7 +2631,7 @@
 20
 42
 82
-98
+9b
 6f
 e0
 c8
@@ -2723,7 +2735,7 @@
 c0
 02
 02
-a9
+ac
 20
 20
 25
@@ -2767,7 +2779,7 @@
 c0
 00
 82
-b4
+b7
 20
 20
 26
@@ -2779,7 +2791,7 @@
 24
 34
 02
-ad
+b0
 20
 40
 26
@@ -2815,7 +2827,7 @@
 c0
 00
 02
-c0
+c3
 20
 20
 3d
@@ -2835,7 +2847,7 @@
 20
 34
 02
-ca
+cd
 6f
 e4
 4b
@@ -2843,11 +2855,11 @@
 c2
 98
 02
-cd
+d0
 c3
 18
 82
-cd
+d0
 20
 40
 41
@@ -2867,7 +2879,7 @@
 24
 5a
 03
-02
+05
 20
 20
 48
@@ -2879,7 +2891,7 @@
 24
 5a
 03
-02
+05
 20
 20
 48
@@ -2891,7 +2903,7 @@
 20
 40
 02
-d3
+d6
 20
 20
 40
@@ -2943,7 +2955,7 @@
 20
 3a
 03
-4d
+50
 67
 e0
 cb
@@ -2979,11 +2991,11 @@
 20
 40
 03
-4a
+4d
 20
 40
 03
-0b
+0e
 20
 40
 40
@@ -2995,7 +3007,7 @@
 20
 40
 03
-62
+65
 20
 40
 44
@@ -3011,7 +3023,7 @@
 20
 40
 03
-79
+7c
 20
 40
 45
@@ -3043,15 +3055,15 @@
 20
 40
 03
-3a
+3d
 20
 40
 03
-7c
+7f
 20
 20
 02
-fa
+fd
 da
 60
 4c
@@ -3135,7 +3147,7 @@
 c0
 00
 83
-1b
+1e
 6f
 e0
 cc
@@ -3143,7 +3155,7 @@
 24
 3a
 03
-13
+16
 70
 4c
 41
@@ -3159,7 +3171,7 @@
 20
 3a
 03
-18
+1b
 1f
 e0
 ff
@@ -3171,7 +3183,7 @@
 20
 20
 03
-22
+25
 70
 4c
 45
@@ -3183,7 +3195,7 @@
 20
 20
 03
-2e
+31
 da
 60
 4c
@@ -3191,7 +3203,7 @@
 da
 40
 03
-1e
+21
 20
 20
 31
@@ -3211,7 +3223,7 @@
 c0
 00
 83
-2e
+31
 70
 4c
 4d
@@ -3223,15 +3235,15 @@
 c0
 00
 03
-28
+2b
 c0
 00
 83
-2a
+2d
 c0
 01
 03
-2c
+2f
 20
 60
 00
@@ -3243,7 +3255,7 @@
 20
 20
 03
-2d
+30
 68
 48
 cc
@@ -3251,7 +3263,7 @@
 20
 20
 03
-2d
+30
 68
 48
 cc
@@ -3271,15 +3283,15 @@
 c0
 00
 03
-34
+37
 c0
 00
 83
-36
+39
 c0
 01
 03
-38
+3b
 20
 60
 00
@@ -3347,7 +3359,7 @@
 20
 21
 03
-48
+4b
 68
 48
 cb
@@ -3379,7 +3391,7 @@
 da
 40
 03
-4d
+50
 20
 20
 31
@@ -3435,11 +3447,11 @@
 20
 41
 03
-5c
+5f
 24
 41
 03
-60
+63
 20
 20
 48
@@ -3475,7 +3487,7 @@
 c0
 00
 03
-68
+6b
 6f
 e4
 4b
@@ -3491,7 +3503,7 @@
 20
 20
 03
-6b
+6e
 6f
 e4
 4b
@@ -3527,7 +3539,7 @@
 20
 22
 83
-72
+75
 20
 20
 44
@@ -3535,7 +3547,7 @@
 20
 40
 03
-77
+7a
 6f
 e0
 cb
@@ -3555,7 +3567,7 @@
 da
 40
 02
-59
+5c
 20
 20
 44
@@ -3587,7 +3599,7 @@
 da
 40
 03
-81
+84
 20
 20
 31
@@ -3599,7 +3611,7 @@
 c0
 00
 01
-df
+e2
 20
 20
 43
@@ -3647,7 +3659,7 @@
 c2
 85
 83
-97
+9a
 6f
 e4
 4b
@@ -3655,7 +3667,7 @@
 c3
 04
 03
-97
+9a
 68
 49
 49
@@ -3775,7 +3787,7 @@
 24
 3a
 03
-02
+05
 20
 20
 48
@@ -3823,7 +3835,7 @@
 c0
 04
 83
-bc
+bf
 20
 20
 4d
@@ -3923,7 +3935,7 @@
 c0
 02
 03
-d5
+d8
 20
 20
 19
@@ -3939,11 +3951,11 @@
 c0
 05
 03
-da
+dd
 c0
 09
 03
-e9
+ec
 20
 20
 1c
@@ -3971,7 +3983,7 @@
 c2
 81
 83
-e4
+e7
 6f
 e1
 44
@@ -3999,11 +4011,11 @@
 24
 22
 83
-e0
+e3
 24
 34
 03
-e0
+e3
 20
 20
 1e
@@ -4151,7 +4163,7 @@
 20
 40
 04
-30
+33
 6f
 e0
 c8
@@ -4171,7 +4183,7 @@
 20
 40
 04
-13
+16
 20
 20
 45
@@ -4199,7 +4211,7 @@
 c0
 05
 84
-1d
+20
 20
 40
 42
@@ -4219,7 +4231,7 @@
 20
 40
 04
-24
+27
 da
 60
 4b
@@ -4239,7 +4251,7 @@
 c0
 05
 84
-24
+27
 20
 20
 42
@@ -4275,7 +4287,7 @@
 c0
 05
 84
-2e
+31
 58
 00
 08
@@ -4295,7 +4307,7 @@
 20
 40
 04
-6e
+71
 6f
 e0
 cc
@@ -4303,7 +4315,7 @@
 24
 3a
 04
-85
+88
 6f
 e0
 cc
@@ -4311,11 +4323,11 @@
 24
 3a
 04
-84
+87
 20
 40
 04
-37
+3a
 20
 20
 40
@@ -4335,27 +4347,27 @@
 20
 40
 04
-41
+44
 20
 40
 04
-46
+49
 20
 40
 04
-4b
+4e
 20
 40
 04
-50
+53
 20
 40
 04
-5d
+60
 20
 40
 04
-6e
+71
 20
 20
 41
@@ -4367,7 +4379,7 @@
 20
 40
 04
-6a
+6d
 20
 40
 41
@@ -4387,7 +4399,7 @@
 20
 40
 04
-6a
+6d
 20
 40
 41
@@ -4407,7 +4419,7 @@
 20
 40
 04
-6a
+6d
 20
 40
 41
@@ -4451,7 +4463,7 @@
 c0
 7f
 84
-59
+5c
 20
 20
 41
@@ -4463,7 +4475,7 @@
 20
 40
 04
-6c
+6f
 68
 48
 c9
@@ -4503,7 +4515,7 @@
 c0
 7f
 84
-66
+69
 20
 20
 41
@@ -4515,7 +4527,7 @@
 20
 40
 04
-6c
+6f
 68
 48
 c9
@@ -4559,7 +4571,7 @@
 24
 3a
 04
-7b
+7e
 68
 48
 cc
@@ -4627,15 +4639,15 @@
 20
 20
 04
-78
+7b
 c0
 02
 04
-9f
+a2
 20
 40
 04
-a2
+a5
 6f
 e2
 4c
@@ -4671,19 +4683,19 @@
 c0
 00
 04
-93
+96
 c0
 00
 84
-96
+99
 c0
 01
 04
-99
+9c
 c0
 01
 84
-9c
+9f
 20
 60
 00
@@ -4763,7 +4775,7 @@
 24
 41
 04
-a7
+aa
 20
 60
 00
@@ -4791,11 +4803,11 @@
 20
 40
 04
-af
+b2
 20
 40
 04
-c3
+c6
 20
 20
 46
@@ -4831,7 +4843,7 @@
 20
 40
 04
-b8
+bb
 20
 20
 40
@@ -4859,7 +4871,7 @@
 c0
 7f
 84
-bf
+c2
 20
 20
 40
@@ -4871,7 +4883,7 @@
 20
 40
 04
-6c
+6f
 68
 48
 c9
@@ -4895,7 +4907,7 @@
 24
 3a
 04
-cc
+cf
 6f
 e0
 cc
@@ -4903,11 +4915,11 @@
 20
 40
 04
-6a
+6d
 20
 40
 04
-dd
+e0
 68
 48
 cc
@@ -4935,7 +4947,7 @@
 20
 40
 04
-6c
+6f
 70
 4c
 3f
@@ -4951,11 +4963,11 @@
 20
 40
 04
-f6
+f9
 20
 40
 04
-e1
+e4
 68
 48
 cc
@@ -4999,7 +5011,7 @@
 20
 40
 04
-ec
+ef
 67
 e0
 cc
@@ -5011,7 +5023,7 @@
 20
 3a
 04
-e8
+eb
 6f
 e0
 cc
@@ -5075,11 +5087,11 @@
 c0
 03
 85
-01
+04
 c0
 00
 05
-03
+06
 20
 60
 00
@@ -5119,11 +5131,11 @@
 c0
 03
 85
-01
+04
 c0
 00
 05
-03
+06
 20
 60
 00
@@ -5167,7 +5179,7 @@
 c2
 9e
 85
-11
+14
 18
 42
 7e
@@ -5199,7 +5211,7 @@
 24
 3a
 05
-2e
+31
 6f
 e4
 4b
@@ -5207,7 +5219,7 @@
 c2
 8e
 05
-22
+25
 18
 42
 7e
@@ -5219,11 +5231,11 @@
 c0
 00
 05
-1e
+21
 c0
 01
 05
-1c
+1f
 20
 60
 00
@@ -5235,7 +5247,7 @@
 20
 20
 05
-0e
+11
 58
 00
 00
@@ -5243,7 +5255,7 @@
 20
 20
 05
-0e
+11
 58
 00
 00
@@ -5251,7 +5263,7 @@
 20
 20
 05
-0e
+11
 58
 00
 00
@@ -5259,7 +5271,7 @@
 20
 20
 05
-0e
+11
 18
 42
 7e
@@ -5271,15 +5283,15 @@
 c0
 00
 05
-1e
+21
 c0
 01
 05
-20
+23
 c0
 01
 85
-1c
+1f
 20
 60
 00
@@ -5295,15 +5307,15 @@
 c0
 00
 05
-20
+23
 c0
 00
 85
-1c
+1f
 c0
 01
 85
-1a
+1d
 20
 60
 00
@@ -5315,7 +5327,7 @@
 c2
 8e
 05
-28
+2b
 18
 42
 7e
@@ -5327,11 +5339,11 @@
 c0
 00
 05
-1a
+1d
 c0
 00
 85
-1c
+1f
 20
 60
 00
@@ -5343,7 +5355,7 @@
 c0
 00
 85
-70
+73
 6f
 e0
 cc
@@ -5351,7 +5363,7 @@
 20
 3a
 05
-70
+73
 1b
 22
 7e
@@ -5419,7 +5431,7 @@
 20
 22
 85
-4d
+50
 18
 40
 84
@@ -5479,7 +5491,7 @@
 20
 21
 05
-64
+67
 1f
 e6
 7e
@@ -5515,7 +5527,7 @@
 24
 21
 05
-6e
+71
 60
 49
 c8
@@ -5555,57 +5567,221 @@
 20
 21
 05
-6e
-60
-49
-c8
-ad
-20
-60
-00
+71
+60
+49
+c8
+ad
+20
+60
+00
+00
+67
+e1
+c8
+ad
+20
+60
+00
+00
+70
+4c
+52
+01
+1b
+22
+7e
+00
+67
+e3
+4c
+53
+20
+60
+00
+00
+58
+00
+00
+00
+67
+e0
+cc
+52
+67
+e2
+cc
+5d
+20
+60
+00
+00
+6f
+e1
+47
+8c
+c3
+85
+80
+00
+c3
+83
+80
+00
+c3
+83
+00
+00
+20
+40
+05
+85
+20
+40
+05
+82
+20
+20
+26
+f5
+da
+20
+4c
+85
+df
+e0
+00
+0a
+20
+20
+25
+cd
+20
+40
+05
+8b
+da
+40
+4c
+81
+6f
+e0
+c8
+7d
+1f
+e0
+fe
+01
+1f
+e2
+72
+00
+20
+20
+05
+8e
+d8
+c0
+4c
+71
+d8
+a0
+4c
+81
+20
+20
+7d
+0c
+1f
+20
+f3
+ff
+1f
+22
+7e
+00
+20
+7a
+00
+00
+1f
+22
+22
+00
+1a
+20
+a3
+ff
+1a
+42
+0c
+00
+ef
+e0
+80
+06
+18
+c2
+0a
+00
+e8
+40
+80
+06
+98
+46
+7c
+00
+20
+40
+05
+9e
+18
+c0
+8d
+ff
+1a
+20
+a3
+ff
+20
+21
+05
+94
+c2
 00
-67
-e1
-c8
-ad
+05
+91
 20
 60
 00
 00
-70
-4c
-52
-01
-1b
-22
-7e
-00
-67
-e3
-4c
-53
+20
+41
+05
+a0
 20
 60
 00
 00
-58
-00
-00
-00
-67
+18
+a0
+8b
+ff
 e0
-cc
-52
-67
-e2
-cc
-5d
+40
+80
+05
+e7
+e0
+80
+05
 20
 60
 00
 00
-55
-65
+20
+a6
 aa
 55
 40
@@ -5673,7 +5849,7 @@
 00
 20
 04
-16
+36
 00
 00
 aa
@@ -5769,8 +5945,8 @@
 64
 64
 94
+75
 85
-90
 63
 75
 80
@@ -6821,15 +6997,15 @@
 00
 7d
 48
-07
+0f
 aa
 55
 02
 00
 99
 48
-b5
-4a
+71
+4c
 aa
 55
 01
@@ -6909,186 +7085,10 @@
 02
 40
 00
-0a
+b4
 1b
-55
-aa
-aa
-55
-85
-88
-f3
-c7
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+ec
+b2
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-53
-1b
+65
+f9
Index: output/flash.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/output/flash.dat	(revision 1227)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/output/flash.dat	(working copy)
@@ -2,8 +2,8 @@
 02
 aa
 55
-e2
-15
+92
+16
 c2
 84
 00
@@ -11,95 +11,95 @@
 c0
 00
 00
-24
+25
 c0
 01
 80
-2b
+2e
 c0
 41
 80
-44
+47
 c0
 45
 80
-7b
+7e
 c0
 4f
 80
-88
+8b
 c0
 57
 00
-8a
+8d
 c0
 58
 00
-6f
+72
 c0
 61
 82
-bb
+be
 c0
 62
 00
-28
+2b
 c0
 63
 81
-9b
+9e
 c0
 64
 81
-a1
+a4
 c0
 65
 01
-d6
+d9
 c0
 66
 00
-6b
+6e
 c0
 67
 04
-05
+08
 c0
 67
 85
-05
+08
 c0
 68
 02
-d0
+d3
 c0
 68
 84
-37
+3a
 c0
 6a
 04
-16
+19
 c0
 6b
 02
-04
+07
 c0
 6c
 82
-e1
+e4
 c0
 6d
 03
-84
+87
 c0
 6f
 04
-aa
+ad
 c0
 74
 03
-b4
+b7
 20
 20
 13
@@ -107,43 +107,47 @@
 c0
 19
 80
-4b
+4e
 c0
 1a
 00
-50
+53
 c0
 43
 83
-b0
+b3
 c0
 50
 83
-c8
+cb
 c0
 60
 03
-d2
+d5
 c0
 6e
 82
-ab
+ae
 c0
 71
 02
-71
+74
 c0
 74
 82
-79
+7c
 c0
 75
 01
-3d
+40
 c0
 76
 03
-f9
+fc
+c0
+76
+85
+7b
 20
 20
 13
@@ -156,6 +160,14 @@
 40
 30
 f3
+58
+00
+4c
+71
+67
+e1
+48
+99
 20
 40
 3b
@@ -171,7 +183,7 @@
 24
 5a
 03
-02
+05
 20
 20
 3d
@@ -223,7 +235,7 @@
 20
 40
 00
-38
+3b
 20
 20
 08
@@ -255,7 +267,7 @@
 20
 3a
 00
-41
+44
 6f
 e0
 c6
@@ -443,7 +455,7 @@
 20
 40
 00
-50
+53
 20
 20
 3e
@@ -495,7 +507,7 @@
 20
 20
 00
-6f
+72
 70
 8a
 8b
@@ -559,7 +571,7 @@
 24
 55
 80
-b7
+ba
 20
 40
 6d
@@ -567,7 +579,7 @@
 20
 40
 00
-e2
+e5
 20
 40
 41
@@ -579,7 +591,7 @@
 20
 40
 00
-9a
+9d
 6f
 e1
 c8
@@ -591,11 +603,11 @@
 20
 40
 05
-74
+77
 20
 40
 00
-a5
+a8
 20
 40
 40
@@ -611,11 +623,11 @@
 20
 40
 00
-f8
+fb
 20
 40
 04
-28
+2b
 20
 20
 3b
@@ -667,15 +679,15 @@
 20
 40
 00
-b0
+b3
 20
 40
-02
-fd
+03
+00
 20
 20
 00
-a8
+ab
 6f
 e4
 4b
@@ -691,7 +703,7 @@
 c2
 83
 80
-ae
+b1
 70
 4c
 3a
@@ -719,7 +731,7 @@
 c2
 83
 80
-b5
+b8
 70
 4c
 39
@@ -759,7 +771,7 @@
 24
 21
 00
-c9
+cc
 d8
 c0
 4c
@@ -811,7 +823,7 @@
 20
 40
 00
-df
+e2
 6f
 e0
 cc
@@ -923,7 +935,7 @@
 20
 40
 00
-f2
+f5
 20
 40
 3d
@@ -931,7 +943,7 @@
 20
 40
 00
-ec
+ef
 6f
 e4
 4b
@@ -943,7 +955,7 @@
 20
 40
 00
-ef
+f2
 20
 20
 3b
@@ -979,7 +991,7 @@
 24
 5a
 00
-f5
+f8
 20
 20
 3f
@@ -987,19 +999,19 @@
 20
 40
 03
-34
+37
 20
 40
 03
-36
+39
 20
 20
 03
-38
+3b
 58
 00
+01
 00
-fd
 67
 e1
 48
@@ -1007,7 +1019,7 @@
 58
 00
 01
-17
+1a
 67
 e1
 48
@@ -1035,7 +1047,7 @@
 c3
 0a
 81
-04
+07
 6f
 e0
 cb
@@ -1055,7 +1067,7 @@
 c2
 80
 81
-13
+16
 68
 48
 c7
@@ -1187,7 +1199,7 @@
 24
 21
 01
-2d
+30
 20
 40
 25
@@ -1199,11 +1211,11 @@
 24
 2c
 01
-33
+36
 24
 37
 81
-33
+36
 20
 40
 48
@@ -1227,7 +1239,7 @@
 c0
 08
 01
-35
+38
 20
 60
 00
@@ -1239,7 +1251,7 @@
 20
 20
 01
-23
+26
 70
 4b
 a3
@@ -1271,7 +1283,7 @@
 20
 20
 04
-28
+2b
 20
 40
 26
@@ -1279,11 +1291,11 @@
 24
 34
 01
-e8
+eb
 20
 40
 01
-71
+74
 20
 40
 26
@@ -1295,7 +1307,7 @@
 24
 3a
 01
-47
+4a
 6f
 e4
 48
@@ -1335,7 +1347,7 @@
 24
 22
 81
-6b
+6e
 68
 49
 4c
@@ -1347,7 +1359,7 @@
 20
 22
 81
-61
+64
 6f
 e2
 4c
@@ -1355,7 +1367,7 @@
 20
 3a
 01
-61
+64
 68
 4a
 4c
@@ -1371,7 +1383,7 @@
 24
 21
 01
-64
+67
 6f
 e1
 c8
@@ -1383,7 +1395,7 @@
 24
 21
 01
-6f
+72
 d8
 40
 06
@@ -1395,7 +1407,7 @@
 24
 21
 01
-6f
+72
 67
 e2
 4c
@@ -1403,7 +1415,7 @@
 20
 40
 01
-68
+6b
 20
 40
 26
@@ -1419,7 +1431,7 @@
 20
 40
 01
-68
+6b
 6f
 e1
 c8
@@ -1427,7 +1439,7 @@
 20
 20
 01
-5c
+5f
 18
 46
 04
@@ -1443,7 +1455,7 @@
 20
 20
 01
-5c
+5f
 58
 00
 00
@@ -1471,7 +1483,7 @@
 20
 20
 01
-52
+55
 70
 4c
 68
@@ -1507,15 +1519,15 @@
 24
 2c
 01
-7d
+80
 24
 37
 81
-7d
+80
 20
 40
 05
-35
+38
 20
 40
 26
@@ -1523,7 +1535,7 @@
 20
 40
 01
-89
+8c
 20
 20
 26
@@ -1575,7 +1587,7 @@
 20
 20
 01
-74
+77
 6f
 e0
 cb
@@ -1583,7 +1595,7 @@
 24
 5a
 01
-8d
+90
 70
 4b
 e1
@@ -1663,11 +1675,11 @@
 20
 40
 04
-21
+24
 20
 40
 04
-28
+2b
 20
 20
 3e
@@ -1683,11 +1695,11 @@
 20
 40
 03
-44
+47
 20
 40
 00
-f5
+f8
 20
 40
 40
@@ -1747,15 +1759,15 @@
 20
 40
 01
-b6
+b9
 20
 40
 01
-c3
+c6
 20
 20
 01
-ca
+cd
 6f
 e1
 cb
@@ -1803,7 +1815,7 @@
 c2
 00
 01
-ba
+bd
 20
 60
 00
@@ -1951,11 +1963,11 @@
 20
 40
 04
-28
+2b
 20
 20
 01
-ed
+f0
 6f
 e0
 c8
@@ -1963,7 +1975,7 @@
 20
 5a
 01
-f6
+f9
 6f
 e0
 c8
@@ -1995,7 +2007,7 @@
 20
 40
 05
-74
+77
 6f
 e0
 cb
@@ -2067,7 +2079,7 @@
 20
 20
 01
-3f
+42
 1a
 62
 7e
@@ -2075,35 +2087,35 @@
 c0
 00
 82
-11
+14
 c0
 1e
 02
-3a
+3d
 c0
 1c
 82
-33
+36
 c0
 1d
 02
-45
+48
 c0
 19
 02
-1f
+22
 c0
 22
 02
-26
+29
 c0
 0a
 82
-15
+18
 c0
 0a
 02
-0e
+11
 20
 20
 43
@@ -2115,7 +2127,7 @@
 24
 5a
 03
-07
+0a
 20
 20
 43
@@ -2131,7 +2143,7 @@
 24
 5a
 03
-07
+0a
 20
 20
 43
@@ -2183,7 +2195,7 @@
 c0
 00
 82
-23
+26
 70
 4b
 76
@@ -2279,7 +2291,7 @@
 20
 40
 03
-07
+0a
 20
 20
 48
@@ -2307,15 +2319,15 @@
 c0
 00
 02
-42
+45
 20
 40
 03
-07
+0a
 20
 20
 02
-43
+46
 20
 40
 48
@@ -2335,7 +2347,7 @@
 24
 3a
 01
-df
+e2
 6f
 e0
 c8
@@ -2343,15 +2355,15 @@
 c0
 01
 02
-4c
+4f
 c0
 02
 02
-64
+67
 c0
 01
 82
-69
+6c
 20
 20
 48
@@ -2363,11 +2375,11 @@
 c2
 97
 82
-55
+58
 c2
 98
 02
-55
+58
 c3
 1d
 48
@@ -2387,7 +2399,7 @@
 20
 22
 82
-59
+5c
 20
 20
 48
@@ -2403,7 +2415,7 @@
 20
 40
 03
-02
+05
 20
 20
 48
@@ -2447,7 +2459,7 @@
 20
 40
 03
-02
+05
 20
 20
 48
@@ -2459,7 +2471,7 @@
 c3
 17
 82
-6e
+71
 6f
 e0
 cb
@@ -2467,7 +2479,7 @@
 c0
 00
 82
-6e
+71
 20
 20
 48
@@ -2479,15 +2491,15 @@
 c3
 17
 82
-6e
+71
 c2
 89
 82
-6e
+71
 c2
 89
 02
-6e
+71
 20
 20
 48
@@ -2503,7 +2515,7 @@
 20
 20
 01
-df
+e2
 70
 48
 8b
@@ -2551,7 +2563,7 @@
 20
 3a
 02
-81
+84
 6f
 e1
 48
@@ -2579,11 +2591,11 @@
 24
 2c
 02
-9c
+9f
 24
 37
 82
-9c
+9f
 20
 40
 26
@@ -2619,7 +2631,7 @@
 20
 42
 82
-98
+9b
 6f
 e0
 c8
@@ -2723,7 +2735,7 @@
 c0
 02
 02
-a9
+ac
 20
 20
 25
@@ -2767,7 +2779,7 @@
 c0
 00
 82
-b4
+b7
 20
 20
 26
@@ -2779,7 +2791,7 @@
 24
 34
 02
-ad
+b0
 20
 40
 26
@@ -2815,7 +2827,7 @@
 c0
 00
 02
-c0
+c3
 20
 20
 3d
@@ -2835,7 +2847,7 @@
 20
 34
 02
-ca
+cd
 6f
 e4
 4b
@@ -2843,11 +2855,11 @@
 c2
 98
 02
-cd
+d0
 c3
 18
 82
-cd
+d0
 20
 40
 41
@@ -2867,7 +2879,7 @@
 24
 5a
 03
-02
+05
 20
 20
 48
@@ -2879,7 +2891,7 @@
 24
 5a
 03
-02
+05
 20
 20
 48
@@ -2891,7 +2903,7 @@
 20
 40
 02
-d3
+d6
 20
 20
 40
@@ -2943,7 +2955,7 @@
 20
 3a
 03
-4d
+50
 67
 e0
 cb
@@ -2979,11 +2991,11 @@
 20
 40
 03
-4a
+4d
 20
 40
 03
-0b
+0e
 20
 40
 40
@@ -2995,7 +3007,7 @@
 20
 40
 03
-62
+65
 20
 40
 44
@@ -3011,7 +3023,7 @@
 20
 40
 03
-79
+7c
 20
 40
 45
@@ -3043,15 +3055,15 @@
 20
 40
 03
-3a
+3d
 20
 40
 03
-7c
+7f
 20
 20
 02
-fa
+fd
 da
 60
 4c
@@ -3135,7 +3147,7 @@
 c0
 00
 83
-1b
+1e
 6f
 e0
 cc
@@ -3143,7 +3155,7 @@
 24
 3a
 03
-13
+16
 70
 4c
 41
@@ -3159,7 +3171,7 @@
 20
 3a
 03
-18
+1b
 1f
 e0
 ff
@@ -3171,7 +3183,7 @@
 20
 20
 03
-22
+25
 70
 4c
 45
@@ -3183,7 +3195,7 @@
 20
 20
 03
-2e
+31
 da
 60
 4c
@@ -3191,7 +3203,7 @@
 da
 40
 03
-1e
+21
 20
 20
 31
@@ -3211,7 +3223,7 @@
 c0
 00
 83
-2e
+31
 70
 4c
 4d
@@ -3223,15 +3235,15 @@
 c0
 00
 03
-28
+2b
 c0
 00
 83
-2a
+2d
 c0
 01
 03
-2c
+2f
 20
 60
 00
@@ -3243,7 +3255,7 @@
 20
 20
 03
-2d
+30
 68
 48
 cc
@@ -3251,7 +3263,7 @@
 20
 20
 03
-2d
+30
 68
 48
 cc
@@ -3271,15 +3283,15 @@
 c0
 00
 03
-34
+37
 c0
 00
 83
-36
+39
 c0
 01
 03
-38
+3b
 20
 60
 00
@@ -3347,7 +3359,7 @@
 20
 21
 03
-48
+4b
 68
 48
 cb
@@ -3379,7 +3391,7 @@
 da
 40
 03
-4d
+50
 20
 20
 31
@@ -3435,11 +3447,11 @@
 20
 41
 03
-5c
+5f
 24
 41
 03
-60
+63
 20
 20
 48
@@ -3475,7 +3487,7 @@
 c0
 00
 03
-68
+6b
 6f
 e4
 4b
@@ -3491,7 +3503,7 @@
 20
 20
 03
-6b
+6e
 6f
 e4
 4b
@@ -3527,7 +3539,7 @@
 20
 22
 83
-72
+75
 20
 20
 44
@@ -3535,7 +3547,7 @@
 20
 40
 03
-77
+7a
 6f
 e0
 cb
@@ -3555,7 +3567,7 @@
 da
 40
 02
-59
+5c
 20
 20
 44
@@ -3587,7 +3599,7 @@
 da
 40
 03
-81
+84
 20
 20
 31
@@ -3599,7 +3611,7 @@
 c0
 00
 01
-df
+e2
 20
 20
 43
@@ -3647,7 +3659,7 @@
 c2
 85
 83
-97
+9a
 6f
 e4
 4b
@@ -3655,7 +3667,7 @@
 c3
 04
 03
-97
+9a
 68
 49
 49
@@ -3775,7 +3787,7 @@
 24
 3a
 03
-02
+05
 20
 20
 48
@@ -3823,7 +3835,7 @@
 c0
 04
 83
-bc
+bf
 20
 20
 4d
@@ -3923,7 +3935,7 @@
 c0
 02
 03
-d5
+d8
 20
 20
 19
@@ -3939,11 +3951,11 @@
 c0
 05
 03
-da
+dd
 c0
 09
 03
-e9
+ec
 20
 20
 1c
@@ -3971,7 +3983,7 @@
 c2
 81
 83
-e4
+e7
 6f
 e1
 44
@@ -3999,11 +4011,11 @@
 24
 22
 83
-e0
+e3
 24
 34
 03
-e0
+e3
 20
 20
 1e
@@ -4151,7 +4163,7 @@
 20
 40
 04
-30
+33
 6f
 e0
 c8
@@ -4171,7 +4183,7 @@
 20
 40
 04
-13
+16
 20
 20
 45
@@ -4199,7 +4211,7 @@
 c0
 05
 84
-1d
+20
 20
 40
 42
@@ -4219,7 +4231,7 @@
 20
 40
 04
-24
+27
 da
 60
 4b
@@ -4239,7 +4251,7 @@
 c0
 05
 84
-24
+27
 20
 20
 42
@@ -4275,7 +4287,7 @@
 c0
 05
 84
-2e
+31
 58
 00
 08
@@ -4295,7 +4307,7 @@
 20
 40
 04
-6e
+71
 6f
 e0
 cc
@@ -4303,7 +4315,7 @@
 24
 3a
 04
-85
+88
 6f
 e0
 cc
@@ -4311,11 +4323,11 @@
 24
 3a
 04
-84
+87
 20
 40
 04
-37
+3a
 20
 20
 40
@@ -4335,27 +4347,27 @@
 20
 40
 04
-41
+44
 20
 40
 04
-46
+49
 20
 40
 04
-4b
+4e
 20
 40
 04
-50
+53
 20
 40
 04
-5d
+60
 20
 40
 04
-6e
+71
 20
 20
 41
@@ -4367,7 +4379,7 @@
 20
 40
 04
-6a
+6d
 20
 40
 41
@@ -4387,7 +4399,7 @@
 20
 40
 04
-6a
+6d
 20
 40
 41
@@ -4407,7 +4419,7 @@
 20
 40
 04
-6a
+6d
 20
 40
 41
@@ -4451,7 +4463,7 @@
 c0
 7f
 84
-59
+5c
 20
 20
 41
@@ -4463,7 +4475,7 @@
 20
 40
 04
-6c
+6f
 68
 48
 c9
@@ -4503,7 +4515,7 @@
 c0
 7f
 84
-66
+69
 20
 20
 41
@@ -4515,7 +4527,7 @@
 20
 40
 04
-6c
+6f
 68
 48
 c9
@@ -4559,7 +4571,7 @@
 24
 3a
 04
-7b
+7e
 68
 48
 cc
@@ -4627,15 +4639,15 @@
 20
 20
 04
-78
+7b
 c0
 02
 04
-9f
+a2
 20
 40
 04
-a2
+a5
 6f
 e2
 4c
@@ -4671,19 +4683,19 @@
 c0
 00
 04
-93
+96
 c0
 00
 84
-96
+99
 c0
 01
 04
-99
+9c
 c0
 01
 84
-9c
+9f
 20
 60
 00
@@ -4763,7 +4775,7 @@
 24
 41
 04
-a7
+aa
 20
 60
 00
@@ -4791,11 +4803,11 @@
 20
 40
 04
-af
+b2
 20
 40
 04
-c3
+c6
 20
 20
 46
@@ -4831,7 +4843,7 @@
 20
 40
 04
-b8
+bb
 20
 20
 40
@@ -4859,7 +4871,7 @@
 c0
 7f
 84
-bf
+c2
 20
 20
 40
@@ -4871,7 +4883,7 @@
 20
 40
 04
-6c
+6f
 68
 48
 c9
@@ -4895,7 +4907,7 @@
 24
 3a
 04
-cc
+cf
 6f
 e0
 cc
@@ -4903,11 +4915,11 @@
 20
 40
 04
-6a
+6d
 20
 40
 04
-dd
+e0
 68
 48
 cc
@@ -4935,7 +4947,7 @@
 20
 40
 04
-6c
+6f
 70
 4c
 3f
@@ -4951,11 +4963,11 @@
 20
 40
 04
-f6
+f9
 20
 40
 04
-e1
+e4
 68
 48
 cc
@@ -4999,7 +5011,7 @@
 20
 40
 04
-ec
+ef
 67
 e0
 cc
@@ -5011,7 +5023,7 @@
 20
 3a
 04
-e8
+eb
 6f
 e0
 cc
@@ -5075,11 +5087,11 @@
 c0
 03
 85
-01
+04
 c0
 00
 05
-03
+06
 20
 60
 00
@@ -5119,11 +5131,11 @@
 c0
 03
 85
-01
+04
 c0
 00
 05
-03
+06
 20
 60
 00
@@ -5167,7 +5179,7 @@
 c2
 9e
 85
-11
+14
 18
 42
 7e
@@ -5199,7 +5211,7 @@
 24
 3a
 05
-2e
+31
 6f
 e4
 4b
@@ -5207,7 +5219,7 @@
 c2
 8e
 05
-22
+25
 18
 42
 7e
@@ -5219,11 +5231,11 @@
 c0
 00
 05
-1e
+21
 c0
 01
 05
-1c
+1f
 20
 60
 00
@@ -5235,7 +5247,7 @@
 20
 20
 05
-0e
+11
 58
 00
 00
@@ -5243,7 +5255,7 @@
 20
 20
 05
-0e
+11
 58
 00
 00
@@ -5251,7 +5263,7 @@
 20
 20
 05
-0e
+11
 58
 00
 00
@@ -5259,7 +5271,7 @@
 20
 20
 05
-0e
+11
 18
 42
 7e
@@ -5271,15 +5283,15 @@
 c0
 00
 05
-1e
+21
 c0
 01
 05
-20
+23
 c0
 01
 85
-1c
+1f
 20
 60
 00
@@ -5295,15 +5307,15 @@
 c0
 00
 05
-20
+23
 c0
 00
 85
-1c
+1f
 c0
 01
 85
-1a
+1d
 20
 60
 00
@@ -5315,7 +5327,7 @@
 c2
 8e
 05
-28
+2b
 18
 42
 7e
@@ -5327,11 +5339,11 @@
 c0
 00
 05
-1a
+1d
 c0
 00
 85
-1c
+1f
 20
 60
 00
@@ -5343,7 +5355,7 @@
 c0
 00
 85
-70
+73
 6f
 e0
 cc
@@ -5351,7 +5363,7 @@
 20
 3a
 05
-70
+73
 1b
 22
 7e
@@ -5419,7 +5431,7 @@
 20
 22
 85
-4d
+50
 18
 40
 84
@@ -5479,7 +5491,7 @@
 20
 21
 05
-64
+67
 1f
 e6
 7e
@@ -5515,7 +5527,7 @@
 24
 21
 05
-6e
+71
 60
 49
 c8
@@ -5555,57 +5567,221 @@
 20
 21
 05
-6e
-60
-49
-c8
-ad
-20
-60
-00
+71
+60
+49
+c8
+ad
+20
+60
+00
+00
+67
+e1
+c8
+ad
+20
+60
+00
+00
+70
+4c
+52
+01
+1b
+22
+7e
+00
+67
+e3
+4c
+53
+20
+60
+00
+00
+58
+00
+00
+00
+67
+e0
+cc
+52
+67
+e2
+cc
+5d
+20
+60
+00
+00
+6f
+e1
+47
+8c
+c3
+85
+80
+00
+c3
+83
+80
+00
+c3
+83
+00
+00
+20
+40
+05
+85
+20
+40
+05
+82
+20
+20
+26
+f5
+da
+20
+4c
+85
+df
+e0
+00
+0a
+20
+20
+25
+cd
+20
+40
+05
+8b
+da
+40
+4c
+81
+6f
+e0
+c8
+7d
+1f
+e0
+fe
+01
+1f
+e2
+72
+00
+20
+20
+05
+8e
+d8
+c0
+4c
+71
+d8
+a0
+4c
+81
+20
+20
+7d
+0c
+1f
+20
+f3
+ff
+1f
+22
+7e
+00
+20
+7a
+00
+00
+1f
+22
+22
+00
+1a
+20
+a3
+ff
+1a
+42
+0c
+00
+ef
+e0
+80
+06
+18
+c2
+0a
+00
+e8
+40
+80
+06
+98
+46
+7c
+00
+20
+40
+05
+9e
+18
+c0
+8d
+ff
+1a
+20
+a3
+ff
+20
+21
+05
+94
+c2
 00
-67
-e1
-c8
-ad
+05
+91
 20
 60
 00
 00
-70
-4c
-52
-01
-1b
-22
-7e
-00
-67
-e3
-4c
-53
+20
+41
+05
+a0
 20
 60
 00
 00
-58
-00
-00
-00
-67
+18
+a0
+8b
+ff
 e0
-cc
-52
-67
-e2
-cc
-5d
+40
+80
+05
+e7
+e0
+80
+05
 20
 60
 00
 00
-55
-65
+20
+a6
 aa
 55
 40
@@ -5673,7 +5849,7 @@
 00
 20
 04
-16
+36
 00
 00
 aa
@@ -5769,8 +5945,8 @@
 64
 64
 94
+75
 85
-90
 63
 75
 80
@@ -6821,15 +6997,15 @@
 00
 7d
 48
-07
+0f
 aa
 55
 02
 00
 99
 48
-b5
-4a
+71
+4c
 aa
 55
 01
@@ -6909,186 +7085,10 @@
 02
 40
 00
-0a
+b4
 1b
-55
-aa
-aa
-55
-85
-88
-f3
-c7
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+ec
+b2
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-53
-1b
+65
+f9
Index: output/memmap.format
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/output/memmap.format	(revision 1227)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/output/memmap.format	(working copy)
@@ -2259,6 +2259,8 @@
 0x4c69 mem_sleep_time_temp
 0x4c6d mem_sleep_miss_temp
 0x4c71 mem_mouse_end
+0x4c71 mem_mouse_rssi_signal_buf_patch
+0x4c81 mem_mouse_rssi_signal_buf_temp
 0x48d0 mem_remote_car_hard_soft_switch
 0x48d1 mem_remote_car_queue_each_size
 0x48d2 mem_remote_car_queue_length
Index: program/g24_protocol_stack/24g_txpower_ctrl.prog
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/program/g24_protocol_stack/24g_txpower_ctrl.prog	(revision 1227)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/program/g24_protocol_stack/24g_txpower_ctrl.prog	(working copy)
@@ -9,6 +9,7 @@
 	rtnbit1 UI_STATE_BT_DISCOVERY
 	fetchr rega,2,mem_rssi_signal_buf_ptr
 	call rssi_average
+power_ctrl_store_rssi_avg_received:
 	storet 1,mem_rssi_avg_received
 	fetch 1,mem_rssi_dis_max_24g
 	bmark1 mark_24g,power_ctrl_start_next
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/program/patch.prog	(revision 1227)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/program/patch.prog	(working copy)
@@ -1,6 +1,7 @@
 
 //define G24_OTA
 define FIRE_KEY
+//define UARTA_DEBUG
 
 	bbit1 8,pf_patch_ext
 	beq patch00_0,p_soft_reset
@@ -39,12 +40,15 @@
 	beq patch3d_1,p_g24_reconn_dispatch
 	beq patch3d_2,p_g24_transmit_no_interrupt
 	beq patch3d_4,p_g24_lpm_wait
+	beq patch3d_5,p_power_ctrl_start
 	branch loop
 
 
 p_soft_reset:
 	clear_stack
 	call app_param_init
+	setarg mem_mouse_rssi_signal_buf_patch
+	store 2,mem_rssi_signal_buf_ptr	
 	call mouse_xtal_init		// 16M / 24M
 	branch soft_reset+3
 
@@ -233,6 +237,9 @@
 	call mouse_drawing_optima_init
 	call p_mouse_cb_fuction
 	call p_mouse_sensor_powerdown
+ifdef UARTA_DEBUG
+	call p_module_hardware_init
+endif
 	branch mouse_init+8
 
 
@@ -2434,5 +2441,166 @@
 	store 1,mem_tx_count
 	store 5,mem_tx_time_sum
 	rtn
-	
+
+p_power_ctrl_start:
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BLE_ADV
+	rtnbit1 UI_STATE_BT_RECONNECT
+	rtnbit1 UI_STATE_BT_DISCOVERY	
+	call p_rssi_sort	
+	call p_rssi_average
+	branch power_ctrl_store_rssi_avg_received
+	
+p_rssi_average:
+	arg mem_mouse_rssi_signal_buf_temp+4,rega
+	arg 10,pdata
+	branch rssi_average+2
+
+p_rssi_sort:
+	call p_memcpy16
+	arg mem_mouse_rssi_signal_buf_temp,regb
+	fetch 1,mem_rssi_buff_index
+	increase 1,pdata
+	copy pdata,loopcnt
+	branch p_bubble_sort
+
+p_memcpy16:
+	arg mem_mouse_rssi_signal_buf_patch,contr
+	arg mem_mouse_rssi_signal_buf_temp,contw
+	branch memcpy16
+
+//input:regb buff ptr,pdata buff length
+p_bubble_sort:
+	increase -1,loopcnt
+	deposit loopcnt
+	rtn blank
+p_external_loop:
+	copy loopcnt,rega
+	increase -1,rega
+	copy regb,contr
+p_internal_loop:
+	ifetch 1,contr
+	copy contr,contw
+	ifetcht 1,contr
+	isub temp,null
+	call p_sort_up
+	increase -1,contr
+	increase -1,rega
+	branch p_internal_loop,positive
+	loop p_external_loop
+	rtn
+p_sort_up:
+	call p_exchange_data,positive
+	rtn
+p_exchange_data:
+	increase -1,contw
+	istoret 1,contw
+	istore 1,contw
+	rtn
+
+ifdef UARTA_DEBUG
+p_module_hardware_init:
+	setarg AT_baud_230400
+	store uart_baud_len,core_uart_baud
+p_module_lpm_uart_init:
+	fetch 1,core_uart_ctrl
+	set0 BIT_UART_CONTROL_ENABLE,pdata
+	store 1,core_uart_ctrl
+	fetch 8,mem_module_uart_rx_buffer
+	call uarta_init_dma_mem
+	jam gpcfg_uart_txd,0x807c	//tx pin gpio12
+	jam 0,core_uart_ctrl
+
+	setarg mem_module_rx_buf
+	store 2,core_uart_rsaddr
+	setarg mem_module_rx_buf_end
+	store 2,core_uart_readdr
+	setarg mem_module_tx_buf
+	store 2,core_uart_tsaddr
+	setarg mem_module_tx_buf_end
+	store 2,core_uart_teaddr
+	
+	setarg mem_module_tx_buf
+	store 2,core_uart_twptr
+	setarg mem_module_rx_buf
+	store 2,core_uart_rrptr
+
+	fetch 2,core_clkoff
+	set0 CLOCK_OFF_UART,pdata
+	store 2,core_clkoff
+	jam uartclk_dpll,core_uart_clksel
+	jam uart_ctrl_normal,core_uart_ctrl
+	rtn
+
+p_print_space:
+	call uarta_prepare_tx
+	setarg 0x20
+	istore 1,contwu
+	branch uarta_send
+
+p_print_end:
+	call uarta_prepare_tx
+	setarg 0x0a0d
+	istore 2,contwu
+	branch uarta_send
+
+p_print_rssi_rece_ascii:
+	call uarta_prepare_tx
+	setarg 0x7372		//rs rec
+	istore 2,contwu
+	setarg 0x7220
+	istore 2,contwu
+	setarg 0x6563
+	istore 2,contwu
+	call uarta_send
+	branch p_print_colon_ascii
+
+p_print_rssi_avg_ascii:
+	call uarta_prepare_tx
+	setarg 0x7372		//rs avg
+	istore 2,contwu
+	setarg 0x6120
+	istore 2,contwu
+	setarg 0x6776	
+	istore 2,contwu
+	call uarta_send
+	branch p_print_colon_ascii
+
+p_print_colon_ascii:
+	call uarta_prepare_tx
+	setarg 0x3a
+	istore 1,contwu
+	branch uarta_send
+	
+//input: 1 byte hex @pdata  
+//output: 4 byte  '0','x', ASCII,ASCII, @pdata
+hex2ascii:
+	rshift4 pdata,rega  //high 4bit in rega
+	and_into 0x0f,pdata
+	call hex2ascii_half_byte
+	copy pdata,regb
+	copy rega,pdata
+	call hex2ascii_half_byte
+	lshift8 regb,regb
+	iadd regb,pdata
+	lshift16 pdata,pdata
+	arg 0x7830,regb   //0x
+	iadd regb,pdata
+	rtn
+
+//input: 1 byte hex @pdata  
+//output: 4 byte  '0','x', ASCII,ASCII, @pdata
+hex2ascii_half_byte:
+	arg 0xa,temp
+	isub temp,temp
+	nbranch hex2ascii_half_byte_numberic,positive
+	setarg 0x41  // A
+	iadd temp,pdata
+	rtn
+hex2ascii_half_byte_numberic:
+	arg 0x30,temp
+	iadd temp,pdata
+	rtn
+endif
+
 	
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/sched/mouse.dat	(revision 1227)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/sched/mouse.dat	(working copy)
@@ -103,8 +103,8 @@
 mem_mouse_24g_reconn_timeout_init:64 #10s
 
 mem_mouse_24g_pair_tx_power:94 #-20dBm
-mem_rssi_dis_min_24g_init:85
-mem_rssi_dis_max_24g_init:90
+mem_rssi_dis_min_24g_init:75
+mem_rssi_dis_max_24g_init:85
 mem_rssi_hex_received_max_value_init:63
 mem_rssi_dis_min_ble_init:75
 mem_rssi_dis_max_ble_init:80
@@ -482,8 +482,8 @@
 mem_24g_short_sleep_set:0c f8 00
 mem_24g_long_sleep_set:00 77 01
 mem_24g_enter_hibernate:00 48 60
-mem_rssi_buff_index:07
-mem_rssi_signal_buf_ptr:mem_mouse_rssi_signal_buf
+mem_rssi_buff_index:0f
+mem_rssi_signal_buf_ptr:mem_mouse_rssi_signal_buf_patch
 mem_power_ctrl_pac_succ_cnt_init:80
 mem_24g_long_sleep_param_update_timer_init:14 00
 mem_24g_transmit_by_interrupt_exit_count_init:50 00
