Index: output/bt_program23.icode
===================================================================
--- /branch/mouse_project/YFK/1059_3mode/PM8/output/bt_program23.icode	(revision 2289)
+++ /branch/mouse_project/YFK/1059_3mode/PM8/output/bt_program23.icode	(working copy)
@@ -27041,101 +27041,102 @@
  00655404  0x000093a5 fetch  0x00000004 , 0x00004bdf 
  00655405  0x000093a6 call  0x000001c8 
  00655406  0x000093a7 branch  0x00000162 
- 00655407  0x000093ab call  0x0000047e 
- 00655408  0x000093ac jam  0x00000001 , 0x0000478b 
- 00655409  0x000093ad arg  0x00000003 , 0x00000007 
- 00655410  0x000093ae call  0x000043d2 
- 00655411  0x000093af setarg  0x00000000 
- 00655412  0x000093b0 store  0x00000002 , 0x00004707 
- 00655413  0x000093b1 store  0x00000001 , 0x00004b57 
- 00655414  0x000093b2 jam  0x00000000 , 0x000046a7 
- 00655415  0x000093b4 call  0x0000405d 
- 00655416  0x000093b6 call  0x000002cc 
- 00655417  0x000093b8 fetch  0x00000004 , 0x00004c27 
- 00655418  0x000093b9 store  0x00000004 , 0x0000477b 
- 00655419  0x000093bb branch  0x0000032c 
- 00720897  0x000093c1 beq  0x000000a1 , 0x000b0006 
- 00720898  0x000093c2 beq  0x000000a2 , 0x000b0019 
- 00720899  0x000093c3 beq  0x000000a3 , 0x000b0012 
- 00720900  0x000093c4 beq  0x000000a4 , 0x000b0021 
- 00720901  0x000093c5 rtn 
- 00720902  0x000093c9 fetch  0x00000002 , 0x00004509 
- 00720903  0x000093ca rtneq  0x00000000 
- 00720904  0x000093cb fetch  0x00000001 , 0x00000441 
- 00720905  0x000093cc rshift2  0x0000003f , 0x0000003f 
- 00720906  0x000093cd sub  0x0000003f , 0x0000000c , 0x0000003e 
- 00720907  0x000093ce rtn  0x00000002 
- 00720908  0x000093cf setarg  0x00000009 
- 00720909  0x000093d0 store  0x00000002 , 0x00004496 
- 00720910  0x000093d1 store  0x00000002 , 0x00004498 
- 00720911  0x000093d2 call  0x00000462 
- 00720912  0x000093d3 jam  0x00000001 , 0x000047c4 
- 00720913  0x000093d4 rtn 
- 00720914  0x000093d9 fetch  0x00000002 , 0x00004682 
- 00720915  0x000093da rtnbit1  0x0000000c 
- 00720916  0x000093db rtnbit1  0x00000006 
- 00720917  0x000093dc rtnbit1  0x0000000b 
- 00720918  0x000093dd fetch  0x00000004 , 0x000046d3 
- 00720919  0x000093de rtnbit1  0x00000005 
- 00720920  0x000093df branch  0x000033a7 
- 00720921  0x000093e2 setarg  0x00000007 
- 00720922  0x000093e3 store  0x00000002 , 0x00004496 
- 00720923  0x000093e4 store  0x00000002 , 0x00004498 
- 00720924  0x000093e5 jam  0x00000000 , 0x000047c4 
- 00720925  0x000093e6 jam  0x00000000 , 0x0000479c 
- 00720926  0x000093e7 call  0x000003f3 
- 00720927  0x000093e8 call  0x00005816 
- 00720928  0x000093e9 branch  0x000041d9 
- 00720929  0x000093ed enable  0x00000028 
- 00720930  0x000093ee hfetch  0x00000004 , 0x00008138 
- 00720931  0x000093ef setflag  0x00000028 , 0x0000001a , 0x0000003f 
- 00720932  0x000093f0 hstore  0x00000004 , 0x0000804c 
- 00720933  0x000093f1 call  0x00002c21 
- 00720934  0x000093f2 call  0x000074bd 
- 00720935  0x000093f3 call  0x000003c1 
- 00720936  0x000093f4 call  0x000003bf 
- 00720937  0x000093f5 call  0x000003af 
- 00720938  0x000093f6 call  0x00003e9f 
- 00720939  0x000093f7 call  0x00000298 
- 00720940  0x000093f9 call  0x00000375 
- 00720941  0x000093fa hfetch  0x00000001 , 0x00008081 
- 00720942  0x000093fb and  0x0000003f , 0x000000f7 , 0x0000003f 
- 00720943  0x000093fc hstore  0x00000001 , 0x00008081 
- 00720944  0x000093fd hfetch  0x00000001 , 0x0000807e 
- 00720945  0x000093fe set1  0x00000006 , 0x0000003f 
- 00720946  0x000093ff hstore  0x00000001 , 0x0000807e 
- 00720947  0x00009401 hfetch  0x00000001 , 0x0000807f 
- 00720948  0x00009402 set1  0x00000000 , 0x0000003f 
- 00720949  0x00009403 hstore  0x00000001 , 0x0000807f 
- 00720950  0x00009404 fetcht  0x00000001 , 0x000046f3 
- 00720951  0x00009405 branch  0x000067ed 
- 00786433  0x0000940b beq  0x000000b0 , 0x000c0007 
- 00786434  0x0000940c beq  0x000000b1 , 0x000c0009 
- 00786435  0x0000940d beq  0x000000b2 , 0x000c000f 
- 00786436  0x0000940e beq  0x000000b3 , 0x000c0014 
- 00786437  0x0000940f beq  0x000000b4 , 0x000c001b 
- 00786438  0x00009410 rtn 
- 00786439  0x00009413 call  0x000003f3 
- 00786440  0x00009414 branch  0x000041c3 
- 00786441  0x00009417 fetch  0x00000001 , 0x00004808 
- 00786442  0x00009418 rtneq  0x00000002 
- 00786443  0x00009419 increase  0x00000001 , 0x0000003f 
- 00786444  0x0000941a store  0x00000001 , 0x00004808 
- 00786445  0x0000941b jam  0x00000012 , 0x000041e3 
- 00786446  0x0000941c branch  0x0000340e 
- 00786447  0x0000941f fetch  0x00000001 , 0x00004808 
- 00786448  0x00009420 rtnne  0x00000002 
- 00786449  0x00009421 jam  0x00000000 , 0x00004808 
- 00786450  0x00009422 jam  0x0000000e , 0x000041e3 
- 00786451  0x00009423 branch  0x0000340e 
- 00786452  0x00009426 fetch  0x00000001 , 0x0000479f 
- 00786453  0x00009427 beq  0x00000001 , 0x000c0017 
- 00786454  0x00009428 branch  0x000c0019 
- 00786455  0x0000942a call  0x00000462 
- 00786456  0x0000942b jam  0x00000005 , 0x000046c6 
- 00786457  0x0000942d arg  0x00000001 , 0x00000007 
- 00786458  0x0000942e branch  0x000041b9 
- 00786459  0x00009431 jam  0x00000000 , 0x00004aff 
- 00786460  0x00009432 jam  0x00000000 , 0x00004b01 
- 00786461  0x00009433 jam  0x00000000 , 0x00004b0a 
- 00786462  0x00009434 branch  0x000041d9 
+ 00655407  0x000093ab call  0x000003af 
+ 00655408  0x000093ac call  0x0000047e 
+ 00655409  0x000093ad jam  0x00000001 , 0x0000478b 
+ 00655410  0x000093ae arg  0x00000003 , 0x00000007 
+ 00655411  0x000093af call  0x000043d2 
+ 00655412  0x000093b0 setarg  0x00000000 
+ 00655413  0x000093b1 store  0x00000002 , 0x00004707 
+ 00655414  0x000093b2 store  0x00000001 , 0x00004b57 
+ 00655415  0x000093b3 jam  0x00000000 , 0x000046a7 
+ 00655416  0x000093b5 call  0x0000405d 
+ 00655417  0x000093b7 call  0x000002cc 
+ 00655418  0x000093b9 fetch  0x00000004 , 0x00004c27 
+ 00655419  0x000093ba store  0x00000004 , 0x0000477b 
+ 00655420  0x000093bc branch  0x0000032c 
+ 00720897  0x000093c2 beq  0x000000a1 , 0x000b0006 
+ 00720898  0x000093c3 beq  0x000000a2 , 0x000b0019 
+ 00720899  0x000093c4 beq  0x000000a3 , 0x000b0012 
+ 00720900  0x000093c5 beq  0x000000a4 , 0x000b0021 
+ 00720901  0x000093c6 rtn 
+ 00720902  0x000093ca fetch  0x00000002 , 0x00004509 
+ 00720903  0x000093cb rtneq  0x00000000 
+ 00720904  0x000093cc fetch  0x00000001 , 0x00000441 
+ 00720905  0x000093cd rshift2  0x0000003f , 0x0000003f 
+ 00720906  0x000093ce sub  0x0000003f , 0x0000000c , 0x0000003e 
+ 00720907  0x000093cf rtn  0x00000002 
+ 00720908  0x000093d0 setarg  0x00000009 
+ 00720909  0x000093d1 store  0x00000002 , 0x00004496 
+ 00720910  0x000093d2 store  0x00000002 , 0x00004498 
+ 00720911  0x000093d3 call  0x00000462 
+ 00720912  0x000093d4 jam  0x00000001 , 0x000047c4 
+ 00720913  0x000093d5 rtn 
+ 00720914  0x000093da fetch  0x00000002 , 0x00004682 
+ 00720915  0x000093db rtnbit1  0x0000000c 
+ 00720916  0x000093dc rtnbit1  0x00000006 
+ 00720917  0x000093dd rtnbit1  0x0000000b 
+ 00720918  0x000093de fetch  0x00000004 , 0x000046d3 
+ 00720919  0x000093df rtnbit1  0x00000005 
+ 00720920  0x000093e0 branch  0x000033a7 
+ 00720921  0x000093e3 setarg  0x00000007 
+ 00720922  0x000093e4 store  0x00000002 , 0x00004496 
+ 00720923  0x000093e5 store  0x00000002 , 0x00004498 
+ 00720924  0x000093e6 jam  0x00000000 , 0x000047c4 
+ 00720925  0x000093e7 jam  0x00000000 , 0x0000479c 
+ 00720926  0x000093e8 call  0x000003f3 
+ 00720927  0x000093e9 call  0x00005816 
+ 00720928  0x000093ea branch  0x000041d9 
+ 00720929  0x000093ee enable  0x00000028 
+ 00720930  0x000093ef hfetch  0x00000004 , 0x00008138 
+ 00720931  0x000093f0 setflag  0x00000028 , 0x0000001a , 0x0000003f 
+ 00720932  0x000093f1 hstore  0x00000004 , 0x0000804c 
+ 00720933  0x000093f2 call  0x00002c21 
+ 00720934  0x000093f3 call  0x000074bd 
+ 00720935  0x000093f4 call  0x000003c1 
+ 00720936  0x000093f5 call  0x000003bf 
+ 00720937  0x000093f6 call  0x000003af 
+ 00720938  0x000093f7 call  0x00003e9f 
+ 00720939  0x000093f8 call  0x00000298 
+ 00720940  0x000093fa call  0x00000375 
+ 00720941  0x000093fb hfetch  0x00000001 , 0x00008081 
+ 00720942  0x000093fc and  0x0000003f , 0x000000f7 , 0x0000003f 
+ 00720943  0x000093fd hstore  0x00000001 , 0x00008081 
+ 00720944  0x000093fe hfetch  0x00000001 , 0x0000807e 
+ 00720945  0x000093ff set1  0x00000006 , 0x0000003f 
+ 00720946  0x00009400 hstore  0x00000001 , 0x0000807e 
+ 00720947  0x00009402 hfetch  0x00000001 , 0x0000807f 
+ 00720948  0x00009403 set1  0x00000000 , 0x0000003f 
+ 00720949  0x00009404 hstore  0x00000001 , 0x0000807f 
+ 00720950  0x00009405 fetcht  0x00000001 , 0x000046f3 
+ 00720951  0x00009406 branch  0x000067ed 
+ 00786433  0x0000940c beq  0x000000b0 , 0x000c0007 
+ 00786434  0x0000940d beq  0x000000b1 , 0x000c0009 
+ 00786435  0x0000940e beq  0x000000b2 , 0x000c000f 
+ 00786436  0x0000940f beq  0x000000b3 , 0x000c0014 
+ 00786437  0x00009410 beq  0x000000b4 , 0x000c001b 
+ 00786438  0x00009411 rtn 
+ 00786439  0x00009414 call  0x000003f3 
+ 00786440  0x00009415 branch  0x000041c3 
+ 00786441  0x00009418 fetch  0x00000001 , 0x00004808 
+ 00786442  0x00009419 rtneq  0x00000002 
+ 00786443  0x0000941a increase  0x00000001 , 0x0000003f 
+ 00786444  0x0000941b store  0x00000001 , 0x00004808 
+ 00786445  0x0000941c jam  0x00000012 , 0x000041e3 
+ 00786446  0x0000941d branch  0x0000340e 
+ 00786447  0x00009420 fetch  0x00000001 , 0x00004808 
+ 00786448  0x00009421 rtnne  0x00000002 
+ 00786449  0x00009422 jam  0x00000000 , 0x00004808 
+ 00786450  0x00009423 jam  0x0000000e , 0x000041e3 
+ 00786451  0x00009424 branch  0x0000340e 
+ 00786452  0x00009427 fetch  0x00000001 , 0x0000479f 
+ 00786453  0x00009428 beq  0x00000001 , 0x000c0017 
+ 00786454  0x00009429 branch  0x000c0019 
+ 00786455  0x0000942b call  0x00000462 
+ 00786456  0x0000942c jam  0x00000005 , 0x000046c6 
+ 00786457  0x0000942e arg  0x00000001 , 0x00000007 
+ 00786458  0x0000942f branch  0x000041b9 
+ 00786459  0x00009432 jam  0x00000000 , 0x00004aff 
+ 00786460  0x00009433 jam  0x00000000 , 0x00004b01 
+ 00786461  0x00009434 jam  0x00000000 , 0x00004b0a 
+ 00786462  0x00009435 branch  0x000041d9 
Index: output/bt_program23.list
===================================================================
--- /branch/mouse_project/YFK/1059_3mode/PM8/output/bt_program23.list	(revision 2289)
+++ /branch/mouse_project/YFK/1059_3mode/PM8/output/bt_program23.list	(working copy)
@@ -31520,117 +31520,118 @@
 0xa002d 037798 call p_g24_update_addr_and_synccrc8
 0xa002e 037799 branch p_g24_transmit_abandon
 :      037802 z_mouse_24g_pairing_complete:
-0xa002f 037803 call p_mouse_24g_no_data_timer_init
-0xa0030 037804 jam 1 ,mem_mouse_24g_enter_lpm_enable
-0xa0031 037805 arg mosue_24g_pairing_flag ,queue
-0xa0032 037806 call mouse_disable_function_flag
-0xa0033 037807 setarg 0
-0xa0034 037808 store 2 ,mem_24g_pairing_timer_count
-0xa0035 037809 store 1 ,mem_24g_attempt_count
-0xa0036 037810 jam 0 ,mem_mouse_move_flag
-0xa0037 037812 call mouse_read_sensor_common
-0xa0038 037814 call p_mouse_tx_power_init
-0xa0039 037816 fetch 4 ,mem_24g_addr
-0xa003a 037817 store 4 ,mem_mouse_24g_addr
-0xa003b 037819 branch p_mouse_store_flash_device_info
+0xa002f 037803 call p_mouse_24g_led_off
+0xa0030 037804 call p_mouse_24g_no_data_timer_init
+0xa0031 037805 jam 1 ,mem_mouse_24g_enter_lpm_enable
+0xa0032 037806 arg mosue_24g_pairing_flag ,queue
+0xa0033 037807 call mouse_disable_function_flag
+0xa0034 037808 setarg 0
+0xa0035 037809 store 2 ,mem_24g_pairing_timer_count
+0xa0036 037810 store 1 ,mem_24g_attempt_count
+0xa0037 037811 jam 0 ,mem_mouse_move_flag
+0xa0038 037813 call mouse_read_sensor_common
+0xa0039 037815 call p_mouse_tx_power_init
+0xa003a 037817 fetch 4 ,mem_24g_addr
+0xa003b 037818 store 4 ,mem_mouse_24g_addr
+0xa003c 037820 branch p_mouse_store_flash_device_info
               org 0xb0001
