Index: output/bt_program23.icode
===================================================================
--- /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/bt_program23.icode	(revision 6949)
+++ /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/bt_program23.icode	(working copy)
@@ -660,7 +660,7 @@
  00000659  0x000003ce call  0x000005de 
  00000660  0x000003cf fetcht  0x00000001 , 0x00004d91 
  00000661  0x000003d0 call  0x0000680e 
- 00000662  0x000003d1 branch  0x00006829 
+ 00000662  0x000003d1 call  0x00006829 
  00000663  0x000003d2 hfetch  0x00000004 , 0x00008070 
  00000664  0x000003d3 hfetcht  0x00000004 , 0x00008078 
  00000665  0x000003d4 ior  0x00000002 , 0x00000002 
@@ -27060,114 +27060,114 @@
  00720949  0x0000948a call  0x0000032c 
  00720950  0x0000948b call  0x00003e9f 
  00720951  0x0000948c call  0x0000028c 
- 00720952  0x0000948f call  0x00000377 
- 00720953  0x00009490 hfetch  0x00000001 , 0x00008081 
- 00720954  0x00009491 and  0x0000003f , 0x000000f7 , 0x0000003f 
- 00720955  0x00009492 hstore  0x00000001 , 0x00008081 
- 00720956  0x00009496 branch  0x000002b7 
- 00786433  0x0000949b beq  0x000000b1 , 0x000c0006 
- 00786434  0x0000949c beq  0x000000b2 , 0x000c000c 
- 00786435  0x0000949d beq  0x000000b3 , 0x000c0011 
- 00786436  0x0000949e beq  0x000000b4 , 0x000c0018 
- 00786437  0x0000949f rtn 
- 00786438  0x000094a2 fetch  0x00000001 , 0x000049e3 
- 00786439  0x000094a3 rtneq  0x00000002 
- 00786440  0x000094a4 increase  0x00000001 , 0x0000003f 
- 00786441  0x000094a5 store  0x00000001 , 0x000049e3 
- 00786442  0x000094a6 jam  0x00000012 , 0x000041e3 
- 00786443  0x000094a7 branch  0x0000340e 
- 00786444  0x000094aa fetch  0x00000001 , 0x000049e3 
- 00786445  0x000094ab rtnne  0x00000002 
- 00786446  0x000094ac jam  0x00000000 , 0x000049e3 
- 00786447  0x000094ad jam  0x0000000e , 0x000041e3 
- 00786448  0x000094ae branch  0x0000340e 
- 00786449  0x000094b1 fetch  0x00000001 , 0x000047a1 
- 00786450  0x000094b2 beq  0x00000001 , 0x000c0014 
- 00786451  0x000094b3 branch  0x000c0016 
- 00786452  0x000094b5 call  0x0000043a 
- 00786453  0x000094b6 jam  0x0000000a , 0x000046c6 
- 00786454  0x000094b8 arg  0x00000001 , 0x00000007 
- 00786455  0x000094b9 branch  0x000041b9 
- 00786456  0x000094bc jam  0x00000001 , 0x00004d92 
- 00786457  0x000094bd jam  0x0000000a , 0x00004d07 
- 00786458  0x000094be call  0x00000749 
- 00786459  0x000094bf jam  0x00000000 , 0x00004cda 
- 00786460  0x000094c0 jam  0x00000000 , 0x00004cdc 
- 00786461  0x000094c1 jam  0x00000000 , 0x00004ce5 
- 00786462  0x000094c2 call  0x0000032c 
- 00786463  0x000094c3 branch  0x000041d9 
- 00851969  0x000094cb fetch  0x00000001 , 0x00004f91 
- 00851970  0x000094cc beq  0x00000001 , 0x00002dd4 
- 00851971  0x000094cd jam  0x000000ff , 0x0000119e 
- 00851972  0x000094ce fetch  0x00000001 , 0x00004e47 
- 00851973  0x000094cf store  0x00000001 , 0x0000119f 
- 00851974  0x000094d0 fetch  0x00000004 , 0x00004e7d 
- 00851975  0x000094d1 store  0x00000004 , 0x000011a0 
- 00851976  0x000094d2 arg  0x00000006 , 0x00000002 
- 00851977  0x000094d3 arg  0x0000119e , 0x00000011 
- 00851978  0x000094d4 call  0x000001d7 
- 00851979  0x000094d5 call  0x000001e8 
- 00851980  0x000094d6 call  0x00000188 
- 00851981  0x000094d7 nbranch  0x000d0026 , 0x00000018 
- 00851982  0x000094d8 nbranch  0x000d0026 , 0x0000002f 
- 00851983  0x000094d9 call  0x000001b0 
- 00851984  0x000094da fetch  0x00000004 , 0x00004e6e 
- 00851985  0x000094db fetcht  0x00000004 , 0x00004f8b 
- 00851986  0x000094dc isub  0x00000002 , 0x0000003e 
- 00851987  0x000094dd branch  0x000d0016 , 0x00000005 
- 00851988  0x000094de fetch  0x00000001 , 0x00004e44 
- 00851989  0x000094df rtnne  0x00000008 
- 00851990  0x000094e4 jam  0x00000000 , 0x00004f96 
- 00851991  0x000094e5 call  0x000002df 
- 00851992  0x000094e6 fetch  0x00000004 , 0x00004e6e 
- 00851993  0x000094e7 fetcht  0x00000004 , 0x00004e52 
- 00851994  0x000094e8 isub  0x00000002 , 0x0000003e 
- 00851995  0x000094e9 branch  0x000001ca , 0x00000005 
- 00851996  0x000094ea fetch  0x00000004 , 0x00004e6e 
- 00851997  0x000094eb fetcht  0x00000004 , 0x00004e7d 
- 00851998  0x000094ec isub  0x00000002 , 0x0000003e 
- 00851999  0x000094ed call  0x000d0024 , 0x00000005 
- 00852000  0x000094ee jam  0x00000000 , 0x00004d40 
- 00852001  0x000094ef call  0x00002f20 
- 00852002  0x000094f0 call  0x00000185 
- 00852003  0x000094f1 branch  0x0000039c 
- 00852004  0x000094f4 fetch  0x00000004 , 0x00004e26 
- 00852005  0x000094f5 branch  0x000001bc 
- 00852006  0x000094f9 jam  0x00000001 , 0x00004e47 
- 00852007  0x000094fa fetch  0x00000001 , 0x00004f84 
- 00852008  0x000094fb increase  0x00000001 , 0x0000003f 
- 00852009  0x000094fc and_into  0x00000003 , 0x0000003f 
- 00852010  0x000094fd store  0x00000001 , 0x00004f84 
- 00852011  0x000094fe beq  0x00000000 , 0x000d002e 
- 00852012  0x000094ff beq  0x00000002 , 0x000d0038 
- 00852013  0x00009500 branch  0x000001b7 
- 00852014  0x00009503 call  0x000002df 
- 00852015  0x00009504 fetch  0x00000004 , 0x00004e7d 
- 00852016  0x00009505 store  0x00000004 , 0x00004e6e 
- 00852017  0x00009506 fetch  0x00000001 , 0x00004f94 
- 00852018  0x00009507 store  0x00000001 , 0x00004e51 
- 00852019  0x00009508 call  0x000d0036 
- 00852020  0x00009509 storet  0x00000001 , 0x00004f94 
- 00852021  0x0000950a rtn 
- 00852022  0x0000950d call  0x000001bd 
- 00852023  0x0000950e branch  0x00000140 
- 00852024  0x00009511 jam  0x00000020 , 0x000041de 
- 00852025  0x00009512 fetch  0x00000004 , 0x00004f8b 
- 00852026  0x00009513 store  0x00000004 , 0x00004e6e 
- 00852027  0x00009514 fetch  0x00000001 , 0x00004f95 
- 00852028  0x00009515 store  0x00000001 , 0x00004e51 
- 00852029  0x00009516 call  0x000d0036 
- 00852030  0x00009517 storet  0x00000001 , 0x00004f95 
- 00852031  0x00009518 rtn 
- 00917505  0x0000951d beq  0x000000d0 , 0x000e0003 
- 00917506  0x0000951e rtn 
- 00917507  0x00009521 jam  0x00000000 , 0x00004d92 
- 00917508  0x00009522 call  0x00000300 
- 00917509  0x00009523 call  0x00003410 
- 00917510  0x00009524 jam  0x00000001 , 0x00004d43 
- 00917511  0x00009525 fetch  0x00000001 , 0x000047a1 
- 00917512  0x00009526 nbranch  0x000e000a , 0x00000034 
- 00917513  0x00009527 jam  0x00000014 , 0x00004d44 
- 00917514  0x00009529 call  0x00000480 
- 00917515  0x0000952a call  0x000003e5 
- 00917516  0x0000952b branch  0x000041c3 
+ 00720952  0x0000948e call  0x00000377 
+ 00720953  0x0000948f hfetch  0x00000001 , 0x00008081 
+ 00720954  0x00009490 and  0x0000003f , 0x000000f7 , 0x0000003f 
+ 00720955  0x00009491 hstore  0x00000001 , 0x00008081 
+ 00720956  0x00009495 branch  0x000002b7 
+ 00786433  0x0000949a beq  0x000000b1 , 0x000c0006 
+ 00786434  0x0000949b beq  0x000000b2 , 0x000c000c 
+ 00786435  0x0000949c beq  0x000000b3 , 0x000c0011 
+ 00786436  0x0000949d beq  0x000000b4 , 0x000c0018 
+ 00786437  0x0000949e rtn 
+ 00786438  0x000094a1 fetch  0x00000001 , 0x000049e3 
+ 00786439  0x000094a2 rtneq  0x00000002 
+ 00786440  0x000094a3 increase  0x00000001 , 0x0000003f 
+ 00786441  0x000094a4 store  0x00000001 , 0x000049e3 
+ 00786442  0x000094a5 jam  0x00000012 , 0x000041e3 
+ 00786443  0x000094a6 branch  0x0000340e 
+ 00786444  0x000094a9 fetch  0x00000001 , 0x000049e3 
+ 00786445  0x000094aa rtnne  0x00000002 
+ 00786446  0x000094ab jam  0x00000000 , 0x000049e3 
+ 00786447  0x000094ac jam  0x0000000e , 0x000041e3 
+ 00786448  0x000094ad branch  0x0000340e 
+ 00786449  0x000094b0 fetch  0x00000001 , 0x000047a1 
+ 00786450  0x000094b1 beq  0x00000001 , 0x000c0014 
+ 00786451  0x000094b2 branch  0x000c0016 
+ 00786452  0x000094b4 call  0x0000043a 
+ 00786453  0x000094b5 jam  0x0000000a , 0x000046c6 
+ 00786454  0x000094b7 arg  0x00000001 , 0x00000007 
+ 00786455  0x000094b8 branch  0x000041b9 
+ 00786456  0x000094bb jam  0x00000001 , 0x00004d92 
+ 00786457  0x000094bc jam  0x0000000a , 0x00004d07 
+ 00786458  0x000094bd call  0x00000749 
+ 00786459  0x000094be jam  0x00000000 , 0x00004cda 
+ 00786460  0x000094bf jam  0x00000000 , 0x00004cdc 
+ 00786461  0x000094c0 jam  0x00000000 , 0x00004ce5 
+ 00786462  0x000094c1 call  0x0000032c 
+ 00786463  0x000094c2 branch  0x000041d9 
+ 00851969  0x000094ca fetch  0x00000001 , 0x00004f91 
+ 00851970  0x000094cb beq  0x00000001 , 0x00002dd4 
+ 00851971  0x000094cc jam  0x000000ff , 0x0000119e 
+ 00851972  0x000094cd fetch  0x00000001 , 0x00004e47 
+ 00851973  0x000094ce store  0x00000001 , 0x0000119f 
+ 00851974  0x000094cf fetch  0x00000004 , 0x00004e7d 
+ 00851975  0x000094d0 store  0x00000004 , 0x000011a0 
+ 00851976  0x000094d1 arg  0x00000006 , 0x00000002 
+ 00851977  0x000094d2 arg  0x0000119e , 0x00000011 
+ 00851978  0x000094d3 call  0x000001d7 
+ 00851979  0x000094d4 call  0x000001e8 
+ 00851980  0x000094d5 call  0x00000188 
+ 00851981  0x000094d6 nbranch  0x000d0026 , 0x00000018 
+ 00851982  0x000094d7 nbranch  0x000d0026 , 0x0000002f 
+ 00851983  0x000094d8 call  0x000001b0 
+ 00851984  0x000094d9 fetch  0x00000004 , 0x00004e6e 
+ 00851985  0x000094da fetcht  0x00000004 , 0x00004f8b 
+ 00851986  0x000094db isub  0x00000002 , 0x0000003e 
+ 00851987  0x000094dc branch  0x000d0016 , 0x00000005 
+ 00851988  0x000094dd fetch  0x00000001 , 0x00004e44 
+ 00851989  0x000094de rtnne  0x00000008 
+ 00851990  0x000094e3 jam  0x00000000 , 0x00004f96 
+ 00851991  0x000094e4 call  0x000002df 
+ 00851992  0x000094e5 fetch  0x00000004 , 0x00004e6e 
+ 00851993  0x000094e6 fetcht  0x00000004 , 0x00004e52 
+ 00851994  0x000094e7 isub  0x00000002 , 0x0000003e 
+ 00851995  0x000094e8 branch  0x000001ca , 0x00000005 
+ 00851996  0x000094e9 fetch  0x00000004 , 0x00004e6e 
+ 00851997  0x000094ea fetcht  0x00000004 , 0x00004e7d 
+ 00851998  0x000094eb isub  0x00000002 , 0x0000003e 
+ 00851999  0x000094ec call  0x000d0024 , 0x00000005 
+ 00852000  0x000094ed jam  0x00000000 , 0x00004d40 
+ 00852001  0x000094ee call  0x00002f20 
+ 00852002  0x000094ef call  0x00000185 
+ 00852003  0x000094f0 branch  0x0000039c 
+ 00852004  0x000094f3 fetch  0x00000004 , 0x00004e26 
+ 00852005  0x000094f4 branch  0x000001bc 
+ 00852006  0x000094f8 jam  0x00000001 , 0x00004e47 
+ 00852007  0x000094f9 fetch  0x00000001 , 0x00004f84 
+ 00852008  0x000094fa increase  0x00000001 , 0x0000003f 
+ 00852009  0x000094fb and_into  0x00000003 , 0x0000003f 
+ 00852010  0x000094fc store  0x00000001 , 0x00004f84 
+ 00852011  0x000094fd beq  0x00000000 , 0x000d002e 
+ 00852012  0x000094fe beq  0x00000002 , 0x000d0038 
+ 00852013  0x000094ff branch  0x000001b7 
+ 00852014  0x00009502 call  0x000002df 
+ 00852015  0x00009503 fetch  0x00000004 , 0x00004e7d 
+ 00852016  0x00009504 store  0x00000004 , 0x00004e6e 
+ 00852017  0x00009505 fetch  0x00000001 , 0x00004f94 
+ 00852018  0x00009506 store  0x00000001 , 0x00004e51 
+ 00852019  0x00009507 call  0x000d0036 
+ 00852020  0x00009508 storet  0x00000001 , 0x00004f94 
+ 00852021  0x00009509 rtn 
+ 00852022  0x0000950c call  0x000001bd 
+ 00852023  0x0000950d branch  0x00000140 
+ 00852024  0x00009510 jam  0x00000020 , 0x000041de 
+ 00852025  0x00009511 fetch  0x00000004 , 0x00004f8b 
+ 00852026  0x00009512 store  0x00000004 , 0x00004e6e 
+ 00852027  0x00009513 fetch  0x00000001 , 0x00004f95 
+ 00852028  0x00009514 store  0x00000001 , 0x00004e51 
+ 00852029  0x00009515 call  0x000d0036 
+ 00852030  0x00009516 storet  0x00000001 , 0x00004f95 
+ 00852031  0x00009517 rtn 
+ 00917505  0x0000951c beq  0x000000d0 , 0x000e0003 
+ 00917506  0x0000951d rtn 
+ 00917507  0x00009520 jam  0x00000000 , 0x00004d92 
+ 00917508  0x00009521 call  0x00000300 
+ 00917509  0x00009522 call  0x00003410 
+ 00917510  0x00009523 jam  0x00000001 , 0x00004d43 
+ 00917511  0x00009524 fetch  0x00000001 , 0x000047a1 
+ 00917512  0x00009525 nbranch  0x000e000a , 0x00000034 
+ 00917513  0x00009526 jam  0x00000014 , 0x00004d44 
+ 00917514  0x00009528 call  0x00000480 
+ 00917515  0x00009529 call  0x000003e5 
+ 00917516  0x0000952a branch  0x000041c3 
Index: output/bt_program23.list
===================================================================
--- /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/bt_program23.list	(revision 6949)
+++ /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/bt_program23.list	(working copy)
@@ -767,7 +767,7 @@
 0x293 000974 call p_gpio_set_input_pu 
 0x294 000975 fetcht 1 ,mem_mouse_comm_gpio 
 0x295 000976 call gpio_config_output 
