Index: output/eeprom.dat
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_E701_Only2.4G_Pin2Pin_1011/output/eeprom.dat	(revision 371)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_E701_Only2.4G_Pin2Pin_1011/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-0a
+12
 1b
 c2
 84
@@ -135,15 +135,15 @@
 c0
 75
 06
-57
+59
 c0
 75
 86
-47
+49
 c0
 76
 86
-93
+95
 20
 20
 13
@@ -2475,7 +2475,7 @@
 20
 40
 06
-2d
+2f
 6f
 e0
 c8
@@ -2503,7 +2503,7 @@
 20
 40
 06
-8c
+8e
 20
 40
 48
@@ -3111,7 +3111,7 @@
 20
 20
 06
-2d
+2f
 6f
 e0
 c8
@@ -3175,7 +3175,7 @@
 c0
 00
 06
-22
+24
 20
 20
 43
@@ -3195,7 +3195,7 @@
 20
 40
 06
-36
+38
 20
 40
 03
@@ -4243,7 +4243,7 @@
 20
 40
 06
-30
+32
 58
 4e
 00
@@ -4711,7 +4711,7 @@
 20
 40
 06
-2d
+2f
 20
 20
 30
@@ -6095,7 +6095,7 @@
 20
 20
 06
-1c
+1e
 20
 40
 06
@@ -6255,11 +6255,19 @@
 20
 40
 06
-1c
-20
+1e
+70
+44
+88
+76
 20
+40
 3f
-73
+76
+20
+20
+5a
+d3
 6f
 e0
 cb
@@ -6319,7 +6327,7 @@
 20
 40
 06
-2d
+2f
 20
 40
 04
@@ -6447,7 +6455,7 @@
 24
 21
 06
-bf
+c1
 18
 40
 84
@@ -6463,7 +6471,7 @@
 c0
 02
 86
-53
+55
 6f
 e0
 c8
@@ -6503,11 +6511,11 @@
 24
 34
 06
-66
+68
 20
 40
 06
-7a
+7c
 20
 40
 2f
@@ -6519,7 +6527,7 @@
 24
 3a
 06
-61
+63
 6f
 e4
 48
@@ -6563,7 +6571,7 @@
 20
 5a
 06
-6c
+6e
 6f
 e0
 c8
@@ -6635,7 +6643,7 @@
 20
 20
 06
-59
+5b
 70
 48
 93
@@ -6663,11 +6671,11 @@
 24
 2c
 06
-85
+87
 24
 37
 86
-85
+87
 20
 40
 2e
@@ -6699,7 +6707,7 @@
 c2
 82
 06
-22
+24
 20
 40
 2f
@@ -6707,7 +6715,7 @@
 20
 20
 06
-7b
+7d
 da
 60
 48
@@ -6715,7 +6723,7 @@
 da
 40
 06
-8f
+91
 20
 20
 30
@@ -6783,7 +6791,7 @@
 24
 21
 06
-b7
+b9
 6f
 e0
 c8
@@ -6795,7 +6803,7 @@
 24
 21
 06
-a5
+a7
 6f
 e0
 c8
@@ -6803,7 +6811,7 @@
 c0
 00
 06
-b8
+ba
 20
 60
 00
@@ -6839,7 +6847,7 @@
 c5
 13
 06
-ae
+b0
 6f
 e0
 cb
@@ -6891,7 +6899,7 @@
 c0
 01
 06
-bd
+bf
 1f
 e0
 fe
@@ -6903,7 +6911,7 @@
 c0
 00
 86
-b5
+b7
 70
 41
 eb
@@ -6915,7 +6923,7 @@
 20
 40
 06
-b8
+ba
 20
 40
 2f
@@ -6924,8 +6932,8 @@
 20
 2b
 8f
-d9
-69
+be
+10
 aa
 55
 40
@@ -7274,7 +7282,7 @@
 30
 9d
 10
-24
+04
 aa
 55
 01
@@ -7388,16 +7396,8 @@
 88
 66
 44
-99
-26
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+92
+5b
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-d0
-f2
+f8
+76
Index: output/program.lis
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_E701_Only2.4G_Pin2Pin_1011/output/program.lis	(revision 371)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_E701_Only2.4G_Pin2Pin_1011/output/program.lis	(working copy)
@@ -34,9 +34,9 @@
 001d c06000b6 beq patch38_0 ,p_le_parse_l2cap 
 001e c070856c beq patch3c_1 ,p_g24_receive_rxon 
 001f c07105c9 beq patch3c_2 ,p_g24_transmit 