-:      037824 z_entrancea:
-0xb0001 037825 beq zcode_a1 ,z_mouse_le_conn_param_update_rsp_recieved
-0xb0002 037826 beq zcode_a2 ,z_mouse_le_bb_disconnected
-0xb0003 037827 beq zcode_a3 ,z_mouse_bb_event_reconn_timeout
-0xb0004 037828 beq zcode_a4 ,z_mouse_before_hibernate
-0xb0005 037829 rtn
-:      037832 z_mouse_le_conn_param_update_rsp_recieved:
-0xb0006 037833 fetch 2 ,mem_le_l2cap_signaling_conn_param_update_rsp_result
-0xb0007 037834 rtneq ble_signaling_connect_parameter_update_accepted
-0xb0008 037835 fetch 1 ,mem_le_tsniff
-0xb0009 037836 rshift2 pdata ,pdata
-0xb000a 037837 sub pdata ,le_interval_15ms ,null
-0xb000b 037838 rtn positive
-0xb000c 037839 setarg le_interval_11_25ms
-0xb000d 037840 store 2 ,mem_le_interval_min
-0xb000e 037841 store 2 ,mem_le_interval_min + 2
-0xb000f 037842 call p_app_updata_le_param
-0xb0010 037843 jam le_lpm_disable ,mem_mouse_le_conn_param_reject
-0xb0011 037844 rtn
-:      037847 z_mouse_bb_event_reconn_timeout:
-:      037848 z_mouse_bb_event_reconn_failed:
-0xb0012 037849 fetch 2 ,mem_ui_state_map
-0xb0013 037850 rtnbit1 ui_state_btn_down
-0xb0014 037851 rtnbit1 ui_state_bt_discovery
-0xb0015 037852 rtnbit1 ui_state_ble_adv
-0xb0016 037853 fetch mouse_flag_len ,mem_mouse_flag
-0xb0017 037854 rtnbit1 mouse_bt_discovery_button_down_flag
-0xb0018 037855 branch app_bb_hibernate
-:      037857 z_mouse_le_bb_disconnected:
-0xb0019 037858 setarg le_interval_8_75ms
-0xb001a 037859 store 2 ,mem_le_interval_min
-0xb001b 037860 store 2 ,mem_le_interval_min + 2
-0xb001c 037861 jam le_lpm_enable ,mem_mouse_le_conn_param_reject
-0xb001d 037862 jam 0 ,mem_mouse_clear_sensor_data_flag
-0xb001e 037863 call p_mouse_data_init
-0xb001f 037864 call le_clr_config_more_data
-0xb0020 037865 branch mouse_bb_disconnected
-:      037868 z_mouse_before_hibernate:
-0xb0021 037869 enable user
-0xb0022 037870 hfetch 4 ,0x8138
-0xb0023 037871 setflag user ,26 ,pdata
-0xb0024 037872 hstore 4 ,core_lpm_reg
-0xb0025 037873 call lpm_write_ctrl
-0xb0026 037874 call disable_authrom
-0xb0027 037875 call p_mouse_device_led_off
-0xb0028 037876 call p_mouse_bt_led_off
-0xb0029 037877 call p_mouse_24g_led_off
-0xb002a 037878 call mouse_before_hibernate_wheel_gpio_set
-0xb002b 037879 call p_mouse_setgpio_hibernate
-0xb002c 037881 call p_flash_deep_power_down
-0xb002d 037882 hfetch 1 ,core_gpio_sel1
-0xb002e 037883 and pdata ,0xf7 ,pdata
-0xb002f 037884 hstore 1 ,core_gpio_sel1
-0xb0030 037885 hfetch 1 ,core_gpio_pd2
-0xb0031 037886 set1 6 ,pdata
-0xb0032 037887 hstore 1 ,core_gpio_pd2
-0xb0033 037889 hfetch 1 ,core_gpio_pd3
-0xb0034 037890 set1 0 ,pdata
-0xb0035 037891 hstore 1 ,core_gpio_pd3
-0xb0036 037892 fetcht 1 ,mem_sensor_data_gpio
-0xb0037 037893 branch gpio_clr_wake
+:      037825 z_entrancea:
+0xb0001 037826 beq zcode_a1 ,z_mouse_le_conn_param_update_rsp_recieved
+0xb0002 037827 beq zcode_a2 ,z_mouse_le_bb_disconnected
+0xb0003 037828 beq zcode_a3 ,z_mouse_bb_event_reconn_timeout
+0xb0004 037829 beq zcode_a4 ,z_mouse_before_hibernate
+0xb0005 037830 rtn
+:      037833 z_mouse_le_conn_param_update_rsp_recieved:
+0xb0006 037834 fetch 2 ,mem_le_l2cap_signaling_conn_param_update_rsp_result
+0xb0007 037835 rtneq ble_signaling_connect_parameter_update_accepted
+0xb0008 037836 fetch 1 ,mem_le_tsniff
+0xb0009 037837 rshift2 pdata ,pdata
+0xb000a 037838 sub pdata ,le_interval_15ms ,null
+0xb000b 037839 rtn positive
+0xb000c 037840 setarg le_interval_11_25ms
+0xb000d 037841 store 2 ,mem_le_interval_min
+0xb000e 037842 store 2 ,mem_le_interval_min + 2
+0xb000f 037843 call p_app_updata_le_param
+0xb0010 037844 jam le_lpm_disable ,mem_mouse_le_conn_param_reject
+0xb0011 037845 rtn
+:      037848 z_mouse_bb_event_reconn_timeout:
+:      037849 z_mouse_bb_event_reconn_failed:
+0xb0012 037850 fetch 2 ,mem_ui_state_map
+0xb0013 037851 rtnbit1 ui_state_btn_down
+0xb0014 037852 rtnbit1 ui_state_bt_discovery
+0xb0015 037853 rtnbit1 ui_state_ble_adv
+0xb0016 037854 fetch mouse_flag_len ,mem_mouse_flag
+0xb0017 037855 rtnbit1 mouse_bt_discovery_button_down_flag
+0xb0018 037856 branch app_bb_hibernate
+:      037858 z_mouse_le_bb_disconnected:
+0xb0019 037859 setarg le_interval_8_75ms
+0xb001a 037860 store 2 ,mem_le_interval_min
+0xb001b 037861 store 2 ,mem_le_interval_min + 2
+0xb001c 037862 jam le_lpm_enable ,mem_mouse_le_conn_param_reject
+0xb001d 037863 jam 0 ,mem_mouse_clear_sensor_data_flag
+0xb001e 037864 call p_mouse_data_init
+0xb001f 037865 call le_clr_config_more_data
+0xb0020 037866 branch mouse_bb_disconnected
+:      037869 z_mouse_before_hibernate:
+0xb0021 037870 enable user
+0xb0022 037871 hfetch 4 ,0x8138
+0xb0023 037872 setflag user ,26 ,pdata
+0xb0024 037873 hstore 4 ,core_lpm_reg
+0xb0025 037874 call lpm_write_ctrl
+0xb0026 037875 call disable_authrom
+0xb0027 037876 call p_mouse_device_led_off
+0xb0028 037877 call p_mouse_bt_led_off
+0xb0029 037878 call p_mouse_24g_led_off
+0xb002a 037879 call mouse_before_hibernate_wheel_gpio_set
+0xb002b 037880 call p_mouse_setgpio_hibernate
+0xb002c 037882 call p_flash_deep_power_down
+0xb002d 037883 hfetch 1 ,core_gpio_sel1
+0xb002e 037884 and pdata ,0xf7 ,pdata
+0xb002f 037885 hstore 1 ,core_gpio_sel1
+0xb0030 037886 hfetch 1 ,core_gpio_pd2
+0xb0031 037887 set1 6 ,pdata
+0xb0032 037888 hstore 1 ,core_gpio_pd2
+0xb0033 037890 hfetch 1 ,core_gpio_pd3
+0xb0034 037891 set1 0 ,pdata
+0xb0035 037892 hstore 1 ,core_gpio_pd3
+0xb0036 037893 fetcht 1 ,mem_sensor_data_gpio
+0xb0037 037894 branch gpio_clr_wake
               org 0xc0001