-0x296 000977 branch gpio_out_active 
+0x296 000977 call gpio_out_active 
 0x297 000978 hfetch 4 ,core_gpio_oe0 
 0x298 000979 hfetcht 4 ,core_gpio_pu0 
 0x299 000980 ior temp ,temp 
@@ -31551,136 +31551,136 @@
 0xb0035 038026 call p_mouse_store_flash_device_info 
 0xb0036 038027 call mouse_before_hibernate_wheel_gpio_set 
 0xb0037 038028 call p_mouse_setgpio_hibernate 
-0xb0038 038031 call p_flash_deep_power_down 
-0xb0039 038032 hfetch 1 ,core_gpio_sel1 
-0xb003a 038033 and pdata ,0xf7 ,pdata 
-0xb003b 038034 hstore 1 ,core_gpio_sel1 
-0xb003c 038038 branch p_mouse_clear_wake 
+0xb0038 038030 call p_flash_deep_power_down 
+0xb0039 038031 hfetch 1 ,core_gpio_sel1 
+0xb003a 038032 and pdata ,0xf7 ,pdata 
+0xb003b 038033 hstore 1 ,core_gpio_sel1 
+0xb003c 038037 branch p_mouse_clear_wake 
               org 0xc0001
-:      038042 z_entranceb:
-0xc0001 038043 beq zcode_b1 ,z_mouse_sniff_not_accept 
-0xc0002 038044 beq zcode_b2 ,z_mouse_enter_sniff_check 
-0xc0003 038045 beq zcode_b3 ,z_mouse_le_ll_start_encryt 
-0xc0004 038046 beq zcode_b4 ,z_mouse_bb_event_disconnected 
-0xc0005 038047 rtn 
-:      038049 z_mouse_sniff_not_accept:
-0xc0006 038050 fetch 1 ,mem_mouse_enter_sniff_count 
-0xc0007 038051 rtneq 2 
-0xc0008 038052 increase 1 ,pdata 
-0xc0009 038053 store 1 ,mem_mouse_enter_sniff_count 
-0xc000a 038054 jam 0x12 ,mem_sniff_param_interval 
-0xc000b 038055 branch app_bt_enter_sniff 
-:      038057 z_mouse_enter_sniff_check:
-0xc000c 038058 fetch 1 ,mem_mouse_enter_sniff_count 
-0xc000d 038059 rtnne 2 
-0xc000e 038060 jam 0 ,mem_mouse_enter_sniff_count 
-0xc000f 038061 jam 0x0e ,mem_sniff_param_interval 
-0xc0010 038062 branch app_bt_enter_sniff 
-:      038064 z_mouse_le_ll_start_encryt:
-0xc0011 038065 fetch 1 ,mem_mouse_le_reconnect_flag 
-0xc0012 038066 beq 1 ,z_mouse_le_ll_reconn_start_encryt 
-0xc0013 038067 branch z_mouse_le_ll_enable_start_enc_flag 
-:      038068 z_mouse_le_ll_reconn_start_encryt:
-0xc0014 038069 call p_app_updata_le_param 
-0xc0015 038070 jam 10 ,mem_le_start_encrypt_timer 
-:      038071 z_mouse_le_ll_enable_start_enc_flag:
-0xc0016 038072 arg ll_start_enc_flag ,queue 
-0xc0017 038073 branch mouse_le_enable_connect_flag 
-:      038075 z_mouse_bb_event_disconnected:
-0xc0018 038076 jam 1 ,mem_mouse_connected_state 
-0xc0019 038077 jam 10 ,mem_mouse_multi_led_blink_count 
-0xc001a 038078 call p_mouse_dpi_multi_led_blink 
-0xc001b 038079 jam 0 ,mem_bt_rcvd_switch_req_accept 
-0xc001c 038080 jam 0 ,mem_bt_send_lmp_setup_complete 
-0xc001d 038081 jam 0 ,mem_mouse_bt_send_first_package_flag 
-0xc001e 038082 call p_mouse_store_flash_device_info 
-0xc001f 038083 branch mouse_bb_disconnected 
+:      038041 z_entranceb:
+0xc0001 038042 beq zcode_b1 ,z_mouse_sniff_not_accept 
+0xc0002 038043 beq zcode_b2 ,z_mouse_enter_sniff_check 
+0xc0003 038044 beq zcode_b3 ,z_mouse_le_ll_start_encryt 
+0xc0004 038045 beq zcode_b4 ,z_mouse_bb_event_disconnected 
+0xc0005 038046 rtn 
+:      038048 z_mouse_sniff_not_accept:
+0xc0006 038049 fetch 1 ,mem_mouse_enter_sniff_count 
+0xc0007 038050 rtneq 2 
+0xc0008 038051 increase 1 ,pdata 
+0xc0009 038052 store 1 ,mem_mouse_enter_sniff_count 
+0xc000a 038053 jam 0x12 ,mem_sniff_param_interval 
+0xc000b 038054 branch app_bt_enter_sniff 
+:      038056 z_mouse_enter_sniff_check:
+0xc000c 038057 fetch 1 ,mem_mouse_enter_sniff_count 
+0xc000d 038058 rtnne 2 
+0xc000e 038059 jam 0 ,mem_mouse_enter_sniff_count 
+0xc000f 038060 jam 0x0e ,mem_sniff_param_interval 
+0xc0010 038061 branch app_bt_enter_sniff 
+:      038063 z_mouse_le_ll_start_encryt:
+0xc0011 038064 fetch 1 ,mem_mouse_le_reconnect_flag 
+0xc0012 038065 beq 1 ,z_mouse_le_ll_reconn_start_encryt 
+0xc0013 038066 branch z_mouse_le_ll_enable_start_enc_flag 
+:      038067 z_mouse_le_ll_reconn_start_encryt:
+0xc0014 038068 call p_app_updata_le_param 
+0xc0015 038069 jam 10 ,mem_le_start_encrypt_timer 
+:      038070 z_mouse_le_ll_enable_start_enc_flag:
+0xc0016 038071 arg ll_start_enc_flag ,queue 
+0xc0017 038072 branch mouse_le_enable_connect_flag 
+:      038074 z_mouse_bb_event_disconnected:
+0xc0018 038075 jam 1 ,mem_mouse_connected_state 
+0xc0019 038076 jam 10 ,mem_mouse_multi_led_blink_count 
+0xc001a 038077 call p_mouse_dpi_multi_led_blink 
+0xc001b 038078 jam 0 ,mem_bt_rcvd_switch_req_accept 
+0xc001c 038079 jam 0 ,mem_bt_send_lmp_setup_complete 
+0xc001d 038080 jam 0 ,mem_mouse_bt_send_first_package_flag 
+0xc001e 038081 call p_mouse_store_flash_device_info 
+0xc001f 038082 branch mouse_bb_disconnected 
               org 0xd0001