-0020 c0750657 beq patch3d_2 ,p_g24_transmit_dispatch 
-0021 c0758647 beq patch3d_3 ,p_g24_transmit_hop_process 
-0022 c0768693 beq patch3d_5 ,p_power_ctrl_start 
+0020 c0750659 beq patch3d_2 ,p_g24_transmit_dispatch 
+0021 c0758649 beq patch3d_3 ,p_g24_transmit_hop_process 
+0022 c0768695 beq patch3d_5 ,p_power_ctrl_start 
 0023 20201321 branch loop 
 
 p_main_loop:
@@ -787,7 +787,7 @@
 0266 20403db2 call mouse_usb_check_enable 
 0267 2040473f call mouse_drawing_optima_init 
 0268 20400279 call p_mouse_cb_fuction 
-0269 2040062d call p_mouse_sensor_powerdown 
+0269 2040062f call p_mouse_sensor_powerdown 
 026a 6fe0c8fd fetch 1 ,mem_usb_addr 
 026b c3838000 rtnbit1 7 
 
@@ -798,7 +798,7 @@
 026d 204047eb call mouse_24g_delay_timer 
 026e 20402bc3 call g24_pair_timeout_timer 
 026f 20402df3 call g24_reconn_timeout_timer 
-0270 2040068c call p_mouse_24g_long_sleep_param_update_timer 
+0270 2040068e call p_mouse_24g_long_sleep_param_update_timer 
 0271 204048c2 call mouse_device_poweron_timer 
 0272 204048f1 call mouse_dpi_led_blink_delay_timer 
 0273 2040408a call mouse_dpi_key_check_long_press 
@@ -1004,7 +1004,7 @@
 0305 67e0cb49 store 1 ,mem_mouse_search_dongle_action 
 0306 6fe14b9d fetch 2 ,mem_mouse_24g_search_dongle_time_init 
 0307 67e14a55 store 2 ,mem_mouse_no_data_timer 
-0308 2020062d branch p_mouse_sensor_powerdown 
+0308 2020062f branch p_mouse_sensor_powerdown 
 
 p_mouse_24g_search_dongle_success:
 0309 6fe0c894 fetch 1 ,mem_24g_abort_pac 
@@ -1026,14 +1026,14 @@
 
 p_mouse_check_no_data_timeout:
 0317 6fe0c90b fetch 1 ,mem_device_flag 
-0318 c0000622 beq mode_24g_device ,p_mouse_24g_hibernate_set 
+0318 c0000624 beq mode_24g_device ,p_mouse_24g_hibernate_set 
 0319 20204354 branch mouse_disconnect 
 
 p_mouse_setting_config:
 031a 20758000 rtn wake 
 031b 20402ea2 call g24_transmit_init 
 031c 20400367 call p_g24_rx_window_init 
-031d 20400636 call p_g24_chmap_param_init 
+031d 20400638 call p_g24_chmap_param_init 
 031e 2040032d call p_mouse_gpio_init 
 031f 20403d3a call mouse_param_init 
 0320 6fe44b50 fetch mouse_flag_len ,mem_mouse_flag 
@@ -1315,7 +1315,7 @@
 0420 58000708 setarg 0x0708 
 0421 67e14b9d store 2 ,mem_mouse_24g_search_dongle_time_init 
 0422 2040036f call p_g24_enable_1m 
-0423 20400630 call p_g24_pair_param_init 
+0423 20400632 call p_g24_pair_param_init 
 0424 584e001e setarg 0x4e001e 
 0425 67e1cb8e store 3 ,mem_24g_ch_update_map1 + 1 
 0426 58032303 setarg 0x032303 
@@ -1452,7 +1452,7 @@
 0495 58008006 setarg 0x8006 
 0496 20405af1 call twspi_write 
 0497 20002ee0 nop 12000 
-0498 2040062d call p_mouse_sensor_powerdown 
+0498 2040062f call p_mouse_sensor_powerdown 
 0499 202030d1 branch app_enter_hibernate 
 
 p_mouse_reconn_dongle_attempt_fail:
@@ -1914,7 +1914,7 @@
 p_mouse_twspi_reset:
 05f0 6fe0cbaf fetch 1 ,mem_mouse_sensor_sclk_gpio 
 05f1 20405ab2 call twspi_reset 
-05f2 2020061c branch p_mouse_spid_init_pin 
+05f2 2020061e branch p_mouse_spid_init_pin 
 
 p_mouse_init_p3065:
 05f3 20400615 call p_mouse_sensor_poweron 
@@ -1968,230 +1968,232 @@
 0619 2020421b branch mouse_sensor_poweron + 1 
 
 p_mouse_sensor_spi_init:
-061a 2040061c call p_mouse_spid_init_pin 
-061b 20203f73 branch mouse_sensor_spi_init + 1 
+061a 2040061e call p_mouse_spid_init_pin 
+061b 70448876 jam 0x76 ,mem_spi_init_clk 
+061c 20403f76 call mouse_spi_init 
+061d 20205ad3 branch twspi_enable 
 
 p_mouse_spid_init_pin:
-061c 6fe0cbaf fetch 1 ,mem_mouse_sensor_sclk_gpio 
-061d d8400021 arg gpcfg_spid_sck ,temp 
-061e 204060e2 call gpio_config_function_int 
-061f 6fe0cbb0 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-0620 d8400023 arg gpcfg_spid_sdio ,temp 
-0621 202060e2 branch gpio_config_function_int 
+061e 6fe0cbaf fetch 1 ,mem_mouse_sensor_sclk_gpio 
+061f d8400021 arg gpcfg_spid_sck ,temp 
+0620 204060e2 call gpio_config_function_int 
+0621 6fe0cbb0 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+0622 d8400023 arg gpcfg_spid_sdio ,temp 
+0623 202060e2 branch gpio_config_function_int 
 
 p_mouse_24g_hibernate_set:
-0622 20402e34 call g24_txbuf_clear 
-0623 20402ed9 call g24_transmit_next_packet 
-0624 5800ffff setarg 0xffff 
-0625 67e1485b store 2 ,mem_24g_enter_hibernate 
-0626 67e1485d store 2 ,mem_24g_enter_hibernate + 2 
-0627 58000000 setarg 0 
-0628 67e3c8b3 store 7 ,mem_mouse_key 
-0629 704b8b01 jam 1 ,mem_sensor_shutdown_flag 
-062a 2040062d call p_mouse_sensor_powerdown 
-062b 20400484 call p_mouse_setgpio_hibernate 
-062c 20202f32 branch g24_long_sleep 
+0624 20402e34 call g24_txbuf_clear 
+0625 20402ed9 call g24_transmit_next_packet 
+0626 5800ffff setarg 0xffff 
+0627 67e1485b store 2 ,mem_24g_enter_hibernate 
+0628 67e1485d store 2 ,mem_24g_enter_hibernate + 2 
+0629 58000000 setarg 0 
+062a 67e3c8b3 store 7 ,mem_mouse_key 
+062b 704b8b01 jam 1 ,mem_sensor_shutdown_flag 
+062c 2040062f call p_mouse_sensor_powerdown 
+062d 20400484 call p_mouse_setgpio_hibernate 
+062e 20202f32 branch g24_long_sleep 
 
 p_mouse_sensor_powerdown:
-062d 204005e7 call p_mouse_init_sunt 
-062e 2040061a call p_mouse_sensor_spi_init 
-062f 20204220 branch mouse_sensor_powerdown_next 
+062f 204005e7 call p_mouse_init_sunt 
+0630 2040061a call p_mouse_sensor_spi_init 
+0631 20204220 branch mouse_sensor_powerdown_next 
 
 p_g24_pair_param_init:
-0630 7048694e jam 0x4e ,mem_24g_pair_ch 
-0631 58101520 setarg 0x101520 
-0632 67e1c865 store 3 ,mem_24g_pair_addr 
-0633 58000005 setarg 0x05 
-0634 e7e08005 istore 1 ,contw 
-0635 20600000 rtn 
+0632 7048694e jam 0x4e ,mem_24g_pair_ch 
+0633 58101520 setarg 0x101520 
+0634 67e1c865 store 3 ,mem_24g_pair_addr 
+0635 58000005 setarg 0x05 
+0636 e7e08005 istore 1 ,contw 
+0637 20600000 rtn 
 
 p_g24_chmap_param_init:
-0636 38001300 setsect 0 ,0x1300 
-0637 3805908b setsect 1 ,0x1908b 
-0638 380b6150 setsect 2 ,0x36150 
-0639 380c3d20 setsect 3 ,0x3d20 
-063a 67e4c83f store 9 ,mem_24g_ch_map1 
-063b 38003a1a setsect 0 ,0x3a1a 
-063c 3804c453 setsect 1 ,0xc453 
-063d 3808d312 setsect 2 ,0xd312 
-063e 380c0001 setsect 3 ,0x1 
-063f e7e38005 istore 7 ,contw 
-0640 6fe0c09a fetch 1 ,mem_device_option 
-0641 c1840000 rtnne dvc_op_mouse 
-0642 6fe0cb8c fetch 1 ,mem_24g_ch_map_update 
-0643 207a0000 rtn blank 
-0644 d8c04b8d arg mem_24g_ch_update_map1 ,contr 
-0645 d8a0483f arg mem_24g_ch_map1 ,contw 
-0646 20207d1a branch memcpy16 
+0638 38001300 setsect 0 ,0x1300 
+0639 3805908b setsect 1 ,0x1908b 
+063a 380b6150 setsect 2 ,0x36150 
+063b 380c3d20 setsect 3 ,0x3d20 
+063c 67e4c83f store 9 ,mem_24g_ch_map1 
+063d 38003a1a setsect 0 ,0x3a1a 
+063e 3804c453 setsect 1 ,0xc453 
+063f 3808d312 setsect 2 ,0xd312 
+0640 380c0001 setsect 3 ,0x1 
+0641 e7e38005 istore 7 ,contw 
+0642 6fe0c09a fetch 1 ,mem_device_option 
+0643 c1840000 rtnne dvc_op_mouse 
+0644 6fe0cb8c fetch 1 ,mem_24g_ch_map_update 
+0645 207a0000 rtn blank 
+0646 d8c04b8d arg mem_24g_ch_update_map1 ,contr 
+0647 d8a0483f arg mem_24g_ch_map1 ,contw 
+0648 20207d1a branch memcpy16 
 
 p_g24_transmit_hop_process:
-0647 6848c893 fetcht 1 ,mem_24g_retry 
-0648 6fe0cb86 fetch 1 ,mem_24g_fast_hop_count 
-0649 98467c00 isub temp ,null 
-064a 242106bf nbranch p_g24_tx_fast_hop ,positive 
-064b 18408401 increase 1 ,temp 
-064c 6048c893 storet 1 ,mem_24g_retry 
-064d 6fe0cb86 fetch 1 ,mem_24g_fast_hop_count 
-064e c0028653 beq 5 ,p_g24_transmit_hop_process_250hz 
-064f 6fe0c893 fetch 1 ,mem_24g_retry 
-0650 c0032f13 beq 6 ,g24_hop_ch_disable 
-0651 c0062f13 beq 12 ,g24_hop_ch_disable 
-0652 20600000 rtn 
+0649 6848c893 fetcht 1 ,mem_24g_retry 
+064a 6fe0cb86 fetch 1 ,mem_24g_fast_hop_count 
+064b 98467c00 isub temp ,null 
+064c 242106c1 nbranch p_g24_tx_fast_hop ,positive 
+064d 18408401 increase 1 ,temp 
+064e 6048c893 storet 1 ,mem_24g_retry 
+064f 6fe0cb86 fetch 1 ,mem_24g_fast_hop_count 
+0650 c0028655 beq 5 ,p_g24_transmit_hop_process_250hz 
+0651 6fe0c893 fetch 1 ,mem_24g_retry 
+0652 c0032f13 beq 6 ,g24_hop_ch_disable 
+0653 c0062f13 beq 12 ,g24_hop_ch_disable 
+0654 20600000 rtn 
 
 p_g24_transmit_hop_process_250hz:
-0653 6fe0c893 fetch 1 ,mem_24g_retry 
-0654 c001af13 beq 3 ,g24_hop_ch_disable 
-0655 c0032f13 beq 6 ,g24_hop_ch_disable 
-0656 20600000 rtn 
+0655 6fe0c893 fetch 1 ,mem_24g_retry 
+0656 c001af13 beq 3 ,g24_hop_ch_disable 
+0657 c0032f13 beq 6 ,g24_hop_ch_disable 
+0658 20600000 rtn 
 
 p_g24_transmit_dispatch:
-0657 20402eb9 call g24_txdata_prep 
-0658 24340666 nbranch p_g24_nodata_transmit ,user 
+0659 20402eb9 call g24_txdata_prep 
+065a 24340668 nbranch p_g24_nodata_transmit ,user 
 
 p_g24_transmit_start:
-0659 2040067a call p_g24_transmit_process 
-065a 20402f6b call power_ctrl_start 
-065b 6fe0cb8b fetch 1 ,mem_sensor_shutdown_flag 
-065c 243a0661 nbranch p_g24_short_sleep ,blank 
-065d 6fe4489d fetch 8 ,mem_24g_long_sleep_set 
-065e 67e4485b store 8 ,mem_24g_enter_hibernate 
-065f 6fe148ab fetch 2 ,mem_24g_long_sleep_param_update_timer_init 
-0660 67e148ad store 2 ,mem_24g_long_sleep_param_update_timer 
+065b 2040067c call p_g24_transmit_process 
+065c 20402f6b call power_ctrl_start 
+065d 6fe0cb8b fetch 1 ,mem_sensor_shutdown_flag 
+065e 243a0663 nbranch p_g24_short_sleep ,blank 
+065f 6fe4489d fetch 8 ,mem_24g_long_sleep_set 
+0660 67e4485b store 8 ,mem_24g_enter_hibernate 
+0661 6fe148ab fetch 2 ,mem_24g_long_sleep_param_update_timer_init 
+0662 67e148ad store 2 ,mem_24g_long_sleep_param_update_timer 
 
 p_g24_short_sleep:
-0661 20402f38 call g24_lpm_wait 
-0662 24740000 nrtn user 
-0663 20407ff6 call clear_wake 
-0664 6fe1c89a fetch 3 ,mem_24g_short_sleep_set 
-0665 20202f35 branch g24_long_sleep2 
+0663 20402f38 call g24_lpm_wait 
+0664 24740000 nrtn user 
+0665 20407ff6 call clear_wake 
+0666 6fe1c89a fetch 3 ,mem_24g_short_sleep_set 
+0667 20202f35 branch g24_long_sleep2 
 
 p_g24_nodata_transmit:
-0666 6fe0c894 fetch 1 ,mem_24g_abort_pac 
-0667 205a066c call p_g24_send_abort_packet ,blank 
-0668 6fe0c8a6 fetch 1 ,mem_24g_transmit_by_interrupt 
-0669 c1008000 rtneq g24_tx_timer_int_enable 
-066a 20402f1c call g24_search_receiver 
-066b 20202f32 branch g24_long_sleep 
+0668 6fe0c894 fetch 1 ,mem_24g_abort_pac 
+0669 205a066e call p_g24_send_abort_packet ,blank 
+066a 6fe0c8a6 fetch 1 ,mem_24g_transmit_by_interrupt 
+066b c1008000 rtneq g24_tx_timer_int_enable 
+066c 20402f1c call g24_search_receiver 
+066d 20202f32 branch g24_long_sleep 
 
 p_g24_send_abort_packet:
-066c 70483501 jam type_ms ,mem_24g_data_type 
-066d 70489401 jam 1 ,mem_24g_abort_pac 
-066e 20402eca call g24_transmit_rf_ctrl_clear 
-066f 67e0c7c5 store 1 ,mem_24g_txbuf 
-0670 58000000 setarg 0 
-0671 67e3c7c6 store 7 ,mem_24g_txbuf + 1 
-0672 6fe24896 fetch 4 ,mem_24g_device_addr 
-0673 67e247cd store 4 ,mem_24g_txbuf + 8 
-0674 7048340c jam 12 ,mem_24g_datalen 
-0675 6fe0c835 fetch 1 ,mem_24g_data_type 
-0676 79207e03 set1 bit_abort ,pdata 
-0677 67e0c835 store 1 ,mem_24g_data_type 
-0678 20402b55 call g24_transmit_prep 
-0679 20200659 branch p_g24_transmit_start 
+066e 70483501 jam type_ms ,mem_24g_data_type 
+066f 70489401 jam 1 ,mem_24g_abort_pac 
+0670 20402eca call g24_transmit_rf_ctrl_clear 
+0671 67e0c7c5 store 1 ,mem_24g_txbuf 
+0672 58000000 setarg 0 
+0673 67e3c7c6 store 7 ,mem_24g_txbuf + 1 
+0674 6fe24896 fetch 4 ,mem_24g_device_addr 
+0675 67e247cd store 4 ,mem_24g_txbuf + 8 
+0676 7048340c jam 12 ,mem_24g_datalen 
+0677 6fe0c835 fetch 1 ,mem_24g_data_type 
+0678 79207e03 set1 bit_abort ,pdata 
+0679 67e0c835 store 1 ,mem_24g_data_type 
+067a 20402b55 call g24_transmit_prep 
+067b 2020065b branch p_g24_transmit_start 
 
 p_g24_transmit_process:
-067a 70489300 jam 0 ,mem_24g_retry 
+067c 70489300 jam 0 ,mem_24g_retry 
 
 p_g24_transmit_loop:
-067b 6961015f fetchr timeup ,2 ,mem_param_rx_setup 
-067c 34730200 until clkn_rt ,meet 
-067d 20402ee1 call g24_transmit_receive_ack 
-067e 6fe0c82b fetch 1 ,mem_24g_no_ack 
-067f c000aed7 beq no_ack_24g ,g24_transmit_no_ack 
-0680 242c0685 nbranch p_g24_retransmit ,sync 
-0681 24378685 nbranch p_g24_retransmit ,user3 
-0682 20402ef6 call g24_ackpayload_parse 
-0683 204005e3 call p_mouse_wakeup_24g 
-0684 20202ed7 branch g24_transmit_no_ack 
+067d 6961015f fetchr timeup ,2 ,mem_param_rx_setup 
+067e 34730200 until clkn_rt ,meet 
+067f 20402ee1 call g24_transmit_receive_ack 
+0680 6fe0c82b fetch 1 ,mem_24g_no_ack 
+0681 c000aed7 beq no_ack_24g ,g24_transmit_no_ack 
+0682 242c0687 nbranch p_g24_retransmit ,sync 
+0683 24378687 nbranch p_g24_retransmit ,user3 
+0684 20402ef6 call g24_ackpayload_parse 
+0685 204005e3 call p_mouse_wakeup_24g 
+0686 20202ed7 branch g24_transmit_no_ack 
 
 p_g24_retransmit:
-0685 6fe14891 fetch 2 ,mem_24g_txfail_cnt 
-0686 1fe0fe01 increase 1 ,pdata 
-0687 67e14891 store 2 ,mem_24g_txfail_cnt 
-0688 6fe0c892 fetch 1 ,mem_24g_txfail_cnt + 1 
-0689 c2820622 bbit1 4 ,p_mouse_24g_hibernate_set 
-068a 20402f01 call g24_transmit_hop_process 
-068b 2020067b branch p_g24_transmit_loop 
+0687 6fe14891 fetch 2 ,mem_24g_txfail_cnt 
+0688 1fe0fe01 increase 1 ,pdata 
+0689 67e14891 store 2 ,mem_24g_txfail_cnt 
+068a 6fe0c892 fetch 1 ,mem_24g_txfail_cnt + 1 
+068b c2820624 bbit1 4 ,p_mouse_24g_hibernate_set 
+068c 20402f01 call g24_transmit_hop_process 
+068d 2020067d branch p_g24_transmit_loop 
 
 p_mouse_24g_long_sleep_param_update_timer:
-068c da6048ad arg mem_24g_long_sleep_param_update_timer ,regc 
-068d da40068f arg p_mouse_24g_long_sleep_normal_param ,regb 
-068e 20203044 branch timer_single_step 
+068e da6048ad arg mem_24g_long_sleep_param_update_timer ,regc 
+068f da400691 arg p_mouse_24g_long_sleep_normal_param ,regb 
+0690 20203044 branch timer_single_step 
 
 p_mouse_24g_long_sleep_normal_param:
-068f 6fe24b87 fetch 4 ,mem_24g_long_sleep_set1 
-0690 67e2485b store 4 ,mem_24g_enter_hibernate 
-0691 704a5101 jam 1 ,mem_mouse_long_mult_flag 
-0692 20600000 rtn 
+0691 6fe24b87 fetch 4 ,mem_24g_long_sleep_set1 
+0692 67e2485b store 4 ,mem_24g_enter_hibernate 
+0693 704a5101 jam 1 ,mem_mouse_long_mult_flag 
+0694 20600000 rtn 
 
 p_power_ctrl_start:
-0693 6fe1478b fetch 2 ,mem_ui_state_map 
-0694 c3858000 rtnbit1 ui_state_ble_adv 
-0695 c3838000 rtnbit1 ui_state_bt_reconnect 
-0696 c3830000 rtnbit1 ui_state_bt_discovery 
-0697 6a214887 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
-0698 20402e68 call rssi_average 
-0699 6048c8af storet 1 ,mem_rssi_avg_received 
-069a 6fe0cba9 fetch 1 ,mem_rssi_dis_max_24g 
-069b c5132f76 bmark1 mark_24g ,power_ctrl_start_next 
-069c 6fe0cbac fetch 1 ,mem_rssi_dis_max_ble 
+0695 6fe1478b fetch 2 ,mem_ui_state_map 
+0696 c3858000 rtnbit1 ui_state_ble_adv 
+0697 c3838000 rtnbit1 ui_state_bt_reconnect 
+0698 c3830000 rtnbit1 ui_state_bt_discovery 
+0699 6a214887 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
+069a 20402e68 call rssi_average 
+069b 6048c8af storet 1 ,mem_rssi_avg_received 
+069c 6fe0cba9 fetch 1 ,mem_rssi_dis_max_24g 
+069d c5132f76 bmark1 mark_24g ,power_ctrl_start_next 
+069e 6fe0cbac fetch 1 ,mem_rssi_dis_max_ble 
 
 p_power_ctrl_start_next:
-069d 98467c00 isub temp ,null 
-069e 242106b7 nbranch p_power_ctrl_txpower_incrs_force ,positive 
-069f 6fe0c8b1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-06a0 1fe67c02 sub pdata ,2 ,null 
-06a1 242106a5 nbranch p_power_ctrl_txpower_decrs_check ,positive 
-06a2 6fe0c8b1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-06a3 c00006b8 beq 0 ,p_power_ctrl_txpower_incrs 
-06a4 20600000 rtn 
+069f 98467c00 isub temp ,null 
+06a0 242106b9 nbranch p_power_ctrl_txpower_incrs_force ,positive 
+06a1 6fe0c8b1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+06a2 1fe67c02 sub pdata ,2 ,null 
+06a3 242106a7 nbranch p_power_ctrl_txpower_decrs_check ,positive 
+06a4 6fe0c8b1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+06a5 c00006ba beq 0 ,p_power_ctrl_txpower_incrs 
+06a6 20600000 rtn 
 
 p_power_ctrl_txpower_decrs_check:
-06a5 6fe0c8b1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-06a6 6848c8b2 fetcht 1 ,mem_power_ctrl_pac_succ_cnt_init 
-06a7 98467c00 isub temp ,null 
-06a8 24628000 nrtn zero 
-06a9 7048b100 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+06a7 6fe0c8b1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+06a8 6848c8b2 fetcht 1 ,mem_power_ctrl_pac_succ_cnt_init 
+06a9 98467c00 isub temp ,null 
+06aa 24628000 nrtn zero 
+06ab 7048b100 jam 0 ,mem_power_ctrl_pac_succ_cnt 
 
 p_power_ctrl_txpower_decrs:
-06aa 6848c8af fetcht 1 ,mem_rssi_avg_received 
-06ab 6fe0cba8 fetch 1 ,mem_rssi_dis_min_24g 
-06ac c51306ae bmark1 mark_24g ,p_power_ctrl_txpower_decrs_next 
-06ad 6fe0cbab fetch 1 ,mem_rssi_dis_min_ble 
+06ac 6848c8af fetcht 1 ,mem_rssi_avg_received 
+06ad 6fe0cba8 fetch 1 ,mem_rssi_dis_min_24g 
+06ae c51306b0 bmark1 mark_24g ,p_power_ctrl_txpower_decrs_next 
+06af 6fe0cbab fetch 1 ,mem_rssi_dis_min_ble 
 
 p_power_ctrl_txpower_decrs_next:
-06ae 98467c00 isub temp ,null 
-06af 24610000 nrtn positive 
-06b0 6fe0c8b0 fetch 1 ,mem_power_ctrl_level 
-06b1 c0002f98 beq 0 ,power_ctrl_decrs_level0 
-06b2 1fe0ffff increase -1 ,pdata 
-06b3 67e0c8b0 store 1 ,mem_power_ctrl_level 
-06b4 c0002f98 beq 0 ,power_ctrl_decrs_level0 
+06b0 98467c00 isub temp ,null 
+06b1 24610000 nrtn positive 
+06b2 6fe0c8b0 fetch 1 ,mem_power_ctrl_level 
+06b3 c0002f98 beq 0 ,power_ctrl_decrs_level0 
+06b4 1fe0ffff increase -1 ,pdata 
+06b5 67e0c8b0 store 1 ,mem_power_ctrl_level 
+06b6 c0002f98 beq 0 ,power_ctrl_decrs_level0 
 
 p_power_ctrl_decrs_level1:
 
 p_power_ctrl_incrs_level1:
-06b5 7041eb00 jam tx_power_0db ,mem_tx_power 
-06b6 20600000 rtn 
+06b7 7041eb00 jam tx_power_0db ,mem_tx_power 
+06b8 20600000 rtn 
 
 p_power_ctrl_txpower_incrs_force:
-06b7 7048b100 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+06b9 7048b100 jam 0 ,mem_power_ctrl_pac_succ_cnt 
 
 p_power_ctrl_txpower_incrs:
-06b8 6fe0c8b0 fetch 1 ,mem_power_ctrl_level 
-06b9 c00106bd beq 2 ,p_power_ctrl_incrs_level2 
-06ba 1fe0fe01 increase 1 ,pdata 
-06bb 67e0c8b0 store 1 ,mem_power_ctrl_level 
-06bc c00086b5 beq 1 ,p_power_ctrl_incrs_level1 
+06ba 6fe0c8b0 fetch 1 ,mem_power_ctrl_level 
+06bb c00106bf beq 2 ,p_power_ctrl_incrs_level2 
+06bc 1fe0fe01 increase 1 ,pdata 
+06bd 67e0c8b0 store 1 ,mem_power_ctrl_level 
+06be c00086b7 beq 1 ,p_power_ctrl_incrs_level1 
 
 p_power_ctrl_incrs_level2:
-06bd 7041eb05 jam tx_power_6db ,mem_tx_power 
-06be 20600000 rtn 
+06bf 7041eb05 jam tx_power_6db ,mem_tx_power 
+06c0 20600000 rtn 
 
 p_g24_tx_fast_hop:
-06bf 204006b8 call p_power_ctrl_txpower_incrs 
-06c0 20402fa1 call power_ctrl_pac_succ_decrs 
-06c1 20202b8f branch g24_ch 
+06c1 204006ba call p_power_ctrl_txpower_incrs 
+06c2 20402fa1 call power_ctrl_pac_succ_decrs 
+06c3 20202b8f branch g24_ch 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_E701_Only2.4G_Pin2Pin_1011/program/patch.prog	(revision 371)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_E701_Only2.4G_Pin2Pin_1011/program/patch.prog	(working copy)
@@ -2622,7 +2622,9 @@
 
 p_mouse_sensor_spi_init:
 	call p_mouse_spid_init_pin
-	branch mouse_sensor_spi_init+1
+	jam 0x76,mem_spi_init_clk
+	call mouse_spi_init
+	branch twspi_enable
 
 p_mouse_spid_init_pin:
 	fetch 1,mem_mouse_sensor_sclk_gpio
Index: sched/1308.dat
===================================================================
--- /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_E701_Only2.4G_Pin2Pin_1011/sched/1308.dat	(revision 371)
+++ /branch/mouse/mouse_project/YJX_Project/Only2.4G/1306AB_E701_Only2.4G_Pin2Pin_1011/sched/1308.dat	(working copy)
@@ -2,7 +2,7 @@
 mem_gpio_wakeup_low:00 00 08 00 00 00 00 00
 mem_lpm_config:88 1f ce #4khz
 mem_lpm_xtalcnt:50 3f 0c 33 03
-mem_lpm_ctrl3:30 9d 10 24
+mem_lpm_ctrl3:30 9d 10 04
 mem_lpm_hibernate_switch:00
 
 
