Index: output/eeprom.dat
===================================================================
--- /branch/mouse_project/LeXiang/BT&BLE_Trust/output/eeprom.dat	(revision 1966)
+++ /branch/mouse_project/LeXiang/BT&BLE_Trust/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-be
+c2
 17
 c2
 84
@@ -19,11 +19,11 @@
 c0
 42
 85
-88
+89
 c0
 44
 85
-59
+5a
 c0
 0d
 84
@@ -35,27 +35,27 @@
 c0
 24
 04
-65
+66
 c0
 25
 04
-6c
+6d
 c0
 2c
 84
-63
+64
 c0
 28
 84
-75
+76
 c0
 53
 84
-7a
+7b
 c0
 56
 84
-90
+91
 c0
 65
 b3
@@ -63,7 +63,7 @@
 c0
 74
 84
-a1
+a2
 c0
 50
 80
@@ -155,19 +155,19 @@
 c0
 02
 84
-b4
+b5
 c0
 40
 04
-c3
+c4
 c0
 41
 04
-cd
+ce
 c0
 44
 04
-f8
+f9
 c0
 46
 04
@@ -527,7 +527,7 @@
 20
 40
 05
-1c
+1d
 68
 00
 c6
@@ -583,7 +583,7 @@
 20
 40
 05
-8a
+8b
 20
 40
 01
@@ -3111,11 +3111,11 @@
 24
 34
 05
-8a
+8b
 20
 40
 05
-8d
+8e
 20
 20
 3f
@@ -3395,7 +3395,7 @@
 20
 40
 05
-2d
+2e
 20
 20
 53
@@ -3563,7 +3563,7 @@
 20
 40
 05
-1f
+20
 68
 00
 c7
@@ -3691,7 +3691,7 @@
 20
 20
 05
-23
+24
 68
 00
 c7
@@ -4443,7 +4443,7 @@
 c5
 16
 84
-5f
+60
 20
 20
 21
@@ -4468,10 +4468,14 @@
 3f
 80
 0b
-18
+68
+00
+80
+77
+98
 00
 08
-01
+00
 70
 00
 11
@@ -4543,7 +4547,7 @@
 20
 40
 84
-70
+71
 20
 20
 24
@@ -4559,15 +4563,15 @@
 20
 40
 85
-23
+24
 24
 40
 85
-1f
+20
 20
 20
 05
-2d
+2e
 20
 40
 24
@@ -4619,7 +4623,7 @@
 20
 3a
 04
-84
+85
 68
 00
 c5
@@ -4727,7 +4731,7 @@
 20
 5a
 04
-9e
+9f
 20
 20
 2b
@@ -4771,15 +4775,15 @@
 c2
 80
 84
-ab
+ac
 c2
 81
 04
-ae
+af
 c2
 81
 84
-ae
+af
 20
 20
 42
@@ -4787,11 +4791,11 @@
 c2
 82
 84
-ae
+af
 c2
 81
 84
-ae
+af
 20
 20
 42
@@ -4847,7 +4851,7 @@
 c0
 03
 84
-bc
+bd
 20
 20
 4d
@@ -4891,7 +4895,7 @@
 c0
 09
 84
-c7
+c8
 20
 20
 5d
@@ -4939,19 +4943,19 @@
 c2
 83
 84
-d6
+d7
 c0
 01
 84
-e6
+e7
 c0
 18
 84
-e2
+e3
 c0
 0b
 84
-e4
+e5
 20
 20
 60
@@ -4959,11 +4963,11 @@
 c0
 42
 04
-d9
+da
 c0
 41
 84
-dc
+dd
 20
 20
 60
@@ -4971,7 +4975,7 @@
 20
 40
 04
-df
+e0
 68
 00
 80
@@ -4983,7 +4987,7 @@
 20
 40
 04
-df
+e0
 68
 00
 80
@@ -5051,7 +5055,7 @@
 c0
 17
 04
-ef
+f0
 20
 20
 60
@@ -5111,11 +5115,11 @@
 c0
 02
 05
-1a
+1b
 c0
 08
-04
-ff
+05
+00
 20
 20
 63
@@ -5131,7 +5135,7 @@
 c0
 00
 85
-03
+04
 20
 20
 63
@@ -5147,7 +5151,7 @@
 c2
 80
 05
-07
+08
 20
 20
 63
@@ -5215,7 +5219,7 @@
 24
 21
 05
-18
+19
 20
 20
 63
@@ -5275,7 +5279,7 @@
 24
 41
 05
-2b
+2c
 68
 00
 cc
@@ -5339,7 +5343,7 @@
 c5
 13
 05
-37
+38
 58
 00
 00
@@ -5351,7 +5355,7 @@
 24
 21
 05
-4f
+50
 68
 00
 cc
@@ -5363,7 +5367,7 @@
 24
 21
 05
-3f
+40
 68
 00
 cc
@@ -5371,7 +5375,7 @@
 c0
 00
 05
-50
+51
 20
 60
 00
@@ -5399,7 +5403,7 @@
 c5
 13
 05
-46
+47
 58
 00
 00
@@ -5419,7 +5423,7 @@
 c0
 00
 05
-57
+58
 1f
 e0
 ff
@@ -5431,7 +5435,7 @@
 c0
 00
 05
-57
+58
 70
 41
 de
@@ -5451,7 +5455,7 @@
 c0
 01
 05
-55
+56
 1f
 e0
 fe
@@ -5463,7 +5467,7 @@
 c0
 00
 85
-4d
+4e
 70
 41
 de
@@ -5547,19 +5551,19 @@
 c0
 01
 05
-71
+72
 c0
 02
 05
-76
+77
 c0
 10
 05
-85
+86
 20
 40
 05
-7b
+7c
 70
 89
 55
@@ -5579,7 +5583,7 @@
 20
 40
 05
-80
+81
 70
 89
 55
@@ -5599,7 +5603,7 @@
 20
 40
 05
-7b
+7c
 70
 89
 55
@@ -5699,7 +5703,7 @@
 20
 40
 05
-de
+df
 58
 00
 00
@@ -5707,7 +5711,7 @@
 20
 40
 05
-d1
+d2
 58
 00
 00
@@ -5715,7 +5719,7 @@
 20
 40
 05
-d7
+d8
 68
 00
 cb
@@ -5723,11 +5727,11 @@
 c0
 00
 85
-97
+98
 20
 20
 05
-8a
+8b
 68
 01
 4b
@@ -5747,7 +5751,7 @@
 20
 40
 05
-aa
+ab
 68
 01
 11
@@ -5783,7 +5787,7 @@
 20
 40
 05
-aa
+ab
 68
 01
 11
@@ -5827,7 +5831,7 @@
 20
 20
 85
-b7
+b8
 68
 00
 91
@@ -5835,7 +5839,7 @@
 c0
 7f
 85
-be
+bf
 68
 00
 91
@@ -5863,7 +5867,7 @@
 c0
 00
 05
-bb
+bc
 68
 01
 91
@@ -5871,7 +5875,7 @@
 20
 20
 05
-b3
+b4
 70
 11
 c4
@@ -5883,7 +5887,7 @@
 20
 20
 05
-b3
+b4
 68
 00
 91
@@ -5891,7 +5895,7 @@
 20
 40
 05
-c9
+ca
 60
 00
 91
@@ -5903,7 +5907,7 @@
 20
 3a
 05
-c7
+c8
 58
 00
 00
@@ -5927,7 +5931,7 @@
 20
 20
 05
-c4
+c5
 1f
 e6
 7e
@@ -5967,7 +5971,7 @@
 24
 21
 05
-dc
+dd
 9a
 46
 7c
@@ -5975,7 +5979,7 @@
 24
 21
 05
-dc
+dd
 70
 4b
 0b
@@ -6003,7 +6007,7 @@
 20
 20
 05
-d5
+d6
 70
 4b
 0b
@@ -6023,7 +6027,7 @@
 20
 40
 05
-e7
+e8
 1f
 e2
 22
@@ -6039,7 +6043,7 @@
 20
 40
 05
-e7
+e8
 1f
 e2
 24
@@ -6055,7 +6059,7 @@
 c0
 7f
 85
-ec
+ed
 68
 00
 91
@@ -6079,9 +6083,9 @@
 20
 20
 05
-ea
-d7
-21
+eb
+7a
+62
 aa
 55
 08
@@ -6773,12 +6777,8 @@
 4b
 04
 01
-48
-c0
-ff
-ff
-ff
-ff
+a1
+e2
 ff
 ff
 ff
@@ -16380,5 +16380,5 @@
 ff
 ff
 ff