-:      038087 z_entrancec:
-:      038090 z_g24_pair_dispatch:
-0xd0001 038091 fetch 1 ,mem_24g_stop_g24_mode 
-0xd0002 038092 beq 1 ,g24_stop_24g_mode 
-0xd0003 038093 jam 0xff ,mem_24g_common_temp 
-0xd0004 038094 fetch 1 ,mem_24g_data_type 
-0xd0005 038095 store 1 ,mem_24g_common_temp + 1 
-0xd0006 038096 fetch 4 ,mem_24g_device_addr 
-0xd0007 038097 store 4 ,mem_24g_common_temp + 2 
-0xd0008 038098 arg 6 ,temp 
-0xd0009 038099 arg mem_24g_common_temp ,rega 
-0xd000a 038100 call p_g24_put_data_in_buff 
-0xd000b 038101 call p_g24_transmit_prep 
-0xd000c 038102 call p_g24_transmit_receive_ack 
-0xd000d 038103 nbranch z_g24_pair_txdata_retry ,sync 
-0xd000e 038104 nbranch z_g24_pair_txdata_retry ,user3 
-0xd000f 038105 call p_g24_ackpayload_parse 
-0xd0010 038106 fetch 4 ,mem_24g_addr 
-0xd0011 038107 fetcht 4 ,mem_24g_allpowerful_addr 
-0xd0012 038108 isub temp ,null 
-0xd0013 038109 branch z_g24_auto_pair_skip_rx_length ,zero 
-0xd0014 038110 fetch 1 ,mem_24g_rxdata_length 
-0xd0015 038111 rtnne bind_ackpayload_length 
-:      038112 z_g24_auto_pair_skip_rx_length:
-0xd0016 038116 jam 0 ,mem_24g_conn_sm 
-0xd0017 038117 call p_mouse_tx_power_init 
-0xd0018 038118 fetch 4 ,mem_24g_addr 
-0xd0019 038119 fetcht 4 ,mem_24g_paring_addr 
-0xd001a 038120 isub temp ,null 
-0xd001b 038121 branch p_g24_start_pairing_sm1 ,zero 
-0xd001c 038122 fetch 4 ,mem_24g_addr 
-0xd001d 038123 fetcht 4 ,mem_24g_device_addr 
-0xd001e 038124 isub temp ,null 
-0xd001f 038125 call z7_g24_store_dongle_addr ,zero 
-0xd0020 038126 jam 0 ,mem_mouse_long_mult_flag 
-0xd0021 038127 call g24_app_tx_attempt_success 
-0xd0022 038128 call p_g24_txbuf_clear 
-0xd0023 038129 branch p_g24_transmit_by_interrupt_enable 
-:      038131 z7_g24_store_dongle_addr:
-0xd0024 038132 fetch 4 ,mem_24g_rxpayload + 2 
-0xd0025 038133 branch p_g24_update_addr_and_synccrc8 
-:      038135 z_g24_pair_txdata_retry:
-:      038136 z_g24_pair_txdata_switch:
-0xd0026 038137 jam type_ms ,mem_24g_data_type 
-0xd0027 038138 fetch 1 ,mem_24g_auto_paring_switch 
-0xd0028 038139 increase 1 ,pdata 
-0xd0029 038140 and_into 3 ,pdata 
-0xd002a 038141 store 1 ,mem_24g_auto_paring_switch 
-0xd002b 038142 beq 0 ,z_g24_auto_pair_first_attemp 
-0xd002c 038143 beq 2 ,z_g24_auto_pair_all_powerful 
-0xd002d 038144 branch p_g24_pair_init 
-:      038146 z_g24_auto_pair_first_attemp:
-0xd002e 038147 call p_mouse_tx_power_init 
-0xd002f 038148 fetch 4 ,mem_24g_device_addr 
-0xd0030 038149 store 4 ,mem_24g_addr 
-0xd0031 038150 fetch 1 ,mem_24g_pair_current_ch_num 
-0xd0032 038151 store 1 ,mem_24g_current_ch_number 
-0xd0033 038152 call z_g24_ch_syncword_crc8_init 
-0xd0034 038153 storet 1 ,mem_24g_pair_current_ch_num 
-0xd0035 038154 rtn 
-:      038156 z_g24_ch_syncword_crc8_init:
-0xd0036 038157 call p_g24_syncword_crc8 
-0xd0037 038158 branch p_g24_ch 
-:      038160 z_g24_auto_pair_all_powerful:
-0xd0038 038161 jam tx_power_pair ,mem_tx_power 
-0xd0039 038162 fetch 4 ,mem_24g_allpowerful_addr 
-0xd003a 038163 store 4 ,mem_24g_addr 
-0xd003b 038164 fetch 1 ,mem_24g_powerful_current_ch_num 
-0xd003c 038165 store 1 ,mem_24g_current_ch_number 
-0xd003d 038166 call z_g24_ch_syncword_crc8_init 
-0xd003e 038167 storet 1 ,mem_24g_powerful_current_ch_num 
-0xd003f 038168 rtn 
+:      038086 z_entrancec:
+:      038089 z_g24_pair_dispatch:
+0xd0001 038090 fetch 1 ,mem_24g_stop_g24_mode 
+0xd0002 038091 beq 1 ,g24_stop_24g_mode 
+0xd0003 038092 jam 0xff ,mem_24g_common_temp 
+0xd0004 038093 fetch 1 ,mem_24g_data_type 
+0xd0005 038094 store 1 ,mem_24g_common_temp + 1 
+0xd0006 038095 fetch 4 ,mem_24g_device_addr 
+0xd0007 038096 store 4 ,mem_24g_common_temp + 2 
+0xd0008 038097 arg 6 ,temp 
+0xd0009 038098 arg mem_24g_common_temp ,rega 
+0xd000a 038099 call p_g24_put_data_in_buff 
+0xd000b 038100 call p_g24_transmit_prep 
+0xd000c 038101 call p_g24_transmit_receive_ack 
+0xd000d 038102 nbranch z_g24_pair_txdata_retry ,sync 
+0xd000e 038103 nbranch z_g24_pair_txdata_retry ,user3 
+0xd000f 038104 call p_g24_ackpayload_parse 
+0xd0010 038105 fetch 4 ,mem_24g_addr 
+0xd0011 038106 fetcht 4 ,mem_24g_allpowerful_addr 
+0xd0012 038107 isub temp ,null 
+0xd0013 038108 branch z_g24_auto_pair_skip_rx_length ,zero 
+0xd0014 038109 fetch 1 ,mem_24g_rxdata_length 
+0xd0015 038110 rtnne bind_ackpayload_length 
+:      038111 z_g24_auto_pair_skip_rx_length:
+0xd0016 038115 jam 0 ,mem_24g_conn_sm 
+0xd0017 038116 call p_mouse_tx_power_init 
+0xd0018 038117 fetch 4 ,mem_24g_addr 
+0xd0019 038118 fetcht 4 ,mem_24g_paring_addr 
+0xd001a 038119 isub temp ,null 
+0xd001b 038120 branch p_g24_start_pairing_sm1 ,zero 
+0xd001c 038121 fetch 4 ,mem_24g_addr 
+0xd001d 038122 fetcht 4 ,mem_24g_device_addr 
+0xd001e 038123 isub temp ,null 
+0xd001f 038124 call z7_g24_store_dongle_addr ,zero 
+0xd0020 038125 jam 0 ,mem_mouse_long_mult_flag 
+0xd0021 038126 call g24_app_tx_attempt_success 
+0xd0022 038127 call p_g24_txbuf_clear 
+0xd0023 038128 branch p_g24_transmit_by_interrupt_enable 
+:      038130 z7_g24_store_dongle_addr:
+0xd0024 038131 fetch 4 ,mem_24g_rxpayload + 2 
+0xd0025 038132 branch p_g24_update_addr_and_synccrc8 
+:      038134 z_g24_pair_txdata_retry:
+:      038135 z_g24_pair_txdata_switch:
+0xd0026 038136 jam type_ms ,mem_24g_data_type 
+0xd0027 038137 fetch 1 ,mem_24g_auto_paring_switch 
+0xd0028 038138 increase 1 ,pdata 
+0xd0029 038139 and_into 3 ,pdata 
+0xd002a 038140 store 1 ,mem_24g_auto_paring_switch 
+0xd002b 038141 beq 0 ,z_g24_auto_pair_first_attemp 
+0xd002c 038142 beq 2 ,z_g24_auto_pair_all_powerful 
+0xd002d 038143 branch p_g24_pair_init 
+:      038145 z_g24_auto_pair_first_attemp:
+0xd002e 038146 call p_mouse_tx_power_init 
+0xd002f 038147 fetch 4 ,mem_24g_device_addr 
+0xd0030 038148 store 4 ,mem_24g_addr 
+0xd0031 038149 fetch 1 ,mem_24g_pair_current_ch_num 
+0xd0032 038150 store 1 ,mem_24g_current_ch_number 
+0xd0033 038151 call z_g24_ch_syncword_crc8_init 
+0xd0034 038152 storet 1 ,mem_24g_pair_current_ch_num 
+0xd0035 038153 rtn 
+:      038155 z_g24_ch_syncword_crc8_init:
+0xd0036 038156 call p_g24_syncword_crc8 
+0xd0037 038157 branch p_g24_ch 
+:      038159 z_g24_auto_pair_all_powerful:
+0xd0038 038160 jam tx_power_pair ,mem_tx_power 
+0xd0039 038161 fetch 4 ,mem_24g_allpowerful_addr 
+0xd003a 038162 store 4 ,mem_24g_addr 
+0xd003b 038163 fetch 1 ,mem_24g_powerful_current_ch_num 
+0xd003c 038164 store 1 ,mem_24g_current_ch_number 
+0xd003d 038165 call z_g24_ch_syncword_crc8_init 
+0xd003e 038166 storet 1 ,mem_24g_powerful_current_ch_num 
+0xd003f 038167 rtn 
               org 0xe0001
