Index: output/flash.dat
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_1066/BR_Project/BR-881_PBSwitch_3mode_2ch_24M_Gan/output/flash.dat	(revision 4121)
+++ /branch/mouse_project/YJX_Project/YJX_1066/BR_Project/BR-881_PBSwitch_3mode_2ch_24M_Gan/output/flash.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-fe
+d2
 1f
 20
 20
@@ -51,7 +51,7 @@
 20
 40
 07
-98
+8d
 20
 40
 00
@@ -275,7 +275,7 @@
 c0
 42
 87
-6c
+61
 c0
 44
 87
@@ -659,7 +659,7 @@
 20
 20
 07
-6e
+63
 70
 11
 c5
@@ -667,7 +667,7 @@
 20
 20
 07
-6e
+63
 20
 40
 02
@@ -1715,7 +1715,7 @@
 20
 20
 07
-6e
+63
 70
 11
 c5
@@ -1723,7 +1723,7 @@
 20
 20
 07
-6e
+63
 70
 11
 c5
@@ -1731,7 +1731,7 @@
 20
 20
 07
-6e
+63
 79
 3f
 80
@@ -2567,7 +2567,7 @@
 20
 40
 04
-9e
+a3
 68
 00
 c2
@@ -2731,7 +2731,7 @@
 20
 20
 07
-6e
+63
 da
 20
 43
@@ -2795,7 +2795,7 @@
 20
 20
 07
-6e
+63
 70
 47
 9e
@@ -2935,7 +2935,7 @@
 20
 20
 07
-6e
+63
 70
 80
 86
@@ -4095,7 +4095,7 @@
 20
 20
 07
-6e
+63
 70
 0a
 99
@@ -4111,7 +4111,7 @@
 20
 20
 07
-6e
+63
 70
 11
 c5
@@ -4119,7 +4119,7 @@
 20
 20
 07
-6e
+63
 70
 11
 c5
@@ -4127,7 +4127,7 @@
 20
 20
 07
-6e
+63
 70
 11
 c5
@@ -4135,7 +4135,7 @@
 20
 20
 07
-6e
+63
 70
 11
 c5
@@ -4143,7 +4143,7 @@
 20
 20
 07
-6e
+63
 70
 4b
 bb
@@ -4171,7 +4171,7 @@
 20
 20
 07
-6e
+63
 70
 11
 c5
@@ -4179,7 +4179,7 @@
 20
 20
 07
-6e
+63
 70
 11
 c5
@@ -4187,7 +4187,7 @@
 20
 20
 07
-6e
+63
 70
 11
 c5
@@ -4195,7 +4195,7 @@
 20
 20
 07
-6e
+63
 70
 4b
 bb
@@ -4227,7 +4227,7 @@
 20
 20
 07
-6e
+63
 68
 00
 cb
@@ -5167,11 +5167,11 @@
 24
 34
 07
-98
+8d
 20
 40
 07
-8f
+84
 20
 20
 3f
@@ -5363,7 +5363,7 @@
 20
 20
 07
-6e
+63
 70
 11
 c5
@@ -5371,7 +5371,7 @@
 20
 20
 07
-6e
+63
 d8
 a0
 43
@@ -5487,7 +5487,7 @@
 20
 20
 07
-6e
+63
 70
 11
 c5
@@ -5495,7 +5495,7 @@
 20
 20
 07
-6e
+63
 68
 00
 84
@@ -6175,7 +6175,7 @@
 20
 20
 07
-6e
+63
 20
 40
 21
@@ -6635,7 +6635,7 @@
 20
 20
 07
-6e
+63
 70
 11
 c5
@@ -6643,7 +6643,7 @@
 20
 20
 07
-6e
+63
 68
 00
 85
@@ -6731,7 +6731,7 @@
 20
 20
 07
-6e
+63
 70
 11
 c5
@@ -6739,7 +6739,7 @@
 20
 20
 07
-6e
+63
 70
 11
 c5
@@ -6747,7 +6747,7 @@
 20
 20
 07
-6e
+63
 70
 4b
 04
@@ -7491,19 +7491,15 @@
 c0
 01
 07
-57
+56
 c0
 02
 07
-5f
+5a
 c0
 10
 07
-69
-20
-40
-07
-64
+5e
 70
 89
 55
@@ -7522,22 +7518,6 @@
 4b
 70
 89
-4c
-fb
-70
-89
-4d
-ef
-70
-89
-4e
-ec
-70
-89
-4f
-5e
-70
-89
 55
 d0
 70
@@ -7552,10 +7532,6 @@
 20
 29
 53
-20
-40
-07
-64
 70
 89
 55
@@ -7574,26 +7550,6 @@
 5b
 70
 89
-4c
-5b
-70
-89
-4d
-96
-70
-89
-4e
-2c
-70
-89
-4f
-46
-20
-60
-00
-00
-70
-89
 56
 c2
 70
@@ -7631,7 +7587,7 @@
 20
 22
 87
-8d
+82
 60
 08
 cb
@@ -7707,7 +7663,7 @@
 24
 22
 87
-7e
+73
 20
 40
 03
@@ -7755,7 +7711,7 @@
 20
 40
 07
-ee
+e3
 58
 00
 00
@@ -7763,7 +7719,7 @@
 20
 40
 07
-e1
+d6
 58
 00
 00
@@ -7771,7 +7727,7 @@
 20
 40
 07
-e7
+dc
 68
 00
 cb
@@ -7779,7 +7735,7 @@
 c0
 00
 87
-9b
+90
 df
 20
 00
@@ -7811,7 +7767,7 @@
 20
 40
 07
-ae
+a3
 68
 01
 11
@@ -7847,7 +7803,7 @@
 20
 40
 07
-b6
+ab
 68
 01
 11