-:      037898 z_entranceb:
-0xc0001 037899 beq zcode_b0 ,z_mouse_le_bb_event_connected
-0xc0002 037900 beq zcode_b1 ,z_mouse_sniff_not_accept
-0xc0003 037901 beq zcode_b2 ,z_mouse_enter_sniff_check
-0xc0004 037902 beq zcode_b3 ,z_mouse_le_ll_start_encryt
-0xc0005 037903 beq zcode_b4 ,z_mouse_bb_event_disconnected
-0xc0006 037904 rtn
-:      037906 z_mouse_le_bb_event_connected:
-0xc0007 037907 call p_mouse_data_init
-0xc0008 037908 branch mouse_le_bb_event_connected
-:      037910 z_mouse_sniff_not_accept:
-0xc0009 037911 fetch 1 ,mem_mouse_enter_sniff_count
-0xc000a 037912 rtneq 2
-0xc000b 037913 increase 1 ,pdata
-0xc000c 037914 store 1 ,mem_mouse_enter_sniff_count
-0xc000d 037915 jam 0x12 ,mem_sniff_param_interval
-0xc000e 037916 branch app_bt_enter_sniff
-:      037918 z_mouse_enter_sniff_check:
-0xc000f 037919 fetch 1 ,mem_mouse_enter_sniff_count
-0xc0010 037920 rtnne 2
-0xc0011 037921 jam 0 ,mem_mouse_enter_sniff_count
-0xc0012 037922 jam 0x0e ,mem_sniff_param_interval
-0xc0013 037923 branch app_bt_enter_sniff
-:      037925 z_mouse_le_ll_start_encryt:
-0xc0014 037926 fetch 1 ,mem_mouse_le_reconnect_flag
-0xc0015 037927 beq 1 ,z_mouse_le_ll_reconn_start_encryt
-0xc0016 037928 branch z_mouse_le_ll_enable_start_enc_flag
-:      037929 z_mouse_le_ll_reconn_start_encryt:
-0xc0017 037930 call p_app_updata_le_param
-0xc0018 037931 jam 5 ,mem_le_start_encrypt_timer
-:      037932 z_mouse_le_ll_enable_start_enc_flag:
-0xc0019 037933 arg ll_start_enc_flag ,queue
-0xc001a 037934 branch mouse_le_enable_connect_flag
-:      037936 z_mouse_bb_event_disconnected:
-0xc001b 037937 jam 0 ,mem_bt_rcvd_switch_req_accept
-0xc001c 037938 jam 0 ,mem_bt_send_lmp_setup_complete
-0xc001d 037939 jam 0 ,mem_mouse_bt_send_first_package_flag
-0xc001e 037940 branch mouse_bb_disconnected
+:      037899 z_entranceb:
+0xc0001 037900 beq zcode_b0 ,z_mouse_le_bb_event_connected
+0xc0002 037901 beq zcode_b1 ,z_mouse_sniff_not_accept
+0xc0003 037902 beq zcode_b2 ,z_mouse_enter_sniff_check
+0xc0004 037903 beq zcode_b3 ,z_mouse_le_ll_start_encryt
+0xc0005 037904 beq zcode_b4 ,z_mouse_bb_event_disconnected
+0xc0006 037905 rtn
+:      037907 z_mouse_le_bb_event_connected:
+0xc0007 037908 call p_mouse_data_init
+0xc0008 037909 branch mouse_le_bb_event_connected
+:      037911 z_mouse_sniff_not_accept:
+0xc0009 037912 fetch 1 ,mem_mouse_enter_sniff_count
+0xc000a 037913 rtneq 2
+0xc000b 037914 increase 1 ,pdata
+0xc000c 037915 store 1 ,mem_mouse_enter_sniff_count
+0xc000d 037916 jam 0x12 ,mem_sniff_param_interval
+0xc000e 037917 branch app_bt_enter_sniff
+:      037919 z_mouse_enter_sniff_check:
+0xc000f 037920 fetch 1 ,mem_mouse_enter_sniff_count
+0xc0010 037921 rtnne 2
+0xc0011 037922 jam 0 ,mem_mouse_enter_sniff_count
+0xc0012 037923 jam 0x0e ,mem_sniff_param_interval
+0xc0013 037924 branch app_bt_enter_sniff
+:      037926 z_mouse_le_ll_start_encryt:
+0xc0014 037927 fetch 1 ,mem_mouse_le_reconnect_flag
+0xc0015 037928 beq 1 ,z_mouse_le_ll_reconn_start_encryt
+0xc0016 037929 branch z_mouse_le_ll_enable_start_enc_flag
+:      037930 z_mouse_le_ll_reconn_start_encryt:
+0xc0017 037931 call p_app_updata_le_param
+0xc0018 037932 jam 5 ,mem_le_start_encrypt_timer
+:      037933 z_mouse_le_ll_enable_start_enc_flag:
+0xc0019 037934 arg ll_start_enc_flag ,queue
+0xc001a 037935 branch mouse_le_enable_connect_flag
+:      037937 z_mouse_bb_event_disconnected:
+0xc001b 037938 jam 0 ,mem_bt_rcvd_switch_req_accept
+0xc001c 037939 jam 0 ,mem_bt_send_lmp_setup_complete
+0xc001d 037940 jam 0 ,mem_mouse_bt_send_first_package_flag
+0xc001e 037941 branch mouse_bb_disconnected
Index: output/bt_program23.meta
===================================================================
--- /branch/mouse_project/YFK/1059_3mode/PM8/output/bt_program23.meta	(revision 2289)
+++ /branch/mouse_project/YFK/1059_3mode/PM8/output/bt_program23.meta	(working copy)
@@ -37800,6 +37800,7 @@
 
 
 z_mouse_24g_pairing_complete:
+	call p_mouse_24g_led_off
 	call p_mouse_24g_no_data_timer_init
 	jam 1,mem_mouse_24g_enter_lpm_enable
 	arg MOSUE_24G_PAIRING_FLAG,queue
Index: output/bt_program23.rom
===================================================================
--- /branch/mouse_project/YFK/1059_3mode/PM8/output/bt_program23.rom	(revision 2289)
+++ /branch/mouse_project/YFK/1059_3mode/PM8/output/bt_program23.rom	(working copy)
@@ -655405,6 +655405,7 @@
 01101000000000100100101111011111
 00100000010000000000000111001000
 00100000001000000000000101100010
+00100000010000000000001110101111
 00100000010000000000010001111110
 01110000010001111000101100000001
 11011000111000000000000000000011
@@ -720894,7 +720895,6 @@
                                 
                                 
                                 
-                                
 11000000010100001000000000000110
 11000000010100010000000000011001
 11000000010100011000000000010010
Index: output/flash.dat
===================================================================
--- /branch/mouse_project/YFK/1059_3mode/PM8/output/flash.dat	(revision 2289)
+++ /branch/mouse_project/YFK/1059_3mode/PM8/output/flash.dat	(working copy)
@@ -8628,8 +8628,8 @@
 00
 a8
 46