-:      038172 z_entranced:
-0xe0001 038173 beq zcode_d0 ,z_mouse_le_bb_event_connected 
-0xe0002 038174 rtn 
-:      038176 z_mouse_le_bb_event_connected:
-0xe0003 038177 jam 0 ,mem_mouse_connected_state 
-0xe0004 038178 call p_mouse_init_sensor_reset 
-0xe0005 038179 call app_ble_store_reconn_info 
-0xe0006 038180 jam 1 ,mem_mouse_le_bb_connected_flag 
-0xe0007 038181 fetch 1 ,mem_mouse_le_reconnect_flag 
-0xe0008 038182 nbranch z_mouse_le_bb_event_connected_next ,blank 
-0xe0009 038183 jam 0x14 ,mem_mouse_send_secutiry_request_timer 
-:      038184 z_mouse_le_bb_event_connected_next:
-0xe000a 038185 call p_mouse_powerdown_sensor_timer_init 
-0xe000b 038186 call p_mouse_data_init 
-0xe000c 038187 branch mouse_le_bb_event_connected 
+:      038171 z_entranced:
+0xe0001 038172 beq zcode_d0 ,z_mouse_le_bb_event_connected 
+0xe0002 038173 rtn 
+:      038175 z_mouse_le_bb_event_connected:
+0xe0003 038176 jam 0 ,mem_mouse_connected_state 
+0xe0004 038177 call p_mouse_init_sensor_reset 
+0xe0005 038178 call app_ble_store_reconn_info 
+0xe0006 038179 jam 1 ,mem_mouse_le_bb_connected_flag 
+0xe0007 038180 fetch 1 ,mem_mouse_le_reconnect_flag 
+0xe0008 038181 nbranch z_mouse_le_bb_event_connected_next ,blank 
+0xe0009 038182 jam 0x14 ,mem_mouse_send_secutiry_request_timer 
+:      038183 z_mouse_le_bb_event_connected_next:
+0xe000a 038184 call p_mouse_powerdown_sensor_timer_init 
+0xe000b 038185 call p_mouse_data_init 
+0xe000c 038186 branch mouse_le_bb_event_connected 
Index: output/bt_program23.meta
===================================================================
--- /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/bt_program23.meta	(revision 6949)
+++ /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/bt_program23.meta	(working copy)
@@ -974,7 +974,7 @@
 	call p_gpio_set_input_pu
 	fetcht 1,mem_mouse_comm_gpio
 	call gpio_config_output