@@ -7899,7 +7855,7 @@
 20
 20
 07
-bd
+b2
 68
 01
 11
@@ -7939,7 +7895,7 @@
 20
 20
 87
-c7
+bc
 68
 00
 91
@@ -7947,7 +7903,7 @@
 c0
 7f
 87
-ce
+c3
 68
 00
 91
@@ -7975,7 +7931,7 @@
 c0
 00
 07
-cb
+c0
 68
 01
 91
@@ -7983,7 +7939,7 @@
 20
 20
 07
-c3
+b8
 70
 11
 c4
@@ -7995,7 +7951,7 @@
 20
 20
 07
-c3
+b8
 68
 00
 91
@@ -8003,7 +7959,7 @@
 20
 40
 07
-d9
+ce
 60
 00
 91
@@ -8015,7 +7971,7 @@
 20
 3a
 07
-d7
+cc
 58
 00
 00
@@ -8039,7 +7995,7 @@
 20
 20
 07
-d4
+c9
 1f
 e6
 7e
@@ -8079,7 +8035,7 @@
 24
 21
 07
-ec
+e1
 9a
 46
 7c
@@ -8087,7 +8043,7 @@
 24
 21
 07
-ec
+e1
 70
 4b
 0e
@@ -8115,7 +8071,7 @@
 20
 20
 07
-e5
+da
 70
 4b
 0e
@@ -8135,7 +8091,7 @@
 20
 40
 07
-f7
+ec
 1f
 e2
 22
@@ -8151,7 +8107,7 @@
 20
 40
 07
-f7
+ec
 1f
 e2
 24
@@ -8167,7 +8123,7 @@
 c0
 7f
 87
-fc
+f1
 68
 00
 91
@@ -8191,9 +8147,9 @@
 20
 20
 07
-fa
-03
-8f
+ef
+e0
+42
 aa
 55
 08
@@ -8584,7 +8540,7 @@
 54
 35
 2e
-32
+30
 20
 4d
 6f
@@ -8604,7 +8560,7 @@
 54
 35
 2e
-32
+30
 20
 4d
 6f
@@ -8622,7 +8578,7 @@
 54
 35
 2e
-32
+30
 20
 4d
 6f
@@ -9145,7 +9101,7 @@
 00
 b3
 4b
-02
+03
 00
 aa
 55
@@ -9298,9 +9254,15 @@
 00
 58
 4b
-5d
+37
 31
 00
+55
+aa
+aa
+55
+74
+24
 ff
 20
 20
@@ -12634,5 +12596,5 @@
 55
 00
 00
-0e
-98
+45
+c0
Index: output/program.lis
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_1066/BR_Project/BR-881_PBSwitch_3mode_2ch_24M_Gan/output/program.lis	(revision 4121)
+++ /branch/mouse_project/YJX_Project/YJX_1066/BR_Project/BR-881_PBSwitch_3mode_2ch_24M_Gan/output/program.lis	(working copy)
@@ -17,7 +17,7 @@
 0008 6000cb35 store 1 ,mem_bt_ui_button_count 
 0009 204043ca call mouse_bt_discovery_button_down_disable 
 000a 2040030a call p_mouse_spi_init 
-000b 20400798 call p_drawing_optima_init 
+000b 2040078d call p_drawing_optima_init 
 000c 2040000f call p_mouse_cb_fuction 
 000d 20400022 call p_mouse_wakeup_from_power 
 000e 202002db branch p_mouse_setting_config 
@@ -83,7 +83,7 @@
 0040 c2840059 bbit1 8 ,pf_patch_ext 
 0041 c000806c beq patch00_1 ,p_soft_reset_1 
 0042 c0010076 beq patch00_2 ,p_soft_reset_2 
-0043 c042876c beq patch10_5 ,p_shutdown_radio 
+0043 c0428761 beq patch10_5 ,p_shutdown_radio 
 0044 c044873f beq patch11_1 ,p_set_freq_tx 
 0045 c00d8605 beq patch03_3 ,p_page_wait_fhs_reply_ok 
 0046 c0130607 beq patch04_6 ,p_role_switch_master 
@@ -201,11 +201,11 @@
 
 p_g24_pair_dispatch:
 00a2 7011c5c0 jam zcode_c0 ,mem_zcode_temp_param0 
-00a3 2020076e branch p_zcode_entrance 
+00a3 20200763 branch p_zcode_entrance 
 
 p_g24_reconn_dispatch:
 00a4 7011c570 jam zcode_70 ,mem_zcode_temp_param0 
-00a5 2020076e branch p_zcode_entrance 
+00a5 20200763 branch p_zcode_entrance 
 
 p_g24_transmit_by_interrupt:
 00a6 2040022c call p_g24_timer_check 
@@ -565,17 +565,17 @@
 
 p_g24_pairing_sm:
 01aa 7011c590 jam zcode_90 ,mem_zcode_temp_param0 
-01ab 2020076e branch p_zcode_entrance 
+01ab 20200763 branch p_zcode_entrance 
 
 p_g24_paring_mode_start:
 
 p_g24_paring_mode:
 01ac 7011c591 jam zcode_91 ,mem_zcode_temp_param0 
-01ad 2020076e branch p_zcode_entrance 
+01ad 20200763 branch p_zcode_entrance 
 
 p_g24_auto_pair_start:
 01ae 7011c561 jam zcode_61 ,mem_zcode_temp_param0 
-01af 2020076e branch p_zcode_entrance 
+01af 20200763 branch p_zcode_entrance 
 
 p_g24_check_51cmd_stop_24g:
 01b0 793f8026 set0 mark_24g ,mark 
@@ -836,7 +836,7 @@
 027d 6801c4a3 fetch 3 ,mem_le_lap + 3 
 027e 6001cbaf store 3 ,mem_le_lap_high_3b 
 027f 20400001 call p_wake_from_power 