-a4
-a8
+b1
+f3
Index: output/program.lis
===================================================================
--- /branch/mouse_project/LeXiang/BT&BLE_Trust/output/program.lis	(revision 1966)
+++ /branch/mouse_project/LeXiang/BT&BLE_Trust/output/program.lis	(working copy)
@@ -3,18 +3,18 @@
 0000 c284001a bbit1 8 ,pf_patch_ext 
 0001 c0008035 beq patch00_1 ,p_soft_reset_1 
 0002 c001003e beq patch00_2 ,p_soft_reset_2 
-0003 c0428588 beq patch10_5 ,p_shutdown_radio 
-0004 c0448559 beq patch11_1 ,p_set_freq_tx 
+0003 c0428589 beq patch10_5 ,p_shutdown_radio 
+0004 c044855a beq patch11_1 ,p_set_freq_tx 
 0005 c00d843d beq patch03_3 ,p_page_wait_fhs_reply_ok 
 0006 c013044a beq patch04_6 ,p_role_switch_master 
-0007 c0240465 beq patch09_0 ,p_quit_connection_cont 
-0008 c025046c beq patch09_2 ,p_prepare_tx 
-0009 c02c8463 beq patch0b_1 ,p_process_dmh 
-000a c0288475 beq patch0a_1 ,p_slave_conn_recv_packet 
-000b c053847a beq patch14_7 ,p_lpm_dispatch 
-000c c0568490 beq patch15_5 ,p_lpm_set_mult 
+0007 c0240466 beq patch09_0 ,p_quit_connection_cont 
+0008 c025046d beq patch09_2 ,p_prepare_tx 
+0009 c02c8464 beq patch0b_1 ,p_process_dmh 
+000a c0288476 beq patch0a_1 ,p_slave_conn_recv_packet 
+000b c053847b beq patch14_7 ,p_lpm_dispatch 
+000c c0568491 beq patch15_5 ,p_lpm_set_mult 
 000d c065b3e4 beq patch19_3 ,app_bt_start_reconnect + 3 
-000e c07484a1 beq patch1d_1 ,p_mouse_bb_disconnected 
+000e c07484a2 beq patch1d_1 ,p_mouse_bb_disconnected 
 000f c0508047 beq patch14_1 ,p_init_param 
 0010 c058804c beq patch16_1 ,p_lpm_check_wake_lock 
 0011 c062007d beq patch18_4 ,p_device_init 
@@ -39,10 +39,10 @@
 0022 c035040d beq patch2d_2 ,p_le_adv_not_match 
 0023 c03b8418 beq patch2e_7 ,p_le_lpm_setmult 
 0024 c07d0434 beq patch3f_2 ,p_check_51cmd_once_continue 
-0025 c00284b4 beq patch20_5 ,p_hid_rx_process 
-0026 c04004c3 beq patch30_0 ,p_parse_lmp_accepted 
-0027 c04104cd beq patch30_2 ,p_send_lmp 
-0028 c04404f8 beq patch31_0 ,p_process_conn_sm 
+0025 c00284b5 beq patch20_5 ,p_hid_rx_process 
+0026 c04004c4 beq patch30_0 ,p_parse_lmp_accepted 
+0027 c04104ce beq patch30_2 ,p_send_lmp 
+0028 c04404f9 beq patch31_0 ,p_process_conn_sm 
 0029 c0460428 beq patch31_4 ,p_twspi_reset 
 002a 20202a8e branch loop 
 
@@ -160,7 +160,7 @@
 007f 20400173 call p_mouse_data_init 
 0080 6800c1de fetch 1 ,mem_tx_power 
 0081 6000cc5e store 1 ,mem_tx_power_temp 
-0082 2040051c call power_ctrl_pac_succ_cnt_init 
+0082 2040051d call power_ctrl_pac_succ_cnt_init 
 0083 6800c685 fetch 1 ,mem_ui_button_timeout 
 0084 6000c6da store 1 ,mem_combination_ui_button_count 
 0085 204043ca call mouse_bt_discovery_button_down_disable 
@@ -180,7 +180,7 @@
 008d 245580d8 ncall p_mouse_setting_config ,wake 
 008e 204000b9 call p_mouse_spi_init 
 008f 20758000 rtn wake 
-0090 2040058a call p_drawing_optima_init 
+0090 2040058b call p_drawing_optima_init 
 0091 20400140 call p_mouse_cb_fuction 
 0092 20400129 call p_mouse_wakeup_from_power 
 0093 c6130000 rtnmark1 mark_24g 
@@ -1048,8 +1048,8 @@
 0305 20404079 call mouse_zwheel 
 0306 2040407e call mouse_t_zwheel 
 0307 20404099 call mouse_key 
-0308 2434058a nbranch p_drawing_optima_init ,user 
-0309 2040058d call p_drawing_optima 
+0308 2434058b nbranch p_drawing_optima_init ,user 
+0309 2040058e call p_drawing_optima 
 030a 20203fa0 branch mouse_motion + 9 
 
 p_mouse_bb_event_discovery_btn:
@@ -1141,7 +1141,7 @@
 034c c0065395 beq le_md_max_count ,le_slave_cont 
 034d 204055aa call le_acknowledge 
 034e 2040561e call le_prepare_tx 
-034f 2040052d call power_ctrl_start 
+034f 2040052e call power_ctrl_start 
 0350 2020538f branch le_slave_match + 7 
 
 p_le_next_adv_channel:
@@ -1201,7 +1201,7 @@
 p_le_prepare_tx:
 0377 68008456 fetch 1 ,mem_le_arq 
 0378 c282838b bbit1 wak ,p_le_prepare_tx_wak 
-0379 2040051f call power_ctrl_pac_succ_incrs 
+0379 20400520 call power_ctrl_pac_succ_incrs 
 037a 6800c78e fetch 1 ,mem_empty_count 
 037b 243a0381 nbranch p_le_send_empyt ,blank 
 037c 6800843f fetch 1 ,mem_le_state 
@@ -1245,7 +1245,7 @@
 0398 20600000 rtn 
 
 p_le_power_ctrl_pac_succ_decrs:
-0399 20200523 branch power_ctrl_pac_succ_decrs 
+0399 20200524 branch power_ctrl_pac_succ_decrs 
 
 p_mouse_le_reconn_write_enable_timer_reinit:
 039a 6800c79f fetch 1 ,mem_mouse_le_reconnect_flag 
@@ -1495,7 +1495,7 @@
 0452 c5058457 bmark1 mark_fhs_already_good ,p_roles_replyto_fhs 
 0453 20402455 call new_conn_timeout 
 0454 243a0450 nbranch p_roles_waitfhs_loop ,blank 
-0455 c516845f bmark1 mark_role_switch_receive_fhs ,p_roles_replyto_fhs1 
+0455 c5168460 bmark1 mark_role_switch_receive_fhs ,p_roles_replyto_fhs1 
 0456 202021ec branch role_switch_fail_master 
 
 p_roles_replyto_fhs:
@@ -1504,563 +1504,564 @@
 0459 204022dc call master_send_packet 
 045a 7920002d set1 mark_role_switch_receive_fhs ,mark 
 045b 793f800b set0 mark_fhs_already_good ,mark 
-045c 18000801 force 1 ,am_addr 
-045d 70001102 jam 2 ,mem_newconnto_counter 
-045e 20200450 branch p_roles_waitfhs_loop 
+045c 68008077 fetch 1 ,mem_amaddr 
+045d 98000800 iforce am_addr 
+045e 70001102 jam 2 ,mem_newconnto_counter 
+045f 20200450 branch p_roles_waitfhs_loop 
 
 p_roles_replyto_fhs1:
-045f 68020165 fetch 4 ,mem_clke_bt 
-0460 1fe0fe08 pincrease 8 
-0461 60020165 store 4 ,mem_clke_bt 
-0462 202021f8 branch roles_replyto_fhs + 4 
+0460 68020165 fetch 4 ,mem_clke_bt 
+0461 1fe0fe08 pincrease 8 
+0462 60020165 store 4 ,mem_clke_bt 
+0463 202021f8 branch roles_replyto_fhs + 4 
 
 p_process_dmh:
-0463 c516264d bmark1 mark_first_packet ,end_of_packet 
-0464 2020258f branch process_dmh + 1 
+0464 c516264d bmark1 mark_first_packet ,end_of_packet 
+0465 2020258f branch process_dmh + 1 
 
 p_quit_connection_cont:
-0465 204033af call app_disconn_reason_collect_bt 
-0466 204026e9 call sniff_exit 
-0467 700a9902 jam bt_evt_bb_disconnected ,mem_fifo_temp 
-0468 20407d86 call ui_ipc_send_event 
-0469 20405cf7 call init_lmp_work 
-046a 20404d6b call l2cap_init_work 
-046b 2020246e branch quit_connection_cont + 8 
+0466 204033af call app_disconn_reason_collect_bt 
+0467 204026e9 call sniff_exit 
+0468 700a9902 jam bt_evt_bb_disconnected ,mem_fifo_temp 
+0469 20407d86 call ui_ipc_send_event 
+046a 20405cf7 call init_lmp_work 
+046b 20404d6b call l2cap_init_work 
+046c 2020246e branch quit_connection_cont + 8 
 
 p_prepare_tx:
-046c 68008030 fetch 1 ,mem_state 
-046d 2feffe00 isolate1 state_inconn ,pdata 
-046e 20408470 call p_bt_power_ctrl ,true 
-046f 2020248a branch prepare_tx + 1 
+046d 68008030 fetch 1 ,mem_state 
+046e 2feffe00 isolate1 state_inconn ,pdata 
+046f 20408471 call p_bt_power_ctrl ,true 
+0470 2020248a branch prepare_tx + 1 
 
 p_bt_power_ctrl:
-0470 68008047 fetch 1 ,mem_arq 
-0471 2feffe03 isolate1 wack ,pdata 
-0472 20408523 call power_ctrl_pac_succ_decrs ,true 
-0473 2440851f ncall power_ctrl_pac_succ_incrs ,true 
-0474 2020052d branch power_ctrl_start 
+0471 68008047 fetch 1 ,mem_arq 
+0472 2feffe03 isolate1 wack ,pdata 
+0473 20408524 call power_ctrl_pac_succ_decrs ,true 
+0474 24408520 ncall power_ctrl_pac_succ_incrs ,true 
+0475 2020052e branch power_ctrl_start 
 
 p_slave_conn_recv_packet:
-0475 204024f0 call slave_receive_master_slot 
-0476 242c28f9 nbranch shutdown_radio ,sync 
-0477 204029bb call save_rssi 
-0478 2040002b call p_rssi_signal 
-0479 20202518 branch slave_conn_recv_packet + 4 
+0476 204024f0 call slave_receive_master_slot 
+0477 242c28f9 nbranch shutdown_radio ,sync 
+0478 204029bb call save_rssi 
+0479 2040002b call p_rssi_signal 
+047a 20202518 branch slave_conn_recv_packet + 4 
 
 p_lpm_dispatch:
-047a c6130000 rtnmark1 mark_24g 
-047b 20402afa call lpo_calibration 
-047c 6801c16f fetch 3 ,mem_clks_per_lpo 
-047d 207a0000 rtn blank 
-047e 6800c091 fetch 1 ,mem_lpm_mode 
-047f 207a0000 rtn blank 
-0480 6800c65a fetch 1 ,mem_ssp_enable 
-0481 203a0484 branch p_lpm_dispatch_next ,blank 
-0482 6800c5b1 fetch 1 ,mem_sp_local_key_invalid 
-0483 207a0000 rtn blank 
+047b c6130000 rtnmark1 mark_24g 
+047c 20402afa call lpo_calibration 
+047d 6801c16f fetch 3 ,mem_clks_per_lpo 
+047e 207a0000 rtn blank 
+047f 6800c091 fetch 1 ,mem_lpm_mode 
+0480 207a0000 rtn blank 
+0481 6800c65a fetch 1 ,mem_ssp_enable 
+0482 203a0485 branch p_lpm_dispatch_next ,blank 
+0483 6800c5b1 fetch 1 ,mem_sp_local_key_invalid 
+0484 207a0000 rtn blank 
 
 p_lpm_dispatch_next:
-0484 6800c4c0 fetch 1 ,mem_le_sc_calc 
-0485 247a0000 nrtn blank 
-0486 20402c3a call lpm_check_wake_lock 
-0487 247a0000 nrtn blank 
-0488 6800c040 fetch 1 ,mem_context 
-0489 2fe00e03 compare 3 ,pdata ,0x7 
-048a 2420ab9d nbranch lpm_dispatch_unconn ,true 
-048b 68014042 fetch 2 ,mem_context + coffset_tsniff 
-048c d840ffff arg 0xffff ,temp 
-048d 98467c00 isub temp ,null 
-048e 20628000 rtn zero 
-048f 20202b7d branch lpm_dispatch_next + 9 
+0485 6800c4c0 fetch 1 ,mem_le_sc_calc 
+0486 247a0000 nrtn blank 
+0487 20402c3a call lpm_check_wake_lock 
+0488 247a0000 nrtn blank 
+0489 6800c040 fetch 1 ,mem_context 
+048a 2fe00e03 compare 3 ,pdata ,0x7 
+048b 2420ab9d nbranch lpm_dispatch_unconn ,true 
+048c 68014042 fetch 2 ,mem_context + coffset_tsniff 
+048d d840ffff arg 0xffff ,temp 
+048e 98467c00 isub temp ,null 
+048f 20628000 rtn zero 
+0490 20202b7d branch lpm_dispatch_next + 9 
 
 p_lpm_set_mult:
-0490 7855fc00 disable wake 
-0491 68008030 fetch 1 ,mem_state 
-0492 c4008000 rtnbit0 state_insniff 
-0493 2436abd0 nbranch lpm_not_match ,match 
-0494 20402bcb call lpm_match 
-0495 680140c1 fetch 2 ,mem_rx_window_sniff 
-0496 6001003e store 2 ,mem_rx_window 
-0497 68008047 fetch 1 ,mem_arq 
-0498 c281abde bbit1 wack ,lpm_mult_short 
-0499 c586abde bmark0 mark_lpm_mult_enable ,lpm_mult_short 
-049a 20405274 call l2cap_malloc_is_fifo_empty 
-049b 243a2bde nbranch lpm_mult_short ,blank 
-049c 205a049e call p_lpm_set_attemp_timeout ,blank 
-049d 20202bbe branch lpm_set_mult + 13 
+0491 7855fc00 disable wake 
+0492 68008030 fetch 1 ,mem_state 
+0493 c4008000 rtnbit0 state_insniff 
+0494 2436abd0 nbranch lpm_not_match ,match 
+0495 20402bcb call lpm_match 
+0496 680140c1 fetch 2 ,mem_rx_window_sniff 
+0497 6001003e store 2 ,mem_rx_window 
+0498 68008047 fetch 1 ,mem_arq 
+0499 c281abde bbit1 wack ,lpm_mult_short 
+049a c586abde bmark0 mark_lpm_mult_enable ,lpm_mult_short 
+049b 20405274 call l2cap_malloc_is_fifo_empty 
+049c 243a2bde nbranch lpm_mult_short ,blank 
+049d 205a049f call p_lpm_set_attemp_timeout ,blank 
+049e 20202bbe branch lpm_set_mult + 13 
 
 p_lpm_set_attemp_timeout:
-049e 70008a01 jam 1 ,mem_current_sniff_attempt 
-049f 70008b00 jam 0 ,mem_current_sniff_timeout 
-04a0 20600000 rtn 
+049f 70008a01 jam 1 ,mem_current_sniff_attempt 
+04a0 70008b00 jam 0 ,mem_current_sniff_timeout 
+04a1 20600000 rtn 
 
 p_mouse_bb_disconnected:
-04a1 70480800 jam 0 ,mem_mouse_enter_sniff_count 
-04a2 7041e30e jam 0x0e ,mem_sniff_param_interval 
-04a3 204041e7 call mouse_bb_discon_clear_stack 
-04a4 68014208 fetch app_disc_rsn_size ,mem_app_disconn_reason 
-04a5 c283c1f5 bbit1 app_disc_ble ,mouse4_0_event_bb_disconn 
-04a6 c28033a9 bbit1 app_disc_by_button ,app_disconn_reason_clear 
-04a7 c28084ab bbit1 app_disc_after_pairing ,p_mouse_event_light_state_pairing 
-04a8 c28104ae bbit1 app_disc_after_reconn ,p_mouse_event_light_state_hibernate 
-04a9 c28184ae bbit1 app_disc_after_sniff ,p_mouse_event_light_state_hibernate 
-04aa 202042b0 branch mouse_start_discovery 
+04a2 70480800 jam 0 ,mem_mouse_enter_sniff_count 
+04a3 7041e30e jam 0x0e ,mem_sniff_param_interval 
+04a4 204041e7 call mouse_bb_discon_clear_stack 
+04a5 68014208 fetch app_disc_rsn_size ,mem_app_disconn_reason 
+04a6 c283c1f5 bbit1 app_disc_ble ,mouse4_0_event_bb_disconn 
+04a7 c28033a9 bbit1 app_disc_by_button ,app_disconn_reason_clear 
+04a8 c28084ac bbit1 app_disc_after_pairing ,p_mouse_event_light_state_pairing 
+04a9 c28104af bbit1 app_disc_after_reconn ,p_mouse_event_light_state_hibernate 
+04aa c28184af bbit1 app_disc_after_sniff ,p_mouse_event_light_state_hibernate 
+04ab 202042b0 branch mouse_start_discovery 
 
 p_mouse_event_light_state_pairing:
-04ab c28284ae bbit1 app_disc_after_handshake ,p_mouse_event_light_state_hibernate 
-04ac c28184ae bbit1 app_disc_after_sniff ,p_mouse_event_light_state_hibernate 
-04ad 202042b0 branch mouse_start_discovery 
+04ac c28284af bbit1 app_disc_after_handshake ,p_mouse_event_light_state_hibernate 
+04ad c28184af bbit1 app_disc_after_sniff ,p_mouse_event_light_state_hibernate 
+04ae 202042b0 branch mouse_start_discovery 
 
 p_mouse_event_light_state_hibernate:
-04ae 68014682 fetch 2 ,mem_ui_state_map 
-04af c28642b0 bbit1 ui_state_btn_down ,mouse_start_discovery 
-04b0 204033a9 call app_disconn_reason_clear 
-04b1 20404083 call mouse_check_key_gpio 
-04b2 c0030268 beq mouse_rm_button ,p_mouse_null_enter_hibernate_enable 
-04b3 202033a7 branch app_bb_hibernate 
+04af 68014682 fetch 2 ,mem_ui_state_map 
+04b0 c28642b0 bbit1 ui_state_btn_down ,mouse_start_discovery 
+04b1 204033a9 call app_disconn_reason_clear 
+04b2 20404083 call mouse_check_key_gpio 
+04b3 c0030268 beq mouse_rm_button ,p_mouse_null_enter_hibernate_enable 
+04b4 202033a7 branch app_bb_hibernate 
 
 p_hid_rx_process:
-04b4 68010264 fetch 2 ,mem_l2cap_payload_ptr 
-04b5 1fe20c00 copy pdata ,contr 
-04b6 e8c08000 ifetch 1 ,contr 
-04b7 6000cb02 store 1 ,mem_l2cap_rcv 
-04b8 1fe1040f and pdata ,0x0f ,temp 
-04b9 1ff1fe00 rshift4 pdata ,pdata 
-04ba c00384bc beq hid_type_set_protocol ,p_hid_rx_set_protocol 
-04bb 20204d39 branch hid_rx_process + 6 
+04b5 68010264 fetch 2 ,mem_l2cap_payload_ptr 
+04b6 1fe20c00 copy pdata ,contr 
+04b7 e8c08000 ifetch 1 ,contr 
+04b8 6000cb02 store 1 ,mem_l2cap_rcv 
+04b9 1fe1040f and pdata ,0x0f ,temp 
+04ba 1ff1fe00 rshift4 pdata ,pdata 
+04bb c00384bd beq hid_type_set_protocol ,p_hid_rx_set_protocol 
+04bc 20204d39 branch hid_rx_process + 6 
 
 p_hid_rx_set_protocol:
-04bc 20404d53 call hid_rx_process_handshake 
-04bd 704b0300 jam 0 ,mem_mouse_bt_boot_mode 
-04be 6800cb02 fetch 1 ,mem_l2cap_rcv 
-04bf 2feffe00 isolate1 0 ,pdata 
-04c0 20608000 rtn true 
-04c1 704b0301 jam 1 ,mem_mouse_bt_boot_mode 
-04c2 20600000 rtn 
+04bd 20404d53 call hid_rx_process_handshake 
+04be 704b0300 jam 0 ,mem_mouse_bt_boot_mode 
+04bf 6800cb02 fetch 1 ,mem_l2cap_rcv 
+04c0 2feffe00 isolate1 0 ,pdata 
+04c1 20608000 rtn true 
+04c2 704b0301 jam 1 ,mem_mouse_bt_boot_mode 
+04c3 20600000 rtn 
 
 p_parse_lmp_accepted:
-04c3 68008552 fetch 1 ,mem_rxbuf + 1 
-04c4 600084c9 store 1 ,mem_lmi_accepted_opcode 
-04c5 c00984c7 beq lmp_switch_req ,p_parse_lmp_accepted_switch 
-04c6 20205db4 branch parse_lmp_accepted + 3 
+04c4 68008552 fetch 1 ,mem_rxbuf + 1 
+04c5 600084c9 store 1 ,mem_lmi_accepted_opcode 
+04c6 c00984c8 beq lmp_switch_req ,p_parse_lmp_accepted_switch 
+04c7 20205db4 branch parse_lmp_accepted + 3 
 
 p_parse_lmp_accepted_switch:
-04c7 20405dcf call parse_lmp_accepted_switch 
-04c8 704aff01 jam 1 ,mem_bt_rcvd_switch_req_accept 
-04c9 6800cb01 fetch 1 ,mem_bt_send_lmp_setup_complete 
-04ca 207a0000 rtn blank 
-04cb 704b0102 jam 2 ,mem_bt_send_lmp_setup_complete 
-04cc 20600000 rtn 
+04c8 20405dcf call parse_lmp_accepted_switch 
+04c9 704aff01 jam 1 ,mem_bt_rcvd_switch_req_accept 
+04ca 6800cb01 fetch 1 ,mem_bt_send_lmp_setup_complete 
+04cb 207a0000 rtn blank 
+04cc 704b0102 jam 2 ,mem_bt_send_lmp_setup_complete 
+04cd 20600000 rtn 
 
 p_send_lmp:
-04cd 78547c00 disable user 
-04ce 204062c1 call lmo_fifo_process 
-04cf 68008048 fetch 1 ,mem_lmp_to_send 
-04d0 207a0000 rtn blank 
-04d1 c28384d6 bbit1 7 ,p_send_lmp_escape 
-04d2 c00184e6 beq lmp_accepted ,p_send_lmp_accepted 
-04d3 c01884e2 beq lmp_setup_complete ,p_send_lmp_setup_complete 
-04d4 c00b84e4 beq lmp_sniff_req ,p_send_lmp_sniff_req 
-04d5 20206010 branch send_lmp0 
+04ce 78547c00 disable user 
+04cf 204062c1 call lmo_fifo_process 
+04d0 68008048 fetch 1 ,mem_lmp_to_send 
+04d1 207a0000 rtn blank 
+04d2 c28384d7 bbit1 7 ,p_send_lmp_escape 
+04d3 c00184e7 beq lmp_accepted ,p_send_lmp_accepted 
+04d4 c01884e3 beq lmp_setup_complete ,p_send_lmp_setup_complete 
+04d5 c00b84e5 beq lmp_sniff_req ,p_send_lmp_sniff_req 
+04d6 20206010 branch send_lmp0 
 
 p_send_lmp_escape:
-04d6 c04204d9 beq lmp_ext_features_res ,p_send_lmpext_features_res 
-04d7 c04184dc beq lmp_ext_features_req ,p_send_lmpext_features_req 
-04d8 2020603f branch send_lmp_escape 
+04d7 c04204da beq lmp_ext_features_res ,p_send_lmpext_features_res 
+04d8 c04184dd beq lmp_ext_features_req ,p_send_lmpext_features_req 
+04d9 2020603f branch send_lmp_escape 
 
 p_send_lmpext_features_res:
-04d9 204004df call p_check_ssp_enable 
-04da 68008048 fetch 1 ,mem_lmp_to_send 
-04db 20206099 branch send_lmpext_features_res 
+04da 204004e0 call p_check_ssp_enable 
+04db 68008048 fetch 1 ,mem_lmp_to_send 
+04dc 20206099 branch send_lmpext_features_res 
 
 p_send_lmpext_features_req:
-04dc 204004df call p_check_ssp_enable 
-04dd 68008048 fetch 1 ,mem_lmp_to_send 
-04de 2020610d branch send_lmpext_features_req 
+04dd 204004e0 call p_check_ssp_enable 
+04de 68008048 fetch 1 ,mem_lmp_to_send 
+04df 2020610d branch send_lmpext_features_req 
 
 p_check_ssp_enable:
-04df 6800c65a fetch 1 ,mem_ssp_enable 
-04e0 203a612b branch ssp_disable ,blank 
-04e1 20206124 branch ssp_enable 
+04e0 6800c65a fetch 1 ,mem_ssp_enable 
+04e1 203a612b branch ssp_disable ,blank 
+04e2 20206124 branch ssp_enable 
 
 p_send_lmp_setup_complete:
-04e2 704b0101 jam 1 ,mem_bt_send_lmp_setup_complete 
-04e3 202061c3 branch send_lmp_setup_complete 
+04e3 704b0101 jam 1 ,mem_bt_send_lmp_setup_complete 
+04e4 202061c3 branch send_lmp_setup_complete 
 
 p_send_lmp_sniff_req:
-04e4 704b0904 jam 4 ,mem_mouse_bt_send_first_package_timer 
-04e5 202061a4 branch send_lmp_sniff_req 
+04e5 704b0904 jam 4 ,mem_mouse_bt_send_first_package_timer 
+04e6 202061a4 branch send_lmp_sniff_req 
 
 p_send_lmp_accepted:
-04e6 18007e02 force 2 ,pdata 
-04e7 20406298 call msg_send_lmp 
-04e8 68008049 fetch 1 ,mem_lmi_opcode 
-04e9 e0a08000 istore 1 ,contw 
-04ea 6000cafc store 1 ,mem_lmi_opcode_temp 
-04eb 204062a7 call send_lmp_follow 
-04ec 6800cafc fetch 1 ,mem_lmi_opcode_temp 
-04ed c01704ef beq lmp_max_slot_req ,p_send_lmp_accepted_max_slot_req 
-04ee 20206051 branch send_lmp_accepted + 7 
+04e7 18007e02 force 2 ,pdata 
+04e8 20406298 call msg_send_lmp 
+04e9 68008049 fetch 1 ,mem_lmi_opcode 
+04ea e0a08000 istore 1 ,contw 
+04eb 6000cafc store 1 ,mem_lmi_opcode_temp 
+04ec 204062a7 call send_lmp_follow 
+04ed 6800cafc fetch 1 ,mem_lmi_opcode_temp 
+04ee c01704f0 beq lmp_max_slot_req ,p_send_lmp_accepted_max_slot_req 
+04ef 20206051 branch send_lmp_accepted + 7 
 
 p_send_lmp_accepted_max_slot_req:
-04ef 6800caff fetch 1 ,mem_bt_rcvd_switch_req_accept 
-04f0 207a0000 rtn blank 
-04f1 704aff00 jam 0 ,mem_bt_rcvd_switch_req_accept 
-04f2 6800cb01 fetch 1 ,mem_bt_send_lmp_setup_complete 
-04f3 c1810000 rtnne 2 
-04f4 704b0001 jam 1 ,mem_bt_send_max_slot_req_accept_after_switch 
-04f5 1c427e00 copy clkn_bt ,pdata 
-04f6 600204e9 store 4 ,mem_aurand_send_delay_time 
-04f7 20600000 rtn 
+04f0 6800caff fetch 1 ,mem_bt_rcvd_switch_req_accept 
+04f1 207a0000 rtn blank 
+04f2 704aff00 jam 0 ,mem_bt_rcvd_switch_req_accept 
+04f3 6800cb01 fetch 1 ,mem_bt_send_lmp_setup_complete 
+04f4 c1810000 rtnne 2 
+04f5 704b0001 jam 1 ,mem_bt_send_max_slot_req_accept_after_switch 
+04f6 1c427e00 copy clkn_bt ,pdata 
+04f7 600204e9 store 4 ,mem_aurand_send_delay_time 
+04f8 20600000 rtn 
 
 p_process_conn_sm:
-04f8 204062bc call lmo_fifo_check 
-04f9 247a0000 nrtn blank 
+04f9 204062bc call lmo_fifo_check 
+04fa 247a0000 nrtn blank 
 
 p_process_conn_sm_continue:
-04fa 68008055 fetch 1 ,mem_conn_sm 
-04fb 207a0000 rtn blank 
-04fc c002051a beq conn_sm_send_conn_req ,p_host_create_conn_send_conn_req 
-04fd c00804ff beq conn_sm_wait_switch_after_host_connection ,p_host_creat_conn_wait_switch 
-04fe 20206320 branch process_conn_sm_continue + 2 
+04fb 68008055 fetch 1 ,mem_conn_sm 
+04fc 207a0000 rtn blank 
+04fd c002051b beq conn_sm_send_conn_req ,p_host_create_conn_send_conn_req 
+04fe c0080500 beq conn_sm_wait_switch_after_host_connection ,p_host_creat_conn_wait_switch 
+04ff 20206320 branch process_conn_sm_continue + 2 
 
 p_host_creat_conn_wait_switch:
-04ff 6800c55b fetch 1 ,mem_switch_flag 
-0500 c1000000 rtneq switch_flag_init 
-0501 c0008503 beq switch_flag_accept ,p_host_create_conn_switch_accept 
-0502 2020635f branch host_creat_conn_wait_switch + 3 
+0500 6800c55b fetch 1 ,mem_switch_flag 
+0501 c1000000 rtneq switch_flag_init 
+0502 c0008504 beq switch_flag_accept ,p_host_create_conn_switch_accept 
+0503 2020635f branch host_creat_conn_wait_switch + 3 
 
 p_host_create_conn_switch_accept:
-0503 20748000 rtn master 
+0504 20748000 rtn master 
 
 p_host_create_conn_auth_pair:
-0504 6800816d fetch 1 ,mem_connection_options 
-0505 c2800507 bbit1 connection_auth ,p_host_create_conn_auth_pair_true 
-0506 20206399 branch host_create_conn_auth_pair + 1 
+0505 6800816d fetch 1 ,mem_connection_options 
+0506 c2800508 bbit1 connection_auth ,p_host_create_conn_auth_pair_true 
+0507 20206399 branch host_create_conn_auth_pair + 1 
 
 p_host_create_conn_auth_pair_true:
-0507 6800cb01 fetch 1 ,mem_bt_send_lmp_setup_complete 
-0508 c000e39d beq 1 ,host_create_conn_auth_pair_true 
-0509 6800c1bd fetch 1 ,mem_link_key_exists 
-050a 203a63a9 branch host_create_conn_auth_pair_nokey ,blank 
-050b 680084d1 fetch 1 ,mem_lmp_conn_state 
-050c c4018000 rtnbit0 sent_setup_complete 
-050d c4010000 rtnbit0 received_setup_complete 
-050e 6800cb00 fetch 1 ,mem_bt_send_max_slot_req_accept_after_switch 
-050f 207a0000 rtn blank 
-0510 704b0000 jam 0 ,mem_bt_send_max_slot_req_accept_after_switch 
-0511 680204e9 fetch 4 ,mem_aurand_send_delay_time 
-0512 d8400014 arg 20 ,temp 
-0513 98408400 iadd temp ,temp 
-0514 1c427e00 copy clkn_bt ,pdata 
-0515 98467c00 isub temp ,null 
-0516 24210518 nbranch p_bt_send_max_slot_req_accept_after_switch_wait ,positive 
-0517 20206349 branch host_create_conn_auth 
+0508 6800cb01 fetch 1 ,mem_bt_send_lmp_setup_complete 
+0509 c000e39d beq 1 ,host_create_conn_auth_pair_true 
+050a 6800c1bd fetch 1 ,mem_link_key_exists 
+050b 203a63a9 branch host_create_conn_auth_pair_nokey ,blank 
+050c 680084d1 fetch 1 ,mem_lmp_conn_state 
+050d c4018000 rtnbit0 sent_setup_complete 
+050e c4010000 rtnbit0 received_setup_complete 
+050f 6800cb00 fetch 1 ,mem_bt_send_max_slot_req_accept_after_switch 
+0510 207a0000 rtn blank 
+0511 704b0000 jam 0 ,mem_bt_send_max_slot_req_accept_after_switch 
+0512 680204e9 fetch 4 ,mem_aurand_send_delay_time 
+0513 d8400014 arg 20 ,temp 
+0514 98408400 iadd temp ,temp 
+0515 1c427e00 copy clkn_bt ,pdata 
+0516 98467c00 isub temp ,null 
+0517 24210519 nbranch p_bt_send_max_slot_req_accept_after_switch_wait ,positive 
+0518 20206349 branch host_create_conn_auth 
 
 p_bt_send_max_slot_req_accept_after_switch_wait:
-0518 704b0001 jam 1 ,mem_bt_send_max_slot_req_accept_after_switch 
-0519 20600000 rtn 
+0519 704b0001 jam 1 ,mem_bt_send_max_slot_req_accept_after_switch 
+051a 20600000 rtn 
 
 p_host_create_conn_send_conn_req:
-051a 70480914 jam 20 ,mem_mouse_send_switch_req_timer 
-051b 2020636f branch host_create_conn_send_conn_req 
+051b 70480914 jam 20 ,mem_mouse_send_switch_req_timer 
+051c 2020636f branch host_create_conn_send_conn_req 
 
 power_ctrl_pac_succ_cnt_init:
-051c 704ce301 jam 1 ,mem_power_ctrl_level 
-051d 704ce000 jam 0 ,mem_power_ctrl_pac_succ_cnt 
-051e 20600000 rtn 
+051d 704ce301 jam 1 ,mem_power_ctrl_level 
+051e 704ce000 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+051f 20600000 rtn 
 
 power_ctrl_pac_succ_incrs:
-051f 6800cce0 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-0520 1fe0fe01 increase 1 ,pdata 
-0521 6000cce0 store 1 ,mem_power_ctrl_pac_succ_cnt 
-0522 20600000 rtn 
+0520 6800cce0 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+0521 1fe0fe01 increase 1 ,pdata 
+0522 6000cce0 store 1 ,mem_power_ctrl_pac_succ_cnt 
+0523 20600000 rtn 
 
 power_ctrl_pac_succ_decrs:
-0523 6800cce0 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-0524 1fe67c02 sub pdata ,2 ,null 
-0525 2441052b ncall power_ctrl_pac_succ_cnt_reinit ,positive 
-0526 6800cce0 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-0527 c1000000 rtneq 0 
-0528 1fe0ffff increase -1 ,pdata 
-0529 6000cce0 store 1 ,mem_power_ctrl_pac_succ_cnt 
-052a 20600000 rtn 
+0524 6800cce0 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+0525 1fe67c02 sub pdata ,2 ,null 
+0526 2441052c ncall power_ctrl_pac_succ_cnt_reinit ,positive 
+0527 6800cce0 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+0528 c1000000 rtneq 0 
+0529 1fe0ffff increase -1 ,pdata 
+052a 6000cce0 store 1 ,mem_power_ctrl_pac_succ_cnt 
+052b 20600000 rtn 
 
 power_ctrl_pac_succ_cnt_reinit:
-052b 704ce003 jam 3 ,mem_power_ctrl_pac_succ_cnt 
-052c 20600000 rtn 
+052c 704ce003 jam 3 ,mem_power_ctrl_pac_succ_cnt 
+052d 20600000 rtn 
 
 power_ctrl_start:
-052d 68014682 fetch 2 ,mem_ui_state_map 
-052e c3858000 rtnbit1 ui_state_ble_adv 
-052f c3838000 rtnbit1 ui_state_bt_reconnect 
-0530 c3830000 rtnbit1 ui_state_bt_discovery 
-0531 da204c69 arg mem_rssi_signal_buf ,rega 
-0532 20400056 call p_rssi_average 
-0533 6008cce1 storet 1 ,mem_rssi_avg_received 
-0534 58000082 setarg rssi_dis_max_24g 
-0535 c5130537 bmark1 mark_24g ,power_ctrl_start_next 
-0536 58000080 setarg rssi_dis_max_ble 
+052e 68014682 fetch 2 ,mem_ui_state_map 
+052f c3858000 rtnbit1 ui_state_ble_adv 
+0530 c3838000 rtnbit1 ui_state_bt_reconnect 
+0531 c3830000 rtnbit1 ui_state_bt_discovery 
+0532 da204c69 arg mem_rssi_signal_buf ,rega 
+0533 20400056 call p_rssi_average 
+0534 6008cce1 storet 1 ,mem_rssi_avg_received 
+0535 58000082 setarg rssi_dis_max_24g 
+0536 c5130538 bmark1 mark_24g ,power_ctrl_start_next 
+0537 58000080 setarg rssi_dis_max_ble 
 
 power_ctrl_start_next:
-0537 98467c00 isub temp ,null 
-0538 2421054f nbranch power_ctrl_txpower_incrs_force ,positive 
-0539 6800cce0 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-053a 1fe67c02 sub pdata ,2 ,null 
-053b 2421053f nbranch power_ctrl_txpower_decrs_check ,positive 
-053c 6800cce0 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-053d c0000550 beq 0 ,power_ctrl_txpower_incrs 
-053e 20600000 rtn 
+0538 98467c00 isub temp ,null 
+0539 24210550 nbranch power_ctrl_txpower_incrs_force ,positive 
+053a 6800cce0 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+053b 1fe67c02 sub pdata ,2 ,null 
+053c 24210540 nbranch power_ctrl_txpower_decrs_check ,positive 
+053d 6800cce0 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+053e c0000551 beq 0 ,power_ctrl_txpower_incrs 
+053f 20600000 rtn 
 
 power_ctrl_txpower_decrs_check:
-053f 6800cce0 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-0540 c1900000 rtnne 32 
-0541 704ce000 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+0540 6800cce0 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+0541 c1900000 rtnne 32 
+0542 704ce000 jam 0 ,mem_power_ctrl_pac_succ_cnt 
 
 power_ctrl_txpower_decrs:
-0542 6808cce1 fetcht 1 ,mem_rssi_avg_received 
-0543 58000077 setarg rssi_dis_min_24g 
-0544 c5130546 bmark1 mark_24g ,power_ctrl_txpower_decrs_next 
-0545 58000075 setarg rssi_dis_min_ble 
+0543 6808cce1 fetcht 1 ,mem_rssi_avg_received 
+0544 58000077 setarg rssi_dis_min_24g 
+0545 c5130547 bmark1 mark_24g ,power_ctrl_txpower_decrs_next 
+0546 58000075 setarg rssi_dis_min_ble 
 
 power_ctrl_txpower_decrs_next:
-0546 98467c00 isub temp ,null 
-0547 24610000 nrtn positive 
-0548 6800cce3 fetch 1 ,mem_power_ctrl_level 
-0549 c0000557 beq 0 ,power_ctrl_decrs_level0 
-054a 1fe0ffff increase -1 ,pdata 
-054b 6000cce3 store 1 ,mem_power_ctrl_level 
-054c c0000557 beq 0 ,power_ctrl_decrs_level0 
+0547 98467c00 isub temp ,null 
+0548 24610000 nrtn positive 
+0549 6800cce3 fetch 1 ,mem_power_ctrl_level 
+054a c0000558 beq 0 ,power_ctrl_decrs_level0 
+054b 1fe0ffff increase -1 ,pdata 
+054c 6000cce3 store 1 ,mem_power_ctrl_level 
+054d c0000558 beq 0 ,power_ctrl_decrs_level0 
 
 power_ctrl_decrs_level1:
 
 power_ctrl_incrs_level1:
-054d 7041de00 jam tx_power_0db ,mem_tx_power 
-054e 20600000 rtn 
+054e 7041de00 jam tx_power_0db ,mem_tx_power 
+054f 20600000 rtn 
 
 power_ctrl_txpower_incrs_force:
-054f 704ce000 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+0550 704ce000 jam 0 ,mem_power_ctrl_pac_succ_cnt 
 
 power_ctrl_txpower_incrs:
-0550 6800cce3 fetch 1 ,mem_power_ctrl_level 
-0551 c0010555 beq 2 ,power_ctrl_incrs_level2 
-0552 1fe0fe01 increase 1 ,pdata 
-0553 6000cce3 store 1 ,mem_power_ctrl_level 
-0554 c000854d beq 1 ,power_ctrl_incrs_level1 
+0551 6800cce3 fetch 1 ,mem_power_ctrl_level 
+0552 c0010556 beq 2 ,power_ctrl_incrs_level2 
+0553 1fe0fe01 increase 1 ,pdata 
+0554 6000cce3 store 1 ,mem_power_ctrl_level 
+0555 c000854e beq 1 ,power_ctrl_incrs_level1 
 
 power_ctrl_incrs_level2:
-0555 7041de02 jam tx_power_5db ,mem_tx_power 
-0556 20600000 rtn 
+0556 7041de02 jam tx_power_5db ,mem_tx_power 
+0557 20600000 rtn 
 
 power_ctrl_decrs_level0:
-0557 7041de04 jam tx_power_f5db ,mem_tx_power 
-0558 20600000 rtn 
+0558 7041de04 jam tx_power_f5db ,mem_tx_power 
+0559 20600000 rtn 
 
 p_set_freq_tx:
-0559 60088017 storet 1 ,mem_last_freq 
-055a 1840a200 add temp ,0 ,rega 
-055b 20402981 call rf_write_freq 
-055c 58000500 setarg param_pll_setup 
-055d 20402a8f call sleep 
+055a 60088017 storet 1 ,mem_last_freq 
+055b 1840a200 add temp ,0 ,rega 
+055c 20402981 call rf_write_freq 
+055d 58000500 setarg param_pll_setup 
+055e 20402a8f call sleep 
 
 p_rf_tx_enable:
-055e 70890601 jam 0x1 ,rfen_adc 
-055f 7089003c jam 0x3c ,rfen_rx 
-0560 708901e0 jam 0xe0 ,rfen_tx 
-0561 2000000a nop 10 
-0562 70890201 jam 0x01 ,rfen_mdm 
-0563 7089023d jam 0x3d ,rfen_mdm 
-0564 2000000a nop 10 
-0565 708903b7 jam 0xb7 ,rfen_sn 
-0566 2000000a nop 10 
-0567 7089027d jam 0x7d ,rfen_mdm 
-0568 6800c1de fetch 1 ,mem_tx_power 
-0569 c0010571 beq tx_power_5db ,p_set_tx_power_5db 
-056a c0020576 beq tx_power_f5db ,p_set_tx_power_f5db 
-056b c0100585 beq tx_power_pair ,p_set_tx_power_pair 
+055f 70890601 jam 0x1 ,rfen_adc 
+0560 7089003c jam 0x3c ,rfen_rx 
+0561 708901e0 jam 0xe0 ,rfen_tx 
+0562 2000000a nop 10 
+0563 70890201 jam 0x01 ,rfen_mdm 
+0564 7089023d jam 0x3d ,rfen_mdm 
+0565 2000000a nop 10 
+0566 708903b7 jam 0xb7 ,rfen_sn 
+0567 2000000a nop 10 
+0568 7089027d jam 0x7d ,rfen_mdm 
+0569 6800c1de fetch 1 ,mem_tx_power 
+056a c0010572 beq tx_power_5db ,p_set_tx_power_5db 
+056b c0020577 beq tx_power_f5db ,p_set_tx_power_f5db 
+056c c0100586 beq tx_power_pair ,p_set_tx_power_pair 
 
 p_set_tx_power_0db:
-056c 2040057b call p_rx_low_sens 
-056d 708955d0 jam 0xd0 ,0x8955 
-056e 708956e0 jam 0xe0 ,0x8956 
-056f 7089586c jam 0x6c ,0x8958 
-0570 2020294b branch set_tx_power_0db 
+056d 2040057c call p_rx_low_sens 
+056e 708955d0 jam 0xd0 ,0x8955 
+056f 708956e0 jam 0xe0 ,0x8956 
+0570 7089586c jam 0x6c ,0x8958 
+0571 2020294b branch set_tx_power_0db 
 
 p_set_tx_power_5db:
-0571 20400580 call p_rx_high_sens 
-0572 708955d0 jam 0xd0 ,0x8955 
-0573 708956e0 jam 0xe0 ,0x8956 
-0574 7089583c jam 0x3c ,0x8958 
-0575 20202953 branch set_tx_power_5db 
+0572 20400581 call p_rx_high_sens 
+0573 708955d0 jam 0xd0 ,0x8955 
+0574 708956e0 jam 0xe0 ,0x8956 
+0575 7089583c jam 0x3c ,0x8958 
+0576 20202953 branch set_tx_power_5db 
 
 p_set_tx_power_f5db:
-0576 2040057b call p_rx_low_sens 
-0577 708955d0 jam 0xd0 ,0x8955 
-0578 708956c0 jam 0xc0 ,0x8956 
-0579 7089586c jam 0x6c ,0x8958 
-057a 2020295b branch set_tx_power_f5db 
+0577 2040057c call p_rx_low_sens 
+0578 708955d0 jam 0xd0 ,0x8955 
+0579 708956c0 jam 0xc0 ,0x8956 
+057a 7089586c jam 0x6c ,0x8958 
+057b 2020295b branch set_tx_power_f5db 
 
 p_rx_low_sens:
-057b 70894c5b jam 0x5b ,0x894c 
-057c 70894d96 jam 0x96 ,0x894d 
-057d 70894e2c jam 0x2c ,0x894e 
-057e 70894f46 jam 0x46 ,0x894f 
-057f 20600000 rtn 
+057c 70894c5b jam 0x5b ,0x894c 
+057d 70894d96 jam 0x96 ,0x894d 
+057e 70894e2c jam 0x2c ,0x894e 
+057f 70894f46 jam 0x46 ,0x894f 
+0580 20600000 rtn 
 
 p_rx_high_sens:
-0580 70894cfb jam 0xfb ,0x894c 
-0581 70894def jam 0xef ,0x894d 
-0582 70894eec jam 0xec ,0x894e 
-0583 70894f5e jam 0x5e ,0x894f 
-0584 20600000 rtn 
+0581 70894cfb jam 0xfb ,0x894c 
+0582 70894def jam 0xef ,0x894d 
+0583 70894eec jam 0xec ,0x894e 
+0584 70894f5e jam 0x5e ,0x894f 
+0585 20600000 rtn 
 
 p_set_tx_power_pair:
-0585 708956c2 jam 0xc2 ,0x8956 
-0586 708955d0 jam 0xd0 ,0x8955 
-0587 20600000 rtn 
+0586 708956c2 jam 0xc2 ,0x8956 
+0587 708955d0 jam 0xd0 ,0x8955 
+0588 20600000 rtn 
 
 p_shutdown_radio:
-0588 18002a08 force 8 ,radio_ctrl 
-0589 202028fa branch shutdown_radio + 1 
+0589 18002a08 force 8 ,radio_ctrl 
+058a 202028fa branch shutdown_radio + 1 
 
 p_drawing_optima_init:
-058a df200005 arg 5 ,loopcnt 
-058b d8a04b0b arg mem_mouse_asm_flag ,contw 
-058c 20207ed4 branch clear_mem 
+058b df200005 arg 5 ,loopcnt 
+058c d8a04b0b arg mem_mouse_asm_flag ,contw 
+058d 20207ed4 branch clear_mem 
 
 p_drawing_optima:
-058d 6802469b fetch 4 ,mem_mouse_x 
-058e 207a0000 rtn blank 
-058f 204005de call p_data_abs_check 
-0590 58000006 setarg 0x06 
-0591 204005d1 call p_data_greater_than_check 
-0592 58000003 setarg 0x03 
-0593 204005d7 call p_data_less_than_check 
-0594 6800cb0b fetch 1 ,mem_mouse_asm_flag 
-0595 c0008597 beq 1 ,p_drawing_optima_modify 
-0596 2020058a branch p_drawing_optima_init 
+058e 6802469b fetch 4 ,mem_mouse_x 
+058f 207a0000 rtn blank 
+0590 204005df call p_data_abs_check 
+0591 58000006 setarg 0x06 
+0592 204005d2 call p_data_greater_than_check 
+0593 58000003 setarg 0x03 
+0594 204005d8 call p_data_less_than_check 
+0595 6800cb0b fetch 1 ,mem_mouse_asm_flag 
+0596 c0008598 beq 1 ,p_drawing_optima_modify 
+0597 2020058b branch p_drawing_optima_init 
 
 p_drawing_optima_modify:
-0597 68014b0c fetch 2 ,mem_mouse_x_pre 
-0598 600111be store 2 ,mem_data_pre 
-0599 6801469b fetch 2 ,mem_mouse_x 
-059a 600111c0 store 2 ,mem_data_current 
-059b 204005aa call p_drawing_optima_data 
-059c 680111be fetch 2 ,mem_data_pre 
-059d 60014b0c store 2 ,mem_mouse_x_pre 
-059e 680111c0 fetch 2 ,mem_data_current 
-059f 6001469b store 2 ,mem_mouse_x 
-05a0 68014b0e fetch 2 ,mem_mouse_y_pre 
-05a1 600111be store 2 ,mem_data_pre 
-05a2 6801469d fetch 2 ,mem_mouse_y 
-05a3 600111c0 store 2 ,mem_data_current 
-05a4 204005aa call p_drawing_optima_data 
-05a5 680111be fetch 2 ,mem_data_pre 
-05a6 60014b0e store 2 ,mem_mouse_y_pre 
-05a7 680111c0 fetch 2 ,mem_data_current 
-05a8 6001469d store 2 ,mem_mouse_y 
-05a9 20600000 rtn 
+0598 68014b0c fetch 2 ,mem_mouse_x_pre 
+0599 600111be store 2 ,mem_data_pre 
+059a 6801469b fetch 2 ,mem_mouse_x 
+059b 600111c0 store 2 ,mem_data_current 
+059c 204005ab call p_drawing_optima_data 
+059d 680111be fetch 2 ,mem_data_pre 
+059e 60014b0c store 2 ,mem_mouse_x_pre 
+059f 680111c0 fetch 2 ,mem_data_current 
+05a0 6001469b store 2 ,mem_mouse_x 
+05a1 68014b0e fetch 2 ,mem_mouse_y_pre 
+05a2 600111be store 2 ,mem_data_pre 
+05a3 6801469d fetch 2 ,mem_mouse_y 
+05a4 600111c0 store 2 ,mem_data_current 
+05a5 204005ab call p_drawing_optima_data 
+05a6 680111be fetch 2 ,mem_data_pre 
+05a7 60014b0e store 2 ,mem_mouse_y_pre 
+05a8 680111c0 fetch 2 ,mem_data_current 
+05a9 6001469d store 2 ,mem_mouse_y 
+05aa 20600000 rtn 
 
 p_drawing_optima_data:
-05aa 680111be fetch 2 ,mem_data_pre 
-05ab 680911c0 fetcht 2 ,mem_data_current 
-05ac 9840fe00 iadd temp ,pdata 
-05ad 600191c2 store 3 ,mem_data_sum 
-05ae 2feffe10 isolate1 16 ,pdata 
-05af 202085b7 branch p_data_sum_overflow ,true 
-05b0 680091c3 fetch 1 ,mem_data_sum + 1 
-05b1 c07f85be beq 0xff ,p_data_sum_n 
-05b2 680091c2 fetch 1 ,mem_data_sum 
+05ab 680111be fetch 2 ,mem_data_pre 
+05ac 680911c0 fetcht 2 ,mem_data_current 
+05ad 9840fe00 iadd temp ,pdata 
+05ae 600191c2 store 3 ,mem_data_sum 
+05af 2feffe10 isolate1 16 ,pdata 
+05b0 202085b8 branch p_data_sum_overflow ,true 
+05b1 680091c3 fetch 1 ,mem_data_sum + 1 
+05b2 c07f85bf beq 0xff ,p_data_sum_n 
+05b3 680091c2 fetch 1 ,mem_data_sum 
 
 p_data_store_pre:
-05b3 1fe37e00 rshift pdata ,pdata 
-05b4 600111be store 2 ,mem_data_pre 
-05b5 600111c0 store 2 ,mem_data_current 
-05b6 20600000 rtn 
+05b4 1fe37e00 rshift pdata ,pdata 
+05b5 600111be store 2 ,mem_data_pre 
+05b6 600111c0 store 2 ,mem_data_current 
+05b7 20600000 rtn 
 
 p_data_sum_overflow:
-05b7 680091c3 fetch 1 ,mem_data_sum + 1 
-05b8 c00005bb beq 0 ,p_data_sum_overflow_p 
-05b9 680191c2 fetch 3 ,mem_data_sum 
-05ba 202005b3 branch p_data_store_pre 
+05b8 680091c3 fetch 1 ,mem_data_sum + 1 
+05b9 c00005bc beq 0 ,p_data_sum_overflow_p 
+05ba 680191c2 fetch 3 ,mem_data_sum 
+05bb 202005b4 branch p_data_store_pre 
 
 p_data_sum_overflow_p:
-05bb 7011c400 jam 0 ,mem_data_sum + 2 
-05bc 680091c2 fetch 1 ,mem_data_sum 
-05bd 202005b3 branch p_data_store_pre 
+05bc 7011c400 jam 0 ,mem_data_sum + 2 
+05bd 680091c2 fetch 1 ,mem_data_sum 
+05be 202005b4 branch p_data_store_pre 
 
 p_data_sum_n:
-05be 680091c2 fetch 1 ,mem_data_sum 
-05bf 204005c9 call p_pdata_get_half 
-05c0 600091be store 1 ,mem_data_pre 
-05c1 600091c0 store 1 ,mem_data_current 
-05c2 203a05c7 branch p_data_zero ,blank 
-05c3 580000ff setarg 0xff 
+05bf 680091c2 fetch 1 ,mem_data_sum 
+05c0 204005ca call p_pdata_get_half 
+05c1 600091be store 1 ,mem_data_pre 
+05c2 600091c0 store 1 ,mem_data_current 
+05c3 203a05c8 branch p_data_zero ,blank 
+05c4 580000ff setarg 0xff 
 
 p_data_set_direction:
-05c4 600091bf store 1 ,mem_data_pre + 1 
-05c5 600091c1 store 1 ,mem_data_current + 1 
-05c6 20600000 rtn 
+05c5 600091bf store 1 ,mem_data_pre + 1 
+05c6 600091c1 store 1 ,mem_data_current + 1 
+05c7 20600000 rtn 
 
 p_data_zero:
-05c7 58000000 setarg 0 
-05c8 202005c4 branch p_data_set_direction 
+05c8 58000000 setarg 0 
+05c9 202005c5 branch p_data_set_direction 
 
 p_pdata_get_half:
-05c9 1fe67e00 sub pdata ,0 ,pdata 
-05ca 60008aae store 1 ,mem_rega 
-05cb 68008aae fetch 1 ,mem_rega 
-05cc 1fe37e00 rshift pdata ,pdata 
-05cd 60008aae store 1 ,mem_rega 
-05ce 68008aae fetch 1 ,mem_rega 
-05cf 1fe67e00 sub pdata ,0 ,pdata 
-05d0 20600000 rtn 
+05ca 1fe67e00 sub pdata ,0 ,pdata 
+05cb 60008aae store 1 ,mem_rega 
+05cc 68008aae fetch 1 ,mem_rega 
+05cd 1fe37e00 rshift pdata ,pdata 
+05ce 60008aae store 1 ,mem_rega 
+05cf 68008aae fetch 1 ,mem_rega 
+05d0 1fe67e00 sub pdata ,0 ,pdata 
+05d1 20600000 rtn 
 
 p_data_greater_than_check:
-05d1 9a267c00 isub rega ,null 
-05d2 242105dc nbranch p_enable_asm ,positive 
-05d3 9a467c00 isub regb ,null 
-05d4 242105dc nbranch p_enable_asm ,positive 
+05d2 9a267c00 isub rega ,null 
+05d3 242105dd nbranch p_enable_asm ,positive 
+05d4 9a467c00 isub regb ,null 
+05d5 242105dd nbranch p_enable_asm ,positive 
 
 p_disable_asm:
-05d5 704b0b00 jam 0 ,mem_mouse_asm_flag 
-05d6 20600000 rtn 
+05d6 704b0b00 jam 0 ,mem_mouse_asm_flag 
+05d7 20600000 rtn 
 
 p_data_less_than_check:
-05d7 9a267c00 isub rega ,null 
-05d8 24610000 nrtn positive 
-05d9 9a467c00 isub regb ,null 
-05da 24610000 nrtn positive 
-05db 202005d5 branch p_disable_asm 
+05d8 9a267c00 isub rega ,null 
+05d9 24610000 nrtn positive 
+05da 9a467c00 isub regb ,null 
+05db 24610000 nrtn positive 
+05dc 202005d6 branch p_disable_asm 
 
 p_enable_asm:
-05dc 704b0b01 jam 1 ,mem_mouse_asm_flag 
-05dd 20600000 rtn 
+05dd 704b0b01 jam 1 ,mem_mouse_asm_flag 
+05de 20600000 rtn 
 
 p_data_abs_check:
-05de 6801469b fetch 2 ,mem_mouse_x 
-05df 600111c0 store 2 ,mem_data_current 
-05e0 204005e7 call p_data_abs 
-05e1 1fe22200 copy pdata ,rega 
-05e2 6801469d fetch 2 ,mem_mouse_y 
-05e3 600111c0 store 2 ,mem_data_current 
-05e4 204005e7 call p_data_abs 
-05e5 1fe22400 copy pdata ,regb 
-05e6 20600000 rtn 
+05df 6801469b fetch 2 ,mem_mouse_x 
+05e0 600111c0 store 2 ,mem_data_current 
+05e1 204005e8 call p_data_abs 
+05e2 1fe22200 copy pdata ,rega 
+05e3 6801469d fetch 2 ,mem_mouse_y 
+05e4 600111c0 store 2 ,mem_data_current 
+05e5 204005e8 call p_data_abs 
+05e6 1fe22400 copy pdata ,regb 
+05e7 20600000 rtn 
 
 p_data_abs:
-05e7 680091c1 fetch 1 ,mem_data_current + 1 
-05e8 c07f85ec beq 0xff ,p_data_reversal 
-05e9 680091c0 fetch 1 ,mem_data_current 
+05e8 680091c1 fetch 1 ,mem_data_current + 1 
+05e9 c07f85ed beq 0xff ,p_data_reversal 
+05ea 680091c0 fetch 1 ,mem_data_current 
 
 p_data_abs_store:
-05ea 1fe17eff and_into 0xff ,pdata 
-05eb 20600000 rtn 
+05eb 1fe17eff and_into 0xff ,pdata 
+05ec 20600000 rtn 
 
 p_data_reversal:
-05ec 680111c0 fetch 2 ,mem_data_current 
-05ed 1fe67e00 sub pdata ,0 ,pdata 
-05ee 202005ea branch p_data_abs_store 
+05ed 680111c0 fetch 2 ,mem_data_current 
+05ee 1fe67e00 sub pdata ,0 ,pdata 
+05ef 202005eb branch p_data_abs_store 
 org 0x2000
 
 start:
Index: program/patch.prog
===================================================================
--- /branch/mouse_project/LeXiang/BT&BLE_Trust/program/patch.prog	(revision 1966)
+++ /branch/mouse_project/LeXiang/BT&BLE_Trust/program/patch.prog	(working copy)
@@ -2616,7 +2616,8 @@
 	call master_send_packet
 	set1 mark_role_switch_receive_fhs,mark
 	set0 mark_fhs_already_good,mark
-	force 1,am_addr	/* process_fhs will update am_addr, so slave will not receive fhs succeffully sometimes */
+	fetch 1,mem_amaddr
+	iforce am_addr	//use current LT_ADDR
 	jam 2,mem_newconnto_counter
 	branch p_roles_waitfhs_loop
 