-	branch gpio_out_active	
+	call  gpio_out_active	
 	hfetch 4,core_gpio_oe0
 	hfetcht 4,core_gpio_pu0
 	ior temp,temp
@@ -38027,7 +38027,6 @@
 	call mouse_before_hibernate_wheel_gpio_set
 	call p_mouse_setgpio_hibernate
 
-	
 	call p_flash_deep_power_down
 	hfetch 1,core_gpio_sel1
 	and pdata,0xf7,pdata
Index: output/bt_program23.rom
===================================================================
--- /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/bt_program23.rom	(revision 6949)
+++ /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/bt_program23.rom	(working copy)
@@ -660,7 +660,7 @@
 00100000010000000000010111011110
 01101000000010001100110110010001
 00100000010000000110100000001110
-00100000001000000110100000101001
+00100000010000000110100000101001
 01101000000100100000000001110000
 01101000000110100000000001111000
 10011000010000011000010000000000
Index: output/flash.dat
===================================================================
--- /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/flash.dat	(revision 6949)
+++ /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/flash.dat	(working copy)
@@ -2653,7 +2653,7 @@
 68
 0e
 20
-20
+40
 68
 29
 68
@@ -7944,8 +7944,8 @@
 20
 00
 01
-e3
-fa
+6a
+57
 aa
 55
 08