-0280 2040049e call p_mouse_adc_read 
+0280 204004a3 call p_mouse_adc_read_once 
 0281 6800c231 fetch 1 ,mem_adc_power_flag 
 0282 c280b40a bbit1 1 ,app_enter_hibernate 
 0283 20400295 call p_mouse_switch_check 
@@ -893,7 +893,7 @@
 p_mouse4_0_check_reconn_target:
 02a7 2040432c call mouse_load_le_device 
 02a8 7011c523 jam zcode_23 ,mem_zcode_temp_param0 
-02a9 2020076e branch p_zcode_entrance 
+02a9 20200763 branch p_zcode_entrance 
 
 p_le_check_adv_flag:
 02aa da204370 arg mem_le_adv_data ,rega 
@@ -919,7 +919,7 @@
 
 p_mouse_24g_pairing_button:
 02b8 7011c562 jam zcode_62 ,mem_zcode_temp_param0 
-02b9 2020076e branch p_zcode_entrance 
+02b9 20200763 branch p_zcode_entrance 
 
 p_mouse_clear_sensor_data:
 02ba 70479e01 jam 1 ,mem_mouse_clear_sensor_data_flag 
@@ -972,7 +972,7 @@
 
 p_mouse_setting_config:
 02db 7011c580 jam zcode_80 ,mem_zcode_temp_param0 
-02dc 2020076e branch p_zcode_entrance 
+02dc 20200763 branch p_zcode_entrance 
 
 p_spid_init_flash:
 02dd 70808640 jam 0x40 ,core_spid_ctrl 
@@ -1356,7 +1356,7 @@
 p_mouse_le_bb_disconnected:
 03fc 20400420 call p_mouse_sensor_powerdown_check 
 03fd 7011c542 jam zcode_42 ,mem_zcode_temp_param0 
-03fe 2020076e branch p_zcode_entrance 
+03fe 20200763 branch p_zcode_entrance 
 
 p_mouse_le_enc_info:
 
@@ -1366,25 +1366,25 @@
 
 p_mouse_le_ll_start_encryt:
 0401 7011c5b3 jam zcode_b3 ,mem_zcode_temp_param0 
-0402 2020076e branch p_zcode_entrance 
+0402 20200763 branch p_zcode_entrance 
 
 p_mouse_le_conn_param_update_rsp_recieved:
 0403 7011c5a1 jam zcode_a1 ,mem_zcode_temp_param0 
-0404 2020076e branch p_zcode_entrance 
+0404 20200763 branch p_zcode_entrance 
 
 p_mouse_bb_event_reconn_timeout:
 
 p_mouse_bb_event_reconn_failed:
 0405 7011c5a3 jam zcode_a3 ,mem_zcode_temp_param0 
-0406 2020076e branch p_zcode_entrance 
+0406 20200763 branch p_zcode_entrance 
 
 p_mouse_irtual_cable_unplug:
 0407 7011c571 jam zcode_71 ,mem_zcode_temp_param0 
-0408 2020076e branch p_zcode_entrance 
+0408 20200763 branch p_zcode_entrance 
 
 p_mouse_sniff_not_accept:
 0409 7011c5b1 jam zcode_b1 ,mem_zcode_temp_param0 
-040a 2020076e branch p_zcode_entrance 
+040a 20200763 branch p_zcode_entrance 
 
 p_mouse_bb_event_connected:
 040b 704bbb00 jam 0 ,mem_mouse_key_function_disable 
@@ -1395,19 +1395,19 @@
 p_mouse_bb_event_disconnected:
 040f 20400420 call p_mouse_sensor_powerdown_check 
 0410 7011c5b4 jam zcode_b4 ,mem_zcode_temp_param0 
-0411 2020076e branch p_zcode_entrance 
+0411 20200763 branch p_zcode_entrance 
 
 p_mouse_enter_sniff_check:
 0412 7011c5b2 jam zcode_b2 ,mem_zcode_temp_param0 
-0413 2020076e branch p_zcode_entrance 
+0413 20200763 branch p_zcode_entrance 
 
 p_mouse_24g_pairing_complete:
 0414 7011c592 jam zcode_92 ,mem_zcode_temp_param0 
-0415 2020076e branch p_zcode_entrance 
+0415 20200763 branch p_zcode_entrance 
 
 p_mouse_24g_attempt_fail:
 0416 7011c5a0 jam zcode_a0 ,mem_zcode_temp_param0 
-0417 2020076e branch p_zcode_entrance 
+0417 20200763 branch p_zcode_entrance 
 
 p_mouse_24g_attempt_success:
 0418 704bbb00 jam 0 ,mem_mouse_key_function_disable 
@@ -1421,7 +1421,7 @@
 p_mouse_before_hibernate:
 041d 20400420 call p_mouse_sensor_powerdown_check 
 041e 7011c5a4 jam zcode_a4 ,mem_zcode_temp_param0 
-041f 2020076e branch p_zcode_entrance 
+041f 20200763 branch p_zcode_entrance 
 
 p_mouse_sensor_powerdown_check:
 0420 6800cb01 fetch 1 ,mem_mouse_init_sensor_reset_flag 
@@ -1766,8 +1766,8 @@
 0507 20403fb5 call mouse_cheak_sensor_data 
 0508 20404079 call mouse_zwheel 
 0509 2040050d call p_mouse_key 
-050a 24340798 nbranch p_drawing_optima_init ,user 
-050b 2040078f call p_drawing_optima 
+050a 2434078d nbranch p_drawing_optima_init ,user 
+050b 20400784 call p_drawing_optima 
 050c 20203fa0 branch mouse_motion + 9 
 
 p_mouse_key:
@@ -1841,11 +1841,11 @@
 
 p_le_addr_random_config:
 053a 7011c581 jam zcode_81 ,mem_zcode_temp_param0 
-053b 2020076e branch p_zcode_entrance 
+053b 20200763 branch p_zcode_entrance 
 
 p_mouse_start_discovery:
 053c 7011c550 jam zcode_50 ,mem_zcode_temp_param0 
-053d 2020076e branch p_zcode_entrance 
+053d 20200763 branch p_zcode_entrance 
 
 p_le_adv_data_update:
 053e d8a0437b arg mem_le_adv_data + 11 ,contw 
@@ -1886,11 +1886,11 @@
 
 p_le_update_param:
 0559 7011c540 jam zcode_40 ,mem_zcode_temp_param0 
-055a 2020076e branch p_zcode_entrance 
+055a 20200763 branch p_zcode_entrance 
 
 p_le_update_channel_map:
 055b 7011c541 jam zcode_41 ,mem_zcode_temp_param0 
-055c 2020076e branch p_zcode_entrance 
+055c 20200763 branch p_zcode_entrance 
 
 p_le_prepare_tx:
 055d 68008456 fetch 1 ,mem_le_arq 
@@ -2118,7 +2118,7 @@
 
 p_page_wait_fhs_reply_ok:
 0605 7011c500 jam zcode_00 ,mem_zcode_temp_param0 
-0606 2020076e branch p_zcode_entrance 
+0606 20200763 branch p_zcode_entrance 
 
 p_role_switch_master:
 0607 204021c9 call role_switch_check 
@@ -2267,11 +2267,11 @@
 
 p_mouse_bb_disconnected:
 0678 7011c510 jam zcode_10 ,mem_zcode_temp_param0 
-0679 2020076e branch p_zcode_entrance 
+0679 20200763 branch p_zcode_entrance 
 
 p_hid_rx_process:
 067a 7011c511 jam zcode_11 ,mem_zcode_temp_param0 
-067b 2020076e branch p_zcode_entrance 
+067b 20200763 branch p_zcode_entrance 
 
 p_parse_lmp_accepted:
 067c 68008552 fetch 1 ,mem_rxbuf + 1 
@@ -2301,15 +2301,15 @@
 
 p_send_lmp_escape:
 0690 7011c520 jam zcode_20 ,mem_zcode_temp_param0 
-0691 2020076e branch p_zcode_entrance 
+0691 20200763 branch p_zcode_entrance 
 
 p_send_lmp_accepted:
 0692 7011c521 jam zcode_21 ,mem_zcode_temp_param0 
-0693 2020076e branch p_zcode_entrance 
+0693 20200763 branch p_zcode_entrance 
 
 p_send_lmp_detach:
 0694 7011c522 jam zcode_22 ,mem_zcode_temp_param0 
-0695 2020076e branch p_zcode_entrance 
+0695 20200763 branch p_zcode_entrance 
 
 p_send_lmp_setup_complete:
 0696 704b0401 jam 1 ,mem_bt_send_lmp_setup_complete 
@@ -2595,242 +2595,229 @@
 074c 2000000a nop 10 
 074d 7089027d jam 0x7d ,rfen_mdm 
 074e 6800c1de fetch 1 ,mem_tx_power 
-074f c0010757 beq tx_power_5db ,p_set_tx_power_5db 
-0750 c002075f beq tx_power_f5db ,p_set_tx_power_f5db 
-0751 c0100769 beq tx_power_pair ,p_set_tx_power_pair 
+074f c0010756 beq tx_power_5db ,p_set_tx_power_5db 
+0750 c002075a beq tx_power_f5db ,p_set_tx_power_f5db 
+0751 c010075e beq tx_power_pair ,p_set_tx_power_pair 
 
 p_set_tx_power_0db:
-0752 20400764 call p_rx_low_sens 
-0753 708955d0 jam 0xd0 ,0x8955 
-0754 708956e0 jam 0xe0 ,0x8956 
-0755 7089586c jam 0x6c ,0x8958 
-0756 2020294b branch set_tx_power_0db 
+0752 708955d0 jam 0xd0 ,0x8955 
+0753 708956e0 jam 0xe0 ,0x8956 
+0754 7089586c jam 0x6c ,0x8958 
+0755 2020294b branch set_tx_power_0db 
 
 p_set_tx_power_5db:
-0757 70894cfb jam 0xfb ,0x894c 
-0758 70894def jam 0xef ,0x894d 
-0759 70894eec jam 0xec ,0x894e 
-075a 70894f5e jam 0x5e ,0x894f 
-075b 708955d0 jam 0xd0 ,0x8955 
-075c 708956e0 jam 0xe0 ,0x8956 
-075d 7089583c jam 0x3c ,0x8958 
-075e 20202953 branch set_tx_power_5db 
+0756 708955d0 jam 0xd0 ,0x8955 
+0757 708956e0 jam 0xe0 ,0x8956 
+0758 7089583c jam 0x3c ,0x8958 
+0759 20202953 branch set_tx_power_5db 
 
 p_set_tx_power_f5db:
-075f 20400764 call p_rx_low_sens 
-0760 708955d0 jam 0xd0 ,0x8955 
-0761 708956c0 jam 0xc0 ,0x8956 
-0762 7089586c jam 0x6c ,0x8958 
-0763 2020295b branch set_tx_power_f5db 
-
-p_rx_low_sens:
-0764 70894c5b jam 0x5b ,0x894c 
-0765 70894d96 jam 0x96 ,0x894d 
-0766 70894e2c jam 0x2c ,0x894e 
-0767 70894f46 jam 0x46 ,0x894f 
-0768 20600000 rtn 
+075a 708955d0 jam 0xd0 ,0x8955 
+075b 708956c0 jam 0xc0 ,0x8956 
+075c 7089586c jam 0x6c ,0x8958 
+075d 2020295b branch set_tx_power_f5db 
 
 p_set_tx_power_pair:
-0769 708956c2 jam 0xc2 ,0x8956 
-076a 708955d0 jam 0xd0 ,0x8955 
-076b 20600000 rtn 
+075e 708956c2 jam 0xc2 ,0x8956 
+075f 708955d0 jam 0xd0 ,0x8955 
+0760 20600000 rtn 
 
 p_shutdown_radio:
-076c 18002a08 force 8 ,radio_ctrl 
-076d 202028fa branch shutdown_radio + 1 
+0761 18002a08 force 8 ,radio_ctrl 
+0762 202028fa branch shutdown_radio + 1 
 
 p_zcode_entrance:
-076e 680891c5 fetcht 1 ,mem_zcode_temp_param0 
-076f 18518400 rshift4 temp ,temp 
-0770 6800cb57 fetch 1 ,mem_zcode_current_number 
-0771 98467c00 isub temp ,null 
-0772 2022878d branch p_zcode_run ,zero 
-0773 6008cb57 storet 1 ,mem_zcode_current_number 
-0774 18408401 increase 1 ,temp 
-0775 58000100 setarg zcode_buff_size 
-0776 984f8400 imul32 temp ,temp 
-0777 6801cb58 fetch 3 ,mem_xip_flash_offset 
-0778 98467e00 isub temp ,pdata 
-0779 6809cb5b fetcht 3 ,mem_flash_start_addr 
-077a 9840fe00 iadd temp ,pdata 
-077b 1fe0fffb increase -5 ,pdata 
-077c 6001cb5e store 3 ,mem_flash_address 
-077d 2040033d call p_flash_release_deep_power_down 
+0763 680891c5 fetcht 1 ,mem_zcode_temp_param0 
+0764 18518400 rshift4 temp ,temp 
+0765 6800cb57 fetch 1 ,mem_zcode_current_number 
+0766 98467c00 isub temp ,null 
+0767 20228782 branch p_zcode_run ,zero 
+0768 6008cb57 storet 1 ,mem_zcode_current_number 
+0769 18408401 increase 1 ,temp 
+076a 58000100 setarg zcode_buff_size 
+076b 984f8400 imul32 temp ,temp 
+076c 6801cb58 fetch 3 ,mem_xip_flash_offset 
+076d 98467e00 isub temp ,pdata 
+076e 6809cb5b fetcht 3 ,mem_flash_start_addr 
+076f 9840fe00 iadd temp ,pdata 
+0770 1fe0fffb increase -5 ,pdata 
+0771 6001cb5e store 3 ,mem_flash_address 
+0772 2040033d call p_flash_release_deep_power_down 
 
 p_zcode_read_loop:
-077e 6801cb5e fetch 3 ,mem_flash_address 
-077f d8400100 arg zcode_buff_size ,temp 
-0780 da201f00 arg mem_zcode_buff ,rega 
-0781 20406562 call spid_read_flash 
-0782 68021f00 fetch 4 ,mem_zcode_buff 
-0783 680a4b61 fetcht 4 ,mem_zcode_head 
-0784 98467c00 isub temp ,null 
-0785 2422877e nbranch p_zcode_read_loop ,zero 
-0786 2040030a call p_mouse_spi_init 
-0787 58001f00 setarg mem_zcode_buff 
-0788 60014199 store 2 ,mem_patch_ptr 
-0789 70419b40 jam zcode_code_size ,mem_patch_len 
-078a 204064ca call load_ucode 
-078b 58000000 setarg 0 
-078c 60024199 store 4 ,mem_patch_ptr 
+0773 6801cb5e fetch 3 ,mem_flash_address 
+0774 d8400100 arg zcode_buff_size ,temp 
+0775 da201f00 arg mem_zcode_buff ,rega 
+0776 20406562 call spid_read_flash 
+0777 68021f00 fetch 4 ,mem_zcode_buff 
+0778 680a4b61 fetcht 4 ,mem_zcode_head 
+0779 98467c00 isub temp ,null 
+077a 24228773 nbranch p_zcode_read_loop ,zero 
+077b 2040030a call p_mouse_spi_init 
+077c 58001f00 setarg mem_zcode_buff 
+077d 60014199 store 2 ,mem_patch_ptr 
+077e 70419b40 jam zcode_code_size ,mem_patch_len 
+077f 204064ca call load_ucode 
+0780 58000000 setarg 0 
+0781 60024199 store 4 ,mem_patch_ptr 
 
 p_zcode_run:
-078d 680091c5 fetch 1 ,mem_zcode_temp_param0 
-078e 20200001 branch p_zcode 
+0782 680091c5 fetch 1 ,mem_zcode_temp_param0 
+0783 20200001 branch p_zcode 
 
 p_drawing_optima:
-078f 6802469b fetch 4 ,mem_mouse_x 
-0790 207a0000 rtn blank 
-0791 204007ee call p_data_abs_check 
-0792 58000003 setarg 0x03 
-0793 204007e1 call p_data_greater_than_check 
-0794 58000002 setarg 0x02 
-0795 204007e7 call p_data_less_than_check 
-0796 6800cb0e fetch 1 ,mem_mouse_asm_flag 
-0797 c000879b beq 1 ,p_drawing_optima_modify 
+0784 6802469b fetch 4 ,mem_mouse_x 
+0785 207a0000 rtn blank 
+0786 204007e3 call p_data_abs_check 
+0787 58000003 setarg 0x03 
+0788 204007d6 call p_data_greater_than_check 
+0789 58000002 setarg 0x02 
+078a 204007dc call p_data_less_than_check 
+078b 6800cb0e fetch 1 ,mem_mouse_asm_flag 
+078c c0008790 beq 1 ,p_drawing_optima_modify 
 
 p_drawing_optima_init:
-0798 df200005 arg 5 ,loopcnt 
-0799 d8a04b0e arg mem_mouse_asm_flag ,contw 
-079a 20207ed4 branch clear_mem 
+078d df200005 arg 5 ,loopcnt 
+078e d8a04b0e arg mem_mouse_asm_flag ,contw 
+078f 20207ed4 branch clear_mem 
 
 p_drawing_optima_modify:
-079b 68014b0f fetch 2 ,mem_mouse_x_pre 
-079c 600111be store 2 ,mem_data_pre 
-079d 6801469b fetch 2 ,mem_mouse_x 
-079e 600111c0 store 2 ,mem_data_current 
-079f 204007ae call p_drawing_optima_data_x 
-07a0 680111be fetch 2 ,mem_data_pre 
-07a1 60014b0f store 2 ,mem_mouse_x_pre 
-07a2 680111c0 fetch 2 ,mem_data_current 
-07a3 6001469b store 2 ,mem_mouse_x 
-07a4 68014b11 fetch 2 ,mem_mouse_y_pre 
-07a5 600111be store 2 ,mem_data_pre 
-07a6 6801469d fetch 2 ,mem_mouse_y 
-07a7 600111c0 store 2 ,mem_data_current 
-07a8 204007b6 call p_drawing_optima_data_y 
-07a9 680111be fetch 2 ,mem_data_pre 
-07aa 60014b11 store 2 ,mem_mouse_y_pre 
-07ab 680111c0 fetch 2 ,mem_data_current 
-07ac 6001469d store 2 ,mem_mouse_y 
-07ad 20600000 rtn 
+0790 68014b0f fetch 2 ,mem_mouse_x_pre 
+0791 600111be store 2 ,mem_data_pre 
+0792 6801469b fetch 2 ,mem_mouse_x 
+0793 600111c0 store 2 ,mem_data_current 
+0794 204007a3 call p_drawing_optima_data_x 
+0795 680111be fetch 2 ,mem_data_pre 
+0796 60014b0f store 2 ,mem_mouse_x_pre 
+0797 680111c0 fetch 2 ,mem_data_current 
+0798 6001469b store 2 ,mem_mouse_x 
+0799 68014b11 fetch 2 ,mem_mouse_y_pre 
+079a 600111be store 2 ,mem_data_pre 
+079b 6801469d fetch 2 ,mem_mouse_y 
+079c 600111c0 store 2 ,mem_data_current 
+079d 204007ab call p_drawing_optima_data_y 
+079e 680111be fetch 2 ,mem_data_pre 
+079f 60014b11 store 2 ,mem_mouse_y_pre 
+07a0 680111c0 fetch 2 ,mem_data_current 
+07a1 6001469d store 2 ,mem_mouse_y 
+07a2 20600000 rtn 
 
 p_drawing_optima_data_x:
-07ae 680111be fetch 2 ,mem_data_pre 
-07af 680911c0 fetcht 2 ,mem_data_current 
-07b0 9840fe00 iadd temp ,pdata 
-07b1 6808cbb5 fetcht 1 ,mem_mouse_data_xtemp 
-07b2 9840fe00 iadd temp ,pdata 
-07b3 1fe10401 and pdata ,0x01 ,temp 
-07b4 6008cbb5 storet 1 ,mem_mouse_data_xtemp 
-07b5 202007bd branch p_drawing_optima_data 
+07a3 680111be fetch 2 ,mem_data_pre 
+07a4 680911c0 fetcht 2 ,mem_data_current 
+07a5 9840fe00 iadd temp ,pdata 
+07a6 6808cbb5 fetcht 1 ,mem_mouse_data_xtemp 
+07a7 9840fe00 iadd temp ,pdata 
+07a8 1fe10401 and pdata ,0x01 ,temp 
+07a9 6008cbb5 storet 1 ,mem_mouse_data_xtemp 
+07aa 202007b2 branch p_drawing_optima_data 
 
 p_drawing_optima_data_y:
-07b6 680111be fetch 2 ,mem_data_pre 
-07b7 680911c0 fetcht 2 ,mem_data_current 
-07b8 9840fe00 iadd temp ,pdata 
-07b9 6808cbb6 fetcht 1 ,mem_mouse_data_ytemp 
-07ba 9840fe00 iadd temp ,pdata 
-07bb 1fe10401 and pdata ,0x01 ,temp 
-07bc 6008cbb6 storet 1 ,mem_mouse_data_ytemp 
+07ab 680111be fetch 2 ,mem_data_pre 
+07ac 680911c0 fetcht 2 ,mem_data_current 
+07ad 9840fe00 iadd temp ,pdata 
+07ae 6808cbb6 fetcht 1 ,mem_mouse_data_ytemp 
+07af 9840fe00 iadd temp ,pdata 
+07b0 1fe10401 and pdata ,0x01 ,temp 
+07b1 6008cbb6 storet 1 ,mem_mouse_data_ytemp 
 
 p_drawing_optima_data:
-07bd 600191c2 store 3 ,mem_data_sum 
-07be 2feffe10 isolate1 16 ,pdata 
-07bf 202087c7 branch p_data_sum_overflow ,true 
-07c0 680091c3 fetch 1 ,mem_data_sum + 1 
-07c1 c07f87ce beq 0xff ,p_data_sum_n 
-07c2 680091c2 fetch 1 ,mem_data_sum 
+07b2 600191c2 store 3 ,mem_data_sum 
+07b3 2feffe10 isolate1 16 ,pdata 
+07b4 202087bc branch p_data_sum_overflow ,true 
+07b5 680091c3 fetch 1 ,mem_data_sum + 1 
+07b6 c07f87c3 beq 0xff ,p_data_sum_n 
+07b7 680091c2 fetch 1 ,mem_data_sum 
 
 p_data_store_pre:
-07c3 1fe37e00 rshift pdata ,pdata 
-07c4 600111be store 2 ,mem_data_pre 
-07c5 600111c0 store 2 ,mem_data_current 
-07c6 20600000 rtn 
+07b8 1fe37e00 rshift pdata ,pdata 
+07b9 600111be store 2 ,mem_data_pre 
+07ba 600111c0 store 2 ,mem_data_current 
+07bb 20600000 rtn 
 
 p_data_sum_overflow:
-07c7 680091c3 fetch 1 ,mem_data_sum + 1 
-07c8 c00007cb beq 0 ,p_data_sum_overflow_p 
-07c9 680191c2 fetch 3 ,mem_data_sum 
-07ca 202007c3 branch p_data_store_pre 
+07bc 680091c3 fetch 1 ,mem_data_sum + 1 
+07bd c00007c0 beq 0 ,p_data_sum_overflow_p 
+07be 680191c2 fetch 3 ,mem_data_sum 
+07bf 202007b8 branch p_data_store_pre 
 
 p_data_sum_overflow_p:
-07cb 7011c400 jam 0 ,mem_data_sum + 2 
-07cc 680091c2 fetch 1 ,mem_data_sum 
-07cd 202007c3 branch p_data_store_pre 
+07c0 7011c400 jam 0 ,mem_data_sum + 2 
+07c1 680091c2 fetch 1 ,mem_data_sum 
+07c2 202007b8 branch p_data_store_pre 
 
 p_data_sum_n:
-07ce 680091c2 fetch 1 ,mem_data_sum 
-07cf 204007d9 call p_pdata_get_half 
-07d0 600091be store 1 ,mem_data_pre 
-07d1 600091c0 store 1 ,mem_data_current 
-07d2 203a07d7 branch p_data_zero ,blank 
-07d3 580000ff setarg 0xff 
+07c3 680091c2 fetch 1 ,mem_data_sum 
+07c4 204007ce call p_pdata_get_half 
+07c5 600091be store 1 ,mem_data_pre 
+07c6 600091c0 store 1 ,mem_data_current 
+07c7 203a07cc branch p_data_zero ,blank 
+07c8 580000ff setarg 0xff 
 
 p_data_set_direction:
-07d4 600091bf store 1 ,mem_data_pre + 1 
-07d5 600091c1 store 1 ,mem_data_current + 1 
-07d6 20600000 rtn 
+07c9 600091bf store 1 ,mem_data_pre + 1 
+07ca 600091c1 store 1 ,mem_data_current + 1 
+07cb 20600000 rtn 
 
 p_data_zero:
-07d7 58000000 setarg 0 
-07d8 202007d4 branch p_data_set_direction 
+07cc 58000000 setarg 0 
+07cd 202007c9 branch p_data_set_direction 
 
 p_pdata_get_half:
-07d9 1fe67e00 sub pdata ,0 ,pdata 
-07da 60008aae store 1 ,mem_rega 
-07db 68008aae fetch 1 ,mem_rega 
-07dc 1fe37e00 rshift pdata ,pdata 
-07dd 60008aae store 1 ,mem_rega 
-07de 68008aae fetch 1 ,mem_rega 
-07df 1fe67e00 sub pdata ,0 ,pdata 
-07e0 20600000 rtn 
+07ce 1fe67e00 sub pdata ,0 ,pdata 
+07cf 60008aae store 1 ,mem_rega 
+07d0 68008aae fetch 1 ,mem_rega 
+07d1 1fe37e00 rshift pdata ,pdata 
+07d2 60008aae store 1 ,mem_rega 
+07d3 68008aae fetch 1 ,mem_rega 
+07d4 1fe67e00 sub pdata ,0 ,pdata 
+07d5 20600000 rtn 
 
 p_data_greater_than_check:
-07e1 9a267c00 isub rega ,null 
-07e2 242107ec nbranch p_enable_asm ,positive 
-07e3 9a467c00 isub regb ,null 
-07e4 242107ec nbranch p_enable_asm ,positive 
+07d6 9a267c00 isub rega ,null 
+07d7 242107e1 nbranch p_enable_asm ,positive 
+07d8 9a467c00 isub regb ,null 
+07d9 242107e1 nbranch p_enable_asm ,positive 
 
 p_disable_asm:
-07e5 704b0e00 jam 0 ,mem_mouse_asm_flag 
-07e6 20600000 rtn 
+07da 704b0e00 jam 0 ,mem_mouse_asm_flag 
+07db 20600000 rtn 
 
 p_data_less_than_check:
-07e7 9a267c00 isub rega ,null 
-07e8 24610000 nrtn positive 
-07e9 9a467c00 isub regb ,null 
-07ea 24610000 nrtn positive 
-07eb 202007e5 branch p_disable_asm 
+07dc 9a267c00 isub rega ,null 
+07dd 24610000 nrtn positive 
+07de 9a467c00 isub regb ,null 
+07df 24610000 nrtn positive 
+07e0 202007da branch p_disable_asm 
 
 p_enable_asm:
-07ec 704b0e01 jam 1 ,mem_mouse_asm_flag 
-07ed 20600000 rtn 
+07e1 704b0e01 jam 1 ,mem_mouse_asm_flag 
+07e2 20600000 rtn 
 
 p_data_abs_check:
-07ee 6801469b fetch 2 ,mem_mouse_x 
-07ef 600111c0 store 2 ,mem_data_current 
-07f0 204007f7 call p_data_abs 
-07f1 1fe22200 copy pdata ,rega 
-07f2 6801469d fetch 2 ,mem_mouse_y 
-07f3 600111c0 store 2 ,mem_data_current 
-07f4 204007f7 call p_data_abs 
-07f5 1fe22400 copy pdata ,regb 
-07f6 20600000 rtn 
+07e3 6801469b fetch 2 ,mem_mouse_x 
+07e4 600111c0 store 2 ,mem_data_current 
+07e5 204007ec call p_data_abs 
+07e6 1fe22200 copy pdata ,rega 
+07e7 6801469d fetch 2 ,mem_mouse_y 
+07e8 600111c0 store 2 ,mem_data_current 
+07e9 204007ec call p_data_abs 
+07ea 1fe22400 copy pdata ,regb 
+07eb 20600000 rtn 
 
 p_data_abs:
-07f7 680091c1 fetch 1 ,mem_data_current + 1 
-07f8 c07f87fc beq 0xff ,p_data_reversal 
-07f9 680091c0 fetch 1 ,mem_data_current 
+07ec 680091c1 fetch 1 ,mem_data_current + 1 
+07ed c07f87f1 beq 0xff ,p_data_reversal 
+07ee 680091c0 fetch 1 ,mem_data_current 
 
 p_data_abs_store:
-07fa 1fe17eff and_into 0xff ,pdata 
-07fb 20600000 rtn 
+07ef 1fe17eff and_into 0xff ,pdata 
+07f0 20600000 rtn 
 
 p_data_reversal:
-07fc 680111c0 fetch 2 ,mem_data_current 
-07fd 1fe67e00 sub pdata ,0 ,pdata 
-07fe 202007fa branch p_data_abs_store 
+07f1 680111c0 fetch 2 ,mem_data_current 
+07f2 1fe67e00 sub pdata ,0 ,pdata 
+07f3 202007ef branch p_data_abs_store 
               org 0x2000
 
 start:
Index: program/patch.prog
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_1066/BR_Project/BR-881_PBSwitch_3mode_2ch_24M_Gan/program/patch.prog	(revision 4121)
+++ /branch/mouse_project/YJX_Project/YJX_1066/BR_Project/BR-881_PBSwitch_3mode_2ch_24M_Gan/program/patch.prog	(working copy)
@@ -1121,7 +1121,7 @@
 	call p_wake_from_power
 
 ifdef ADC_ENABLE
-	call p_mouse_adc_read
+	call p_mouse_adc_read_once
 	fetch 1,mem_adc_power_flag
 	bbit1 1,app_enter_hibernate
 endif	
@@ -3316,7 +3316,7 @@
 	beq TX_POWER_PAIR,p_set_tx_power_pair
 //	branch p_set_tx_power_0db
 p_set_tx_power_0db:
-	call p_rx_low_sens
+//	call p_rx_low_sens
 //	jam 0xba,0x894b
 	jam 0xd0,0x8955
 	jam 0xe0,0x8956
@@ -3337,10 +3337,10 @@
 	
 p_set_tx_power_5db:
 	//call p_rx_high_sens
-	jam 0xfb,0x894c 
-	jam 0xef,0x894d
-	jam 0xec,0x894e 
-	jam 0x5e,0x894f
+//	jam 0xfb,0x894c 
+//	jam 0xef,0x894d
+//	jam 0xec,0x894e 
+//	jam 0x5e,0x894f
 	
 //	jam 0xba,0x894b
 	jam 0xd0,0x8955
@@ -3361,7 +3361,7 @@
 //	branch set_tx_power_f3db
 	
 p_set_tx_power_f5db:
-	call p_rx_low_sens
+//	call p_rx_low_sens
 //	jam 0xba,0x894b
 	jam 0xd0,0x8955
 	jam 0xc0,0x8956
@@ -3370,12 +3370,12 @@
 //	jam 0x10,0x8959
 	branch set_tx_power_f5db
 
-p_rx_low_sens:
-	jam 0x5b,0x894c
-	jam 0x96,0x894d
-	jam 0x2c,0x894e 
-	jam 0x46,0x894f
-	rtn
+//p_rx_low_sens:
+//	jam 0x5b,0x894c
+//	jam 0x96,0x894d
+//	jam 0x2c,0x894e 
+//	jam 0x46,0x894f
+//	rtn
 
 //p_rx_high_sens:
 //	jam 0xfb,0x894c 
Index: sched/mouse.dat
===================================================================
--- /branch/mouse_project/YJX_Project/YJX_1066/BR_Project/BR-881_PBSwitch_3mode_2ch_24M_Gan/sched/mouse.dat	(revision 4121)
+++ /branch/mouse_project/YJX_Project/YJX_1066/BR_Project/BR-881_PBSwitch_3mode_2ch_24M_Gan/sched/mouse.dat	(working copy)
@@ -99,17 +99,17 @@
 #microsoft swift pair
 06 ff 06 00 03 00 80
 #name
-'\09BT5.2 Mouse
+'\09BT5.0 Mouse
 
 mem_le_scan_data_len:1f
 mem_le_scan_data:
 #name
-'\09BT5.2 Mouse
+'\09BT5.0 Mouse
 
 
 #max 20bytes, att list data rom limits
 mem_le_name_len:
-'BT5.2 Mouse
+'BT5.0 Mouse
 
 
 mem_le_interval_min:
@@ -287,7 +287,7 @@
 mem_24g_allpowerful_addr:0f 0f 0f 0f 0f 0f
 mem_24g_common_temp:00 00 00 00 00 00 00 00 00 00
 mem_24g_enter_hibernate:80 4f 12 	#  240ms  dpi  B4  B5 check easy
-mem_firmware_version:02 00
+mem_firmware_version:03 00
 
 mem_device_flag:01
 mem_device1_type:34