-50
-00
+02
+80
 70
 17
 aa
@@ -9879,6 +9879,10 @@
 62
 20
 40
+03
+af
+20
+40
 04
 7e
 70
@@ -9941,10 +9945,6 @@
 00
 00
 00
-00
-00
-00
-00
 20
 20
 00
@@ -12253,5 +12253,5 @@
 55
 00
 00
-91
-1f
+90
+82
Index: output/program.lis
===================================================================
--- /branch/mouse_project/YFK/1059_3mode/PM8/output/program.lis	(revision 2289)
+++ /branch/mouse_project/YFK/1059_3mode/PM8/output/program.lis	(working copy)
@@ -35986,19 +35986,20 @@
 a002e 20200162  branch p_g24_transmit_abandon
 
 z_mouse_24g_pairing_complete:
-a002f 2040047e  call p_mouse_24g_no_data_timer_init
-a0030 70478b01  jam 1 ,mem_mouse_24g_enter_lpm_enable
-a0031 d8e00003  arg mosue_24g_pairing_flag ,queue
-a0032 204043d2  call mouse_disable_function_flag
-a0033 58000000  setarg 0
-a0034 60014707  store 2 ,mem_24g_pairing_timer_count
-a0035 6000cb57  store 1 ,mem_24g_attempt_count
-a0036 7046a700  jam 0 ,mem_mouse_move_flag
-a0037 2040405d  call mouse_read_sensor_common
-a0038 204002cc  call p_mouse_tx_power_init
-a0039 68024c27  fetch 4 ,mem_24g_addr
-a003a 6002477b  store 4 ,mem_mouse_24g_addr
-a003b 2020032c  branch p_mouse_store_flash_device_info
+a002f 204003af  call p_mouse_24g_led_off
+a0030 2040047e  call p_mouse_24g_no_data_timer_init
+a0031 70478b01  jam 1 ,mem_mouse_24g_enter_lpm_enable
+a0032 d8e00003  arg mosue_24g_pairing_flag ,queue
+a0033 204043d2  call mouse_disable_function_flag
+a0034 58000000  setarg 0
+a0035 60014707  store 2 ,mem_24g_pairing_timer_count
+a0036 6000cb57  store 1 ,mem_24g_attempt_count
+a0037 7046a700  jam 0 ,mem_mouse_move_flag
+a0038 2040405d  call mouse_read_sensor_common
+a0039 204002cc  call p_mouse_tx_power_init
+a003a 68024c27  fetch 4 ,mem_24g_addr
+a003b 6002477b  store 4 ,mem_mouse_24g_addr
+a003c 2020032c  branch p_mouse_store_flash_device_info
 org 0xb0001
 
 z_entrancea:
Index: output/romcode.rom
===================================================================
--- /branch/mouse_project/YFK/1059_3mode/PM8/output/romcode.rom	(revision 2289)
+++ /branch/mouse_project/YFK/1059_3mode/PM8/output/romcode.rom	(working copy)
@@ -25019,6 +25019,7 @@
 68024bdf
 204001c8
 20200162
+204003af
 2040047e
 70478b01
 d8e00003
@@ -25117,4 +25118,4 @@
 704b0100
 704b0a00
 202041d9
-000076a3
+0000a433
Index: output/sched.rom
===================================================================
--- /branch/mouse_project/YFK/1059_3mode/PM8/output/sched.rom	(revision 2289)
+++ /branch/mouse_project/YFK/1059_3mode/PM8/output/sched.rom	(working copy)
@@ -173,7 +173,7 @@
 
 
 mem_discovery_timeout:08 07#3min
-mem_mouse_direct_timeout:50 00#8s
+mem_mouse_direct_timeout:02 80 #64s
 mem_mouse_no_data_timeout:70 17 #10min
 
 mem_flash_ncs_gpio:0a
Index: program/z.prog
===================================================================
--- /branch/mouse_project/YFK/1059_3mode/PM8/program/z.prog	(revision 2289)
+++ /branch/mouse_project/YFK/1059_3mode/PM8/program/z.prog	(working copy)
@@ -755,6 +755,7 @@
 
 
 z_mouse_24g_pairing_complete:
+	call p_mouse_24g_led_off
 	call p_mouse_24g_no_data_timer_init
 	jam 1,mem_mouse_24g_enter_lpm_enable
 	arg MOSUE_24G_PAIRING_FLAG,queue
Index: sched/mouse.dat
===================================================================
--- /branch/mouse_project/YFK/1059_3mode/PM8/sched/mouse.dat	(revision 2289)
+++ /branch/mouse_project/YFK/1059_3mode/PM8/sched/mouse.dat	(working copy)
@@ -138,7 +138,7 @@
 
 
 mem_discovery_timeout:08 07#3min
-mem_mouse_direct_timeout:50 00#8s
+mem_mouse_direct_timeout:02 80 #64s
 mem_mouse_no_data_timeout:70 17 #10min
 
 mem_flash_ncs_gpio:0a