@@ -8203,22 +8203,16 @@
 10
 aa
 55
-0c
+06
 00
 15
 45
-0b
-42
-54
-33
-2e
-30
-20
+05
 4d
-6f
-75
-73
-65
+49
+35
+38
+30
 aa
 55
 05
@@ -8308,7 +8302,7 @@
 03
 aa
 55
-11
+0e
 00
 eb
 4c
@@ -8319,48 +8313,39 @@
 03
 00
 80
+06
 09
-09
-42
-54
-20
 4d
-6f
-75
-73
-65
+49
+35
+38
+30
 aa
 55
-0b
+08
 00
 8f
 43
 1f
+06
 09
-09
-42
-54
-20
 4d
-6f
-75
-73
-65
+49
+35
+38
+30
 aa
 55
-09
+06
 00
 af
 43
-08
-42
-54
-20
+05
 4d
-6f
-75
-73
-65
+49
+35
+38
+30
 aa
 55
 08
@@ -8443,8 +8428,8 @@
 46
 2c
 01
-78
-ff
+50
+46
 aa
 55
 04
@@ -9540,15 +9525,15 @@
 00
 30
 4d
-55
+46
 33
 00
 55
 aa
 aa
 55
-64
-5c
+a4
+54
 ff
 20
 20
@@ -13138,5 +13123,5 @@
 55
 00
 00
-cb
-51
+a7
+7a
Index: output/program.lis
===================================================================
--- /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/program.lis	(revision 6949)
+++ /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/program.lis	(working copy)
@@ -872,7 +872,7 @@
 0293 204005de call p_gpio_set_input_pu 
 0294 6808cd91 fetcht 1 ,mem_mouse_comm_gpio 
 0295 2040680e call gpio_config_output 
-0296 20206829 branch gpio_out_active 
+0296 20406829 call gpio_out_active 
 0297 68120070 hfetch 4 ,core_gpio_oe0 
 0298 681a0078 hfetcht 4 ,core_gpio_pu0 
 0299 98418400 ior temp ,temp 
Index: output/ramcode.rom
===================================================================
--- /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/ramcode.rom	(revision 6949)
+++ /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/ramcode.rom	(working copy)
@@ -660,7 +660,7 @@
 204005de
 6808cd91
 2040680e
-20206829
+20406829
 68120070
 681a0078
 98418400
Index: output/sched.rom
===================================================================
--- /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/sched.rom	(revision 6949)
+++ /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/sched.rom	(working copy)
@@ -100,7 +100,7 @@
 mem_app_connection_options:06
 mem_lap:32 a0 19 20 18 10
 mem_local_name_length:
-'BT3.0 Mouse
+'MI580
 mem_sniff_param_interval:
 0e 00 			##mem_sniff_param_interval:0e 00 report 115hz,0c 00 report 125hz	
 01 00 ##mem_sniff_param_attempt:01 00
@@ -137,17 +137,17 @@
 #microsoft swift pair
 06 ff 06 00 03 00 80
 #name
-'\09BT Mouse
+'\09MI580
 
 mem_le_scan_data_len:1f
 mem_le_scan_data:
 #name
-'\09BT Mouse
+'\09MI580
 
 
 #max 20bytes, att list data rom limits
 mem_le_name_len:
-'BT Mouse
+'MI580
 
 
 mem_le_interval_min:
@@ -172,7 +172,7 @@
 
 mem_discovery_timeout:58 02#1min
 mem_mouse_direct_timeout:2c 01#8s
-mem_mouse_no_data_timeout:78 ff #109min
+mem_mouse_no_data_timeout:50 46 #109min
 mem_mouse_24g_no_data_timeout:70 17#10min
 mem_mouse_powerdown_sensor_timeout:70 17#10min
 
Index: program/patch.prog
===================================================================
--- /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/program/patch.prog	(revision 6949)
+++ /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/program/patch.prog	(working copy)
@@ -1021,7 +1021,7 @@
 	call p_gpio_set_input_pu
 	fetcht 1,mem_mouse_comm_gpio
 	call gpio_config_output
-	branch gpio_out_active	
+	call  gpio_out_active	
 	hfetch 4,core_gpio_oe0
 	hfetcht 4,core_gpio_pu0
 	ior temp,temp
Index: program/z.prog
===================================================================
--- /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/program/z.prog	(revision 6949)
+++ /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/program/z.prog	(working copy)
@@ -763,7 +763,6 @@
 	call mouse_before_hibernate_wheel_gpio_set
 	call p_mouse_setgpio_hibernate
 
-	
 	call p_flash_deep_power_down
 	hfetch 1,core_gpio_sel1
 	and pdata,0xf7,pdata
Index: sched/mouse.dat
===================================================================
--- /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/sched/mouse.dat	(revision 6949)
+++ /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/sched/mouse.dat	(working copy)
@@ -63,7 +63,7 @@
 mem_app_connection_options:06
 mem_lap:32 a0 19 20 18 10
 mem_local_name_length:
-'BT3.0 Mouse
+'MI580
 mem_sniff_param_interval:
 0e 00 			##mem_sniff_param_interval:0e 00 report 115hz,0c 00 report 125hz	
 01 00 ##mem_sniff_param_attempt:01 00
@@ -100,17 +100,17 @@
 #microsoft swift pair
 06 ff 06 00 03 00 80
 #name
-'\09BT Mouse
+'\09MI580
 
 mem_le_scan_data_len:1f
 mem_le_scan_data:
 #name
-'\09BT Mouse
+'\09MI580
 
 
 #max 20bytes, att list data rom limits
 mem_le_name_len:
-'BT Mouse
+'MI580
 
 
 mem_le_interval_min:
@@ -135,7 +135,7 @@
 
 mem_discovery_timeout:58 02#1min
 mem_mouse_direct_timeout:2c 01#8s
-mem_mouse_no_data_timeout:78 ff #109min
+mem_mouse_no_data_timeout:50 46 #109min
 mem_mouse_24g_no_data_timeout:70 17#10min
 mem_mouse_powerdown_sensor_timeout:70 17#10min
 
