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 5895)
+++ /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/bt_program23.icode	(working copy)
@@ -22,20 +22,20 @@
  00000021  0x00000063 store  0x00000002 , 0x000041f9 
  00000022  0x00000068 setarg  0x00000278 
  00000023  0x00000069 store  0x00000002 , 0x000041ed 
- 00000024  0x0000006a setarg  0x00000457 
+ 00000024  0x0000006a setarg  0x00000455 
  00000025  0x0000006b store  0x00000002 , 0x000041f5 
  00000026  0x0000006c setarg  0x000003f9 
  00000027  0x0000006d store  0x00000002 , 0x000041f3 
- 00000028  0x0000006e setarg  0x00000491 
+ 00000028  0x0000006e setarg  0x0000048f 
  00000029  0x0000006f store  0x00000002 , 0x000041eb 
- 00000030  0x00000070 setarg  0x0000049a 
+ 00000030  0x00000070 setarg  0x00000498 
  00000031  0x00000071 store  0x00000002 , 0x000041fd 
  00000032  0x00000072 rtn 
  00000033  0x00000075 setarg  0x00000019 
  00000034  0x00000076 store  0x00000002 , 0x00004f89 
  00000035  0x00000077 ncall  0x0000002b , 0x0000002b 
  00000036  0x00000078 call  0x000002ee 
- 00000037  0x00000079 call  0x00000497 
+ 00000037  0x00000079 call  0x00000495 
  00000038  0x0000007b fetch  0x00000001 , 0x0000471f 
  00000039  0x0000007c store  0x00000001 , 0x0000471e 
  00000040  0x0000007d fetch  0x00000001 , 0x00004241 
@@ -98,10 +98,10 @@
  00000097  0x000000c9 beq  0x000000fa , 0x00000731 
  00000098  0x000000ca branch  0x00002a8e 
  00000099  0x000000ce jam  0x00000000 , 0x00004d46 
- 00000100  0x000000cf call  0x000004fd 
+ 00000100  0x000000cf call  0x000004fb 
  00000101  0x000000d0 nrtn  0x00000001 
  00000102  0x000000d1 call  0x00007ec1 
- 00000103  0x000000d2 call  0x000004fd 
+ 00000103  0x000000d2 call  0x000004fb 
  00000104  0x000000d3 nrtn  0x00000001 
  00000105  0x000000d4 jam  0x00000001 , 0x00004d46 
  00000106  0x000000d5 rtn 
@@ -1087,201 +1087,201 @@
  00001086  0x0000066a increase  0xffffffff , 0x0000003f 
  00001087  0x0000066b store  0x00000001 , 0x000046ba 
  00001088  0x0000066c rtn 
- 00001089  0x00000670 fetcht  0x00000001 , 0x00004d91 
+ 00001089  0x00000670 fetcht  0x00000001 , 0x000046e7 
  00001090  0x00000671 call  0x00000618 
  00001091  0x00000672 fetcht  0x00000001 , 0x000046e7 
- 00001092  0x00000673 call  0x0000061d 
- 00001093  0x00000674 fetcht  0x00000001 , 0x000046e7 
- 00001094  0x00000675 call  0x0000681d 
- 00001095  0x00000676 branch  0x00000455 , 0x00000001 
- 00001096  0x00000677 call  0x00000618 
- 00001097  0x00000679 fetch  0x00000001 , 0x000046b6 
- 00001098  0x0000067a rtneq  0x00000000 
- 00001099  0x0000067b jam  0x00000000 , 0x000046b6 
- 00001100  0x0000067c fetch  0x00000001 , 0x0000477a 
- 00001101  0x0000067d increase  0x00000001 , 0x0000003f 
- 00001102  0x0000067e and  0x0000003f , 0x00000003 , 0x0000003f 
- 00001103  0x0000067f store  0x00000001 , 0x0000477a 
- 00001104  0x00000680 increase  0x00000003 , 0x0000003f 
- 00001105  0x00000681 store  0x00000001 , 0x00004d07 
- 00001106  0x00000682 call  0x00000783 
- 00001107  0x00000683 call  0x00000322 
- 00001108  0x00000684 branch  0x00003d7e 
- 00001109  0x00000686 call  0x00000618 
- 00001110  0x00000687 branch  0x00003d62 
- 00001111  0x0000068a copy  0x00000013 , 0x0000003f 
- 00001112  0x0000068b beq  0x00000014 , 0x00000468 
- 00001113  0x0000068c beq  0x00000015 , 0x0000046a 
- 00001114  0x0000068d beq  0x00000029 , 0x0000046d 
- 00001115  0x0000068e beq  0x00000032 , 0x0000046f 
- 00001116  0x0000068f beq  0x00000040 , 0x00000471 
- 00001117  0x00000690 beq  0x00000004 , 0x00000473 
- 00001118  0x00000691 beq  0x00000013 , 0x00000473 
- 00001119  0x00000692 beq  0x00000019 , 0x000033df 
- 00001120  0x00000693 beq  0x00000021 , 0x00000477 
- 00001121  0x00000694 beq  0x00000001 , 0x00000479 
- 00001122  0x00000695 beq  0x00000002 , 0x0000047d 
- 00001123  0x00000696 beq  0x0000002b , 0x00000480 
- 00001124  0x00000697 beq  0x00000039 , 0x00000482 
- 00001125  0x00000698 beq  0x0000003a , 0x00000486 
- 00001126  0x00000699 beq  0x0000003c , 0x0000048c 
- 00001127  0x0000069a branch  0x0000417d 
- 00001128  0x0000069d jam  0x000000d0 , 0x000011c5 
- 00001129  0x0000069e branch  0x000007da 
- 00001130  0x000006a1 call  0x00000494 
- 00001131  0x000006a2 jam  0x000000a2 , 0x000011c5 
- 00001132  0x000006a3 branch  0x000007da 
- 00001133  0x000006a7 jam  0x00000012 , 0x00000a99 
- 00001134  0x000006a8 branch  0x00007d8f 
- 00001135  0x000006ab jam  0x000000b3 , 0x000011c5 
- 00001136  0x000006ac branch  0x000007da 
- 00001137  0x000006af jam  0x000000a1 , 0x000011c5 
- 00001138  0x000006b0 branch  0x000007da 
- 00001139  0x000006b5 jam  0x000000a3 , 0x000011c5 
- 00001140  0x000006b6 branch  0x000007da 
- 00001141  0x000006b9 jam  0x00000071 , 0x000011c5 
- 00001142  0x000006ba branch  0x000007da 
- 00001143  0x000006bd jam  0x000000b1 , 0x000011c5 
- 00001144  0x000006be branch  0x000007da 
- 00001145  0x000006c1 jam  0x00000000 , 0x00004d92 
- 00001146  0x000006c2 jam  0x00000000 , 0x000049e4 
- 00001147  0x000006c3 call  0x000002f6 
- 00001148  0x000006c4 branch  0x000042ca 
- 00001149  0x000006c7 call  0x00000494 
- 00001150  0x000006c8 jam  0x000000b4 , 0x000011c5 
- 00001151  0x000006c9 branch  0x000007da 
- 00001152  0x000006cc jam  0x000000b2 , 0x000011c5 
- 00001153  0x000006cd branch  0x000007da 
- 00001154  0x000006d0 jam  0x00000000 , 0x00004d92 
- 00001155  0x000006d1 call  0x000002f6 
- 00001156  0x000006d2 jam  0x00000092 , 0x000011c5 
- 00001157  0x000006d3 branch  0x000007da 
- 00001158  0x000006d6 jam  0x00000001 , 0x00004d92 
- 00001159  0x000006d7 jam  0x0000000a , 0x00004d07 
- 00001160  0x000006d8 call  0x00000783 
- 00001161  0x000006da call  0x00000494 
- 00001162  0x000006dc jam  0x000000a0 , 0x000011c5 
- 00001163  0x000006dd branch  0x000007da 
- 00001164  0x000006e0 jam  0x00000001 , 0x00004e47 
- 00001165  0x000006e1 jam  0x00000000 , 0x00004d92 
- 00001166  0x000006e3 call  0x000002f6 
- 00001167  0x000006e5 fetch  0x00000002 , 0x00004db9 
- 00001168  0x000006e6 branch  0x00003f8e 
- 00001169  0x000006e9 call  0x00000494 
- 00001170  0x000006ea jam  0x000000a4 , 0x000011c5 
- 00001171  0x000006eb branch  0x000007da 
- 00001172  0x000006ee fetch  0x00000001 , 0x00004cd9 
- 00001173  0x000006ef rtn  0x00000034 
- 00001174  0x000006f0 jam  0x00000000 , 0x00004cd9 
- 00001175  0x000006f2 call  0x000002ee 
- 00001176  0x000006f3 setarg  0x00000806 
- 00001177  0x000006f8 branch  0x00006413 
- 00001178  0x000006fb call  0x0000052b 
- 00001179  0x000006fc call  0x0000058a 
- 00001180  0x000006fd call  0x000004dd 
- 00001181  0x000006fe call  0x00000501 
- 00001182  0x000006ff call  0x00004234 
- 00001183  0x00000700 call  0x0000423a 
- 00001184  0x00000701 call  0x000004e2 
- 00001185  0x00000702 call  0x000004e9 
- 00001186  0x00000703 call  0x000004c4 
- 00001187  0x00000704 call  0x000004c1 
- 00001188  0x00000705 call  0x000004ca 
- 00001189  0x00000706 call  0x000004d5 
- 00001190  0x00000707 call  0x000004d0 
- 00001191  0x00000708 call  0x000004b9 
- 00001192  0x00000709 call  0x00004231 
- 00001193  0x0000070a call  0x000004bc 
- 00001194  0x0000070b call  0x000004ac 
- 00001195  0x0000070c branch  0x00000749 
- 00001196  0x0000070f arg  0x00004dbd , 0x00000013 
- 00001197  0x00000710 arg  0x000004af , 0x00000012 
- 00001198  0x00000711 branch  0x00003374 
- 00001199  0x00000713 fetch  0x00000001 , 0x00004dbf 
- 00001200  0x00000714 nrtn  0x00000034 
- 00001201  0x00000715 jam  0x00000001 , 0x00004dbf 
- 00001202  0x00000716 branch  0x00000497 
- 00001203  0x00000719 fetch  0x00000002 , 0x00004dbb 
- 00001204  0x0000071a store  0x00000002 , 0x00004dbd 
- 00001205  0x0000071b fetch  0x00000001 , 0x00004dbf 
- 00001206  0x0000071c rtn  0x00000034 
- 00001207  0x0000071d jam  0x00000000 , 0x00004dbf 
- 00001208  0x0000071e branch  0x000002f6 
- 00001209  0x00000721 arg  0x000049e4 , 0x00000013 
- 00001210  0x00000722 arg  0x0000637a , 0x00000012 
- 00001211  0x00000723 branch  0x0000336d 
- 00001212  0x00000726 arg  0x00004ce4 , 0x00000013 
- 00001213  0x00000727 arg  0x000004bf , 0x00000012 
- 00001214  0x00000728 branch  0x0000336d 
- 00001215  0x0000072a jam  0x00000001 , 0x00004ce5 
- 00001216  0x0000072b rtn 
- 00001217  0x0000072f arg  0x000046c6 , 0x00000013 
- 00001218  0x00000730 arg  0x00003d60 , 0x00000012 
- 00001219  0x00000731 branch  0x0000336d 
- 00001220  0x00000734 arg  0x000046ae , 0x00000013 
- 00001221  0x00000735 arg  0x000004c7 , 0x00000012 
- 00001222  0x00000736 branch  0x00003374 
- 00001223  0x00000738 fetch  0x00000001 , 0x00004d0a 
- 00001224  0x00000739 nrtn  0x00000034 
- 00001225  0x0000073a branch  0x00004266 
- 00001226  0x0000073d arg  0x00004d41 , 0x00000013 
- 00001227  0x0000073e arg  0x000004cd , 0x00000012 
- 00001228  0x0000073f branch  0x0000336d 
- 00001229  0x00000741 fetch  0x00000001 , 0x000047c7 
- 00001230  0x00000742 store  0x00000001 , 0x00004172 
- 00001231  0x00000743 branch  0x000004e7 
- 00001232  0x00000746 arg  0x00004daa , 0x00000013 
- 00001233  0x00000747 arg  0x000004d3 , 0x00000012 
- 00001234  0x00000748 branch  0x0000336d 
- 00001235  0x0000074a jam  0x00000001 , 0x00004da9 
- 00001236  0x0000074b rtn 
- 00001237  0x0000074e fetch  0x00000001 , 0x00004d43 
- 00001238  0x0000074f rtn  0x00000034 
- 00001239  0x00000750 arg  0x00004d44 , 0x00000013 
- 00001240  0x00000751 arg  0x000004da , 0x00000012 
- 00001241  0x00000752 branch  0x0000336d 
- 00001242  0x00000754 fetch  0x00000001 , 0x00004d45 
- 00001243  0x00000755 nrtn  0x00000034 
- 00001244  0x00000756 branch  0x00005bf5 
- 00001245  0x00000759 arg  0x000049e2 , 0x00000013 
- 00001246  0x0000075a arg  0x000004e0 , 0x00000012 
- 00001247  0x0000075b branch  0x0000336d 
- 00001248  0x0000075d jam  0x00000000 , 0x000049e1 
- 00001249  0x0000075e rtn 
- 00001250  0x00000761 arg  0x00004d42 , 0x00000013 
- 00001251  0x00000762 arg  0x000004e5 , 0x00000012 
- 00001252  0x00000763 branch  0x0000336d 
- 00001253  0x00000765 setarg  0x00124f80 
- 00001254  0x00000766 store  0x00000003 , 0x00004e75 
- 00001255  0x00000768 jam  0x00000001 , 0x00004d40 
- 00001256  0x00000769 rtn 
- 00001257  0x0000076c arg  0x00004f92 , 0x00000013 
- 00001258  0x0000076d arg  0x000004ec , 0x00000012 
- 00001259  0x0000076e branch  0x00003374 
- 00001260  0x00000770 jam  0x00000001 , 0x00004f91 
- 00001261  0x00000771 rtn 
- 00001262  0x00000791 arg  0x00004d20 , 0x00000013 
- 00001263  0x00000792 arg  0x000004f1 , 0x00000012 
- 00001264  0x00000793 branch  0x0000336d 
- 00001265  0x00000795 jam  0x00000001 , 0x00004dae 
- 00001266  0x00000796 fetcht  0x00000001 , 0x00004720 
- 00001267  0x00000797 fetch  0x00000001 , 0x00004703 
- 00001268  0x00000798 isub  0x00000002 , 0x0000003e 
- 00001269  0x00000799 rtn  0x00000005 
- 00001270  0x0000079a fetch  0x00000002 , 0x00004682 
- 00001271  0x0000079b isolate1  0x0000000b , 0x0000003f 
- 00001272  0x0000079c call  0x000042d4 , 0x00000001 
- 00001273  0x0000079d fetch  0x00000002 , 0x00004682 
- 00001274  0x0000079e isolate1  0x00000007 , 0x0000003f 
- 00001275  0x0000079f call  0x00004392 , 0x00000001 
- 00001276  0x000007a0 branch  0x000043b8 
+ 00001092  0x00000673 call  0x0000681d 
+ 00001093  0x00000674 nbranch  0x00000453 , 0x00000001 
+ 00001094  0x00000675 call  0x00000618 
+ 00001095  0x00000677 fetch  0x00000001 , 0x000046b6 
+ 00001096  0x00000678 rtneq  0x00000000 
+ 00001097  0x00000679 jam  0x00000000 , 0x000046b6 
+ 00001098  0x0000067a fetch  0x00000001 , 0x0000477a 
+ 00001099  0x0000067b increase  0x00000001 , 0x0000003f 
+ 00001100  0x0000067c and  0x0000003f , 0x00000003 , 0x0000003f 
+ 00001101  0x0000067d store  0x00000001 , 0x0000477a 
+ 00001102  0x0000067e increase  0x00000003 , 0x0000003f 
+ 00001103  0x0000067f store  0x00000001 , 0x00004d07 
+ 00001104  0x00000680 call  0x00000783 
+ 00001105  0x00000681 call  0x00000322 
+ 00001106  0x00000682 branch  0x00003d7e 
+ 00001107  0x00000684 call  0x00000618 
+ 00001108  0x00000685 branch  0x00003d62 
+ 00001109  0x00000688 copy  0x00000013 , 0x0000003f 
+ 00001110  0x00000689 beq  0x00000014 , 0x00000466 
+ 00001111  0x0000068a beq  0x00000015 , 0x00000468 
+ 00001112  0x0000068b beq  0x00000029 , 0x0000046b 
+ 00001113  0x0000068c beq  0x00000032 , 0x0000046d 
+ 00001114  0x0000068d beq  0x00000040 , 0x0000046f 
+ 00001115  0x0000068e beq  0x00000004 , 0x00000471 
+ 00001116  0x0000068f beq  0x00000013 , 0x00000471 
+ 00001117  0x00000690 beq  0x00000019 , 0x000033df 
+ 00001118  0x00000691 beq  0x00000021 , 0x00000475 
+ 00001119  0x00000692 beq  0x00000001 , 0x00000477 
+ 00001120  0x00000693 beq  0x00000002 , 0x0000047b 
+ 00001121  0x00000694 beq  0x0000002b , 0x0000047e 
+ 00001122  0x00000695 beq  0x00000039 , 0x00000480 
+ 00001123  0x00000696 beq  0x0000003a , 0x00000484 
+ 00001124  0x00000697 beq  0x0000003c , 0x0000048a 
+ 00001125  0x00000698 branch  0x0000417d 
+ 00001126  0x0000069b jam  0x000000d0 , 0x000011c5 
+ 00001127  0x0000069c branch  0x000007da 
+ 00001128  0x0000069f call  0x00000492 
+ 00001129  0x000006a0 jam  0x000000a2 , 0x000011c5 
+ 00001130  0x000006a1 branch  0x000007da 
+ 00001131  0x000006a5 jam  0x00000012 , 0x00000a99 
+ 00001132  0x000006a6 branch  0x00007d8f 
+ 00001133  0x000006a9 jam  0x000000b3 , 0x000011c5 
+ 00001134  0x000006aa branch  0x000007da 
+ 00001135  0x000006ad jam  0x000000a1 , 0x000011c5 
+ 00001136  0x000006ae branch  0x000007da 
+ 00001137  0x000006b3 jam  0x000000a3 , 0x000011c5 
+ 00001138  0x000006b4 branch  0x000007da 
+ 00001139  0x000006b7 jam  0x00000071 , 0x000011c5 
+ 00001140  0x000006b8 branch  0x000007da 
+ 00001141  0x000006bb jam  0x000000b1 , 0x000011c5 
+ 00001142  0x000006bc branch  0x000007da 
+ 00001143  0x000006bf jam  0x00000000 , 0x00004d92 
+ 00001144  0x000006c0 jam  0x00000000 , 0x000049e4 
+ 00001145  0x000006c1 call  0x000002f6 
+ 00001146  0x000006c2 branch  0x000042ca 
+ 00001147  0x000006c5 call  0x00000492 
+ 00001148  0x000006c6 jam  0x000000b4 , 0x000011c5 
+ 00001149  0x000006c7 branch  0x000007da 
+ 00001150  0x000006ca jam  0x000000b2 , 0x000011c5 
+ 00001151  0x000006cb branch  0x000007da 
+ 00001152  0x000006ce jam  0x00000000 , 0x00004d92 
+ 00001153  0x000006cf call  0x000002f6 
+ 00001154  0x000006d0 jam  0x00000092 , 0x000011c5 
+ 00001155  0x000006d1 branch  0x000007da 
+ 00001156  0x000006d4 jam  0x00000001 , 0x00004d92 
+ 00001157  0x000006d5 jam  0x0000000a , 0x00004d07 
+ 00001158  0x000006d6 call  0x00000783 
+ 00001159  0x000006d8 call  0x00000492 
+ 00001160  0x000006da jam  0x000000a0 , 0x000011c5 
+ 00001161  0x000006db branch  0x000007da 
+ 00001162  0x000006de jam  0x00000001 , 0x00004e47 
+ 00001163  0x000006df jam  0x00000000 , 0x00004d92 
+ 00001164  0x000006e1 call  0x000002f6 
+ 00001165  0x000006e3 fetch  0x00000002 , 0x00004db9 
+ 00001166  0x000006e4 branch  0x00003f8e 
+ 00001167  0x000006e7 call  0x00000492 
+ 00001168  0x000006e8 jam  0x000000a4 , 0x000011c5 
+ 00001169  0x000006e9 branch  0x000007da 
+ 00001170  0x000006ec fetch  0x00000001 , 0x00004cd9 
+ 00001171  0x000006ed rtn  0x00000034 
+ 00001172  0x000006ee jam  0x00000000 , 0x00004cd9 
+ 00001173  0x000006f0 call  0x000002ee 
+ 00001174  0x000006f1 setarg  0x00000806 
+ 00001175  0x000006f6 branch  0x00006413 
+ 00001176  0x000006f9 call  0x0000052b 
+ 00001177  0x000006fa call  0x0000058a 
+ 00001178  0x000006fb call  0x000004db 
+ 00001179  0x000006fc call  0x00000501 
+ 00001180  0x000006fd call  0x00004234 
+ 00001181  0x000006fe call  0x0000423a 
+ 00001182  0x000006ff call  0x000004e0 
+ 00001183  0x00000700 call  0x000004e7 
+ 00001184  0x00000701 call  0x000004c2 
+ 00001185  0x00000702 call  0x000004bf 
+ 00001186  0x00000703 call  0x000004c8 
+ 00001187  0x00000704 call  0x000004d3 
+ 00001188  0x00000705 call  0x000004ce 
+ 00001189  0x00000706 call  0x000004b7 
+ 00001190  0x00000707 call  0x00004231 
+ 00001191  0x00000708 call  0x000004ba 
+ 00001192  0x00000709 call  0x000004aa 
+ 00001193  0x0000070a branch  0x00000749 
+ 00001194  0x0000070d arg  0x00004dbd , 0x00000013 
+ 00001195  0x0000070e arg  0x000004ad , 0x00000012 
+ 00001196  0x0000070f branch  0x00003374 
+ 00001197  0x00000711 fetch  0x00000001 , 0x00004dbf 
+ 00001198  0x00000712 nrtn  0x00000034 
+ 00001199  0x00000713 jam  0x00000001 , 0x00004dbf 
+ 00001200  0x00000714 branch  0x00000495 
+ 00001201  0x00000717 fetch  0x00000002 , 0x00004dbb 
+ 00001202  0x00000718 store  0x00000002 , 0x00004dbd 
+ 00001203  0x00000719 fetch  0x00000001 , 0x00004dbf 
+ 00001204  0x0000071a rtn  0x00000034 
+ 00001205  0x0000071b jam  0x00000000 , 0x00004dbf 
+ 00001206  0x0000071c branch  0x000002f6 
+ 00001207  0x0000071f arg  0x000049e4 , 0x00000013 
+ 00001208  0x00000720 arg  0x0000637a , 0x00000012 
+ 00001209  0x00000721 branch  0x0000336d 
+ 00001210  0x00000724 arg  0x00004ce4 , 0x00000013 
+ 00001211  0x00000725 arg  0x000004bd , 0x00000012 
+ 00001212  0x00000726 branch  0x0000336d 
+ 00001213  0x00000728 jam  0x00000001 , 0x00004ce5 
+ 00001214  0x00000729 rtn 
+ 00001215  0x0000072d arg  0x000046c6 , 0x00000013 
+ 00001216  0x0000072e arg  0x00003d60 , 0x00000012 
+ 00001217  0x0000072f branch  0x0000336d 
+ 00001218  0x00000732 arg  0x000046ae , 0x00000013 
+ 00001219  0x00000733 arg  0x000004c5 , 0x00000012 
+ 00001220  0x00000734 branch  0x00003374 
+ 00001221  0x00000736 fetch  0x00000001 , 0x00004d0a 
+ 00001222  0x00000737 nrtn  0x00000034 
+ 00001223  0x00000738 branch  0x00004266 
+ 00001224  0x0000073b arg  0x00004d41 , 0x00000013 
+ 00001225  0x0000073c arg  0x000004cb , 0x00000012 
+ 00001226  0x0000073d branch  0x0000336d 
+ 00001227  0x0000073f fetch  0x00000001 , 0x000047c7 
+ 00001228  0x00000740 store  0x00000001 , 0x00004172 
+ 00001229  0x00000741 branch  0x000004e5 
+ 00001230  0x00000744 arg  0x00004daa , 0x00000013 
+ 00001231  0x00000745 arg  0x000004d1 , 0x00000012 
+ 00001232  0x00000746 branch  0x0000336d 
+ 00001233  0x00000748 jam  0x00000001 , 0x00004da9 
+ 00001234  0x00000749 rtn 
+ 00001235  0x0000074c fetch  0x00000001 , 0x00004d43 
+ 00001236  0x0000074d rtn  0x00000034 
+ 00001237  0x0000074e arg  0x00004d44 , 0x00000013 
+ 00001238  0x0000074f arg  0x000004d8 , 0x00000012 
+ 00001239  0x00000750 branch  0x0000336d 
+ 00001240  0x00000752 fetch  0x00000001 , 0x00004d45 
+ 00001241  0x00000753 nrtn  0x00000034 
+ 00001242  0x00000754 branch  0x00005bf5 
+ 00001243  0x00000757 arg  0x000049e2 , 0x00000013 
+ 00001244  0x00000758 arg  0x000004de , 0x00000012 
+ 00001245  0x00000759 branch  0x0000336d 
+ 00001246  0x0000075b jam  0x00000000 , 0x000049e1 
+ 00001247  0x0000075c rtn 
+ 00001248  0x0000075f arg  0x00004d42 , 0x00000013 
+ 00001249  0x00000760 arg  0x000004e3 , 0x00000012 
+ 00001250  0x00000761 branch  0x0000336d 
+ 00001251  0x00000763 setarg  0x00124f80 
+ 00001252  0x00000764 store  0x00000003 , 0x00004e75 
+ 00001253  0x00000766 jam  0x00000001 , 0x00004d40 
+ 00001254  0x00000767 rtn 
+ 00001255  0x0000076a arg  0x00004f92 , 0x00000013 
+ 00001256  0x0000076b arg  0x000004ea , 0x00000012 
+ 00001257  0x0000076c branch  0x00003374 
+ 00001258  0x0000076e jam  0x00000001 , 0x00004f91 
+ 00001259  0x0000076f rtn 
+ 00001260  0x0000078f arg  0x00004d20 , 0x00000013 
+ 00001261  0x00000790 arg  0x000004ef , 0x00000012 
+ 00001262  0x00000791 branch  0x0000336d 
+ 00001263  0x00000793 jam  0x00000001 , 0x00004dae 
+ 00001264  0x00000794 fetcht  0x00000001 , 0x00004720 
+ 00001265  0x00000795 fetch  0x00000001 , 0x00004703 
+ 00001266  0x00000796 isub  0x00000002 , 0x0000003e 
+ 00001267  0x00000797 rtn  0x00000005 
+ 00001268  0x00000798 fetch  0x00000002 , 0x00004682 
+ 00001269  0x00000799 isolate1  0x0000000b , 0x0000003f 
+ 00001270  0x0000079a call  0x000042d4 , 0x00000001 
+ 00001271  0x0000079b fetch  0x00000002 , 0x00004682 
+ 00001272  0x0000079c isolate1  0x00000007 , 0x0000003f 
+ 00001273  0x0000079d call  0x00004392 , 0x00000001 
+ 00001274  0x0000079e branch  0x000043b8 
+ 00001275  0x000007a2 fetcht  0x00000001 , 0x00004d91 
+ 00001276  0x000007a3 call  0x00000618 
  00001277  0x000007a4 fetcht  0x00000001 , 0x000046ed 
- 00001278  0x000007a5 call  0x00000618 
+ 00001278  0x000007a5 call  0x0000061d 
  00001279  0x000007a6 fetcht  0x00000001 , 0x000046ed 
  00001280  0x000007a7 branch  0x0000681d 
- 00001281  0x000007aa call  0x000004fd 
+ 00001281  0x000007aa call  0x000004fb 
  00001282  0x000007ab nbranch  0x0000050c , 0x00000001 
- 00001283  0x000007ad call  0x000004ee 
+ 00001283  0x000007ad call  0x000004ec 
  00001284  0x000007ae fetch  0x00000001 , 0x000046d9 
  00001285  0x000007af rtneq  0x00000000 
  00001286  0x000007b0 jam  0x00000000 , 0x000046d9 
@@ -1500,8 +1500,8 @@
  00001499  0x000008eb call  0x000005dd 
  00001500  0x000008ec branch  0x00003fa1 
  00001501  0x000008ef fetch  0x00000001 , 0x00004720 
- 00001502  0x000008f0 beq  0x00000001 , 0x0000048f 
- 00001503  0x000008f1 call  0x000004b3 
+ 00001502  0x000008f0 beq  0x00000001 , 0x0000048d 
+ 00001503  0x000008f1 call  0x000004b1 
  00001504  0x000008f2 branch  0x00003f8d 
  00001505  0x000008f5 fetch  0x00000001 , 0x000046e0 
  00001506  0x000008f6 beq  0x00000004 , 0x000005e6 
@@ -26673,7 +26673,7 @@
  00131113  0x00009203 jam  0x00000001 , 0x00004cde 
  00131114  0x00009204 rtn 
  00131115  0x00009207 copy  0x00000002 , 0x0000003f 
- 00131116  0x00009208 beq  0x00000005 , 0x00000475 
+ 00131116  0x00009208 beq  0x00000005 , 0x00000473 
  00131117  0x00009209 branch  0x00004d41 
  00196609  0x0000920e beq  0x00000020 , 0x00030016 
  00196610  0x0000920f beq  0x00000021 , 0x0003002a 
@@ -26715,7 +26715,7 @@
  00196646  0x0000923d fetch  0x00000001 , 0x0000004b 
  00196647  0x0000923e set0  0x00000003 , 0x0000003f 
  00196648  0x0000923f store  0x00000001 , 0x0000004b 
- 00196649  0x00009240 branch  0x00000497 
+ 00196649  0x00009240 branch  0x00000495 
  00196650  0x00009243 force  0x00000002 , 0x0000003f 
  00196651  0x00009244 call  0x00006298 
  00196652  0x00009245 fetch  0x00000001 , 0x00000049 
@@ -27051,7 +27051,7 @@
  00655404  0x0000941e fetch  0x00000004 , 0x00004e26 
  00655405  0x0000941f call  0x000001bc 
  00655406  0x00009420 branch  0x00000115 
- 00655407  0x00009424 call  0x0000048f 
+ 00655407  0x00009424 call  0x0000048d 
  00655408  0x00009425 jam  0x00000001 , 0x0000478b 
  00655409  0x00009426 arg  0x00000003 , 0x00000007 
  00655410  0x00009427 call  0x000043d2 
@@ -27086,7 +27086,7 @@
  00720917  0x00009453 setarg  0x00000009 
  00720918  0x00009454 store  0x00000002 , 0x00004496 
  00720919  0x00009455 store  0x00000002 , 0x00004498 
- 00720920  0x00009456 call  0x0000046d 
+ 00720920  0x00009456 call  0x0000046b 
  00720921  0x00009457 jam  0x00000001 , 0x000047c6 
  00720922  0x00009458 rtn 
  00720923  0x0000945d fetch  0x00000002 , 0x00004682 
@@ -27142,7 +27142,7 @@
  00786449  0x000094a3 fetch  0x00000001 , 0x000047a1 
  00786450  0x000094a4 beq  0x00000001 , 0x000c0014 
  00786451  0x000094a5 branch  0x000c0016 
- 00786452  0x000094a7 call  0x0000046d 
+ 00786452  0x000094a7 call  0x0000046b 
  00786453  0x000094a8 jam  0x0000000a , 0x000046c6 
  00786454  0x000094aa arg  0x00000001 , 0x00000007 
  00786455  0x000094ab branch  0x000041b9 
@@ -27226,6 +27226,6 @@
  00917511  0x00009517 fetch  0x00000001 , 0x000047a1 
  00917512  0x00009518 nbranch  0x000e000a , 0x00000034 
  00917513  0x00009519 jam  0x00000014 , 0x00004d44 
- 00917514  0x0000951b call  0x000004b3 
+ 00917514  0x0000951b call  0x000004b1 
  00917515  0x0000951c call  0x000003db 
  00917516  0x0000951d 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 5895)
+++ /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/bt_program23.list	(working copy)
@@ -1277,245 +1277,245 @@
 0x43f 001643 store 1 ,mem_mouse_tz_data 
 0x440 001644 rtn 
 :      001647 p_mouse_dpi_check:
-0x441 001648 fetcht 1 ,mem_mouse_comm_gpio 
+0x441 001648 fetcht 1 ,mem_dpi_button_gpio 
 0x442 001649 call p_gpio_set_input_pu 
 0x443 001650 fetcht 1 ,mem_dpi_button_gpio 
-0x444 001651 call p_gpio_set_input_pd 
-0x445 001652 fetcht 1 ,mem_dpi_button_gpio 
-0x446 001653 call gpio_get_bit 
-0x447 001654 branch p_mouse_dpi_up ,true 
-0x448 001655 call p_gpio_set_input_pu 
-:      001656 p_mouse_dpi_down:
-0x449 001657 fetch 1 ,mem_mouse_dpi_button_state 
-0x44a 001658 rtneq dpi_button_state_down 
-0x44b 001659 jam dpi_button_state_down ,mem_mouse_dpi_button_state 
-0x44c 001660 fetch 1 ,mem_mouse_dpi 
-0x44d 001661 increase 1 ,pdata 
-0x44e 001662 and pdata ,0x03 ,pdata 
-0x44f 001663 store 1 ,mem_mouse_dpi 
-0x450 001664 increase 3 ,pdata 
-0x451 001665 store 1 ,mem_mouse_multi_led_blink_count 
-0x452 001666 call p_mouse_dpi_multi_led_blink 
-0x453 001667 call p_mouse_store_flash_device_info 
-0x454 001668 branch mouse_seting_dpi 
-:      001669 p_mouse_dpi_up:
-0x455 001670 call p_gpio_set_input_pu 
-0x456 001671 branch mouse_dpi_up 
-:      001673 p_mouse_priority_bb_event:
-0x457 001674 copy regc ,pdata 
-0x458 001675 beq bt_evt_le_connected ,p_mouse_le_bb_event_connected 
-0x459 001676 beq bt_evt_le_disconnected ,p_mouse_le_bb_disconnected 
-0x45a 001677 beq bt_evt_le_enc_info ,p_mouse_le_enc_info 
-0x45b 001678 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
-0x45c 001679 beq bt_evt_le_parse_conn_papa_update_rsp ,p_mouse_le_conn_param_update_rsp_recieved 
-0x45d 001680 beq bt_evt_reconn_failed ,p_mouse_bb_event_reconn_failed 
-0x45e 001681 beq bt_evt_reconn_page_timeout ,p_mouse_bb_event_reconn_timeout 
-0x45f 001682 beq bt_evt_switch_not_accept ,app_bt_role_switch 
-0x460 001683 beq bt_evt_sniff_not_accept ,p_mouse_sniff_not_accept 
-0x461 001684 beq bt_evt_bb_connected ,p_mouse_bb_event_connected 
-0x462 001685 beq bt_evt_bb_disconnected ,p_mouse_bb_event_disconnected 
-0x463 001686 beq bt_evt_switch_success_master ,p_mouse_enter_sniff_check 
-0x464 001687 beq bt_evt_24g_pairing_complete ,p_mouse_24g_pairing_complete 
-0x465 001688 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
-0x466 001689 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-0x467 001690 branch mouse_priority_bb_event + 1 
-:      001692 p_mouse_le_bb_event_connected:
-0x468 001693 jam zcode_d0 ,mem_zcode_temp_param0 
-0x469 001694 branch p_zcode_entrance 
-:      001696 p_mouse_le_bb_disconnected:
-0x46a 001697 call p_mouse_sensor_powerdown_check 
-0x46b 001698 jam zcode_a2 ,mem_zcode_temp_param0 
-0x46c 001699 branch p_zcode_entrance 
-:      001701 p_mouse_le_enc_info:
-:      001702 p_app_updata_le_param:
-0x46d 001703 jam bt_cmd_le_update_conn ,mem_fifo_temp 
-0x46e 001704 branch ui_ipc_send_cmd 
-:      001706 p_mouse_le_ll_start_encryt:
-0x46f 001707 jam zcode_b3 ,mem_zcode_temp_param0 
-0x470 001708 branch p_zcode_entrance 
-:      001710 p_mouse_le_conn_param_update_rsp_recieved:
-0x471 001711 jam zcode_a1 ,mem_zcode_temp_param0 
-0x472 001712 branch p_zcode_entrance 
-:      001715 p_mouse_bb_event_reconn_timeout:
-:      001716 p_mouse_bb_event_reconn_failed:
-0x473 001717 jam zcode_a3 ,mem_zcode_temp_param0 
-0x474 001718 branch p_zcode_entrance 
-:      001720 p_mouse_irtual_cable_unplug:
-0x475 001721 jam zcode_71 ,mem_zcode_temp_param0 
-0x476 001722 branch p_zcode_entrance 
-:      001724 p_mouse_sniff_not_accept:
-0x477 001725 jam zcode_b1 ,mem_zcode_temp_param0 
-0x478 001726 branch p_zcode_entrance 
-:      001728 p_mouse_bb_event_connected:
-0x479 001729 jam 0 ,mem_mouse_connected_state 
-0x47a 001730 jam 0 ,mem_mouse_send_switch_req_timer 
-0x47b 001731 call p_mouse_init_sensor_reset 
-0x47c 001732 branch mouse_stop_discovery 
-:      001734 p_mouse_bb_event_disconnected:
-0x47d 001735 call p_mouse_sensor_powerdown_check 
-0x47e 001736 jam zcode_b4 ,mem_zcode_temp_param0 
-0x47f 001737 branch p_zcode_entrance 
-:      001739 p_mouse_enter_sniff_check:
-0x480 001740 jam zcode_b2 ,mem_zcode_temp_param0 
-0x481 001741 branch p_zcode_entrance 
-:      001743 p_mouse_24g_pairing_complete:
-0x482 001744 jam 0 ,mem_mouse_connected_state 
-0x483 001745 call p_mouse_init_sensor_reset 
-0x484 001746 jam zcode_92 ,mem_zcode_temp_param0 
-0x485 001747 branch p_zcode_entrance 
-:      001749 p_mouse_24g_attempt_fail:
-0x486 001750 jam 1 ,mem_mouse_connected_state 
-0x487 001751 jam 10 ,mem_mouse_multi_led_blink_count 
-0x488 001752 call p_mouse_dpi_multi_led_blink 
-0x489 001754 call p_mouse_sensor_powerdown_check 
-0x48a 001756 jam zcode_a0 ,mem_zcode_temp_param0 
-0x48b 001757 branch p_zcode_entrance 
-:      001759 p_mouse_24g_attempt_success:
-0x48c 001760 jam type_ms ,mem_24g_data_type 
-0x48d 001761 jam 0 ,mem_mouse_connected_state 
-0x48e 001763 call p_mouse_init_sensor_reset 
-:      001764 p_mouse_24g_no_data_timer_init:
-0x48f 001765 fetch 2 ,mem_mouse_24g_no_data_timeout 
-0x490 001766 branch mouse_no_data_timer_init + 1 
-:      001768 p_mouse_before_hibernate:
-0x491 001769 call p_mouse_sensor_powerdown_check 
-0x492 001770 jam zcode_a4 ,mem_zcode_temp_param0 
-0x493 001771 branch p_zcode_entrance 
-:      001773 p_mouse_sensor_powerdown_check:
-0x494 001774 fetch 1 ,mem_mouse_init_sensor_reset_flag 
-0x495 001775 rtn blank 
-0x496 001776 jam 0 ,mem_mouse_init_sensor_reset_flag 
-:      001777 p_mouse_sensor_powerdown:
-0x497 001778 call p_mouse_init_sunt 
-0x498 001779 setarg 0x0806 
-0x499 001784 branch twspi_write 
-:      001786 p_mouse_bb_event_timer:
-0x49a 001787 call p_mouse_adc_read 
-0x49b 001788 call p_mouse_low_voltage_led_timer 
-0x49c 001789 call p_mouse_wheel_trigger_timer 
-0x49d 001790 call p_mouse_select_device_by_button 
-0x49e 001791 call mouse_check_discovery_timeout_timer 
-0x49f 001792 call mouse_check_no_data_timeout_timer 
-0x4a0 001793 call p_mouse_g24_long_sleep_param_update_timer 
-0x4a1 001794 call p_mouse_g24_stop_mode_timeout_timer 
-0x4a2 001795 call p_mouse_check_direct_timeout_timer 
-0x4a3 001796 call p_mouse_le_enable_att_list_timer 
-0x4a4 001797 call p_mouse_le_current_mult_update_timer 
-0x4a5 001798 call p_le_send_smp_security_request_timer 
-0x4a6 001799 call p_mouse_customer_bt_send_empty_packet_timer 
-0x4a7 001800 call p_mouse_send_switch_req_timer 
-0x4a8 001801 call mouse_check_hid_handshake_timer 
-0x4a9 001802 call p_mouse_bt_check_sniff_req_timeout_timer 
-0x4aa 001803 call p_mouse_powerdown_sensor_timer 
-0x4ab 001804 branch p_mouse_multi_led_blink_timer 
-:      001806 p_mouse_powerdown_sensor_timer:
-0x4ac 001807 arg mem_mouse_powerdown_sensor_timer ,regc 
-0x4ad 001808 arg p_mouse_powerdown_sensor_timeout ,regb 
-0x4ae 001809 branch timer_single_step_2b 
-:      001810 p_mouse_powerdown_sensor_timeout:
-0x4af 001811 fetch 1 ,mem_mouse_power_down_flag 
-0x4b0 001812 nrtn blank 
-0x4b1 001813 jam 1 ,mem_mouse_power_down_flag 
-0x4b2 001814 branch p_mouse_sensor_powerdown 
-:      001816 p_mouse_powerdown_sensor_timer_init:
-0x4b3 001817 fetch 2 ,mem_mouse_powerdown_sensor_timeout 
-0x4b4 001818 store 2 ,mem_mouse_powerdown_sensor_timer 
-0x4b5 001819 fetch 1 ,mem_mouse_power_down_flag 
-0x4b6 001820 rtn blank 
-0x4b7 001821 jam 0 ,mem_mouse_power_down_flag 
-0x4b8 001822 branch p_mouse_init_sensor_reset 
-:      001824 p_mouse_send_switch_req_timer:
-0x4b9 001825 arg mem_mouse_send_switch_req_timer ,regc 
-0x4ba 001826 arg host_create_conn_resend ,regb 
-0x4bb 001827 branch timer_single_step 
-:      001829 p_mouse_bt_check_sniff_req_timeout_timer:
-0x4bc 001830 arg mem_mouse_bt_send_first_package_timer ,regc 
-0x4bd 001831 arg p_mouse_bt_send_first_package ,regb 
-0x4be 001832 branch timer_single_step 
-:      001833 p_mouse_bt_send_first_package:
-0x4bf 001834 jam 1 ,mem_mouse_bt_send_first_package_flag 
-0x4c0 001835 rtn 
-:      001838 p_mouse_le_enable_att_list_timer:
-0x4c1 001839 arg mem_le_start_encrypt_timer ,regc 
-0x4c2 001840 arg mouse_le_write_enable ,regb 
-0x4c3 001841 branch timer_single_step 
-:      001843 p_mouse_check_direct_timeout_timer:
-0x4c4 001844 arg mem_mouse_direct_timer ,regc 
-0x4c5 001845 arg p_mouse_check_direct_timeout ,regb 
-0x4c6 001846 branch timer_single_step_2b 
-:      001847 p_mouse_check_direct_timeout:
-0x4c7 001848 fetch 1 ,mem_mouse_multi_led_on_poweron2s_flag 
-0x4c8 001849 nrtn blank 
-0x4c9 001850 branch mouse_check_direct_timeout 
-:      001852 p_mouse_le_current_mult_update_timer:
-0x4ca 001853 arg mem_mouse_le_current_mult_timer ,regc 
-0x4cb 001854 arg p_mouse_le_current_mult_reinit ,regb 
-0x4cc 001855 branch timer_single_step 
-:      001856 p_mouse_le_current_mult_reinit:
-0x4cd 001857 fetch 1 ,mem_lpm_mult_init 
-0x4ce 001858 store 1 ,mem_lpm_mult 
-0x4cf 001859 branch p_mouse_long_mult_flag_enable 
-:      001861 p_mouse_customer_bt_send_empty_packet_timer:
-0x4d0 001862 arg mem_customer_bt_send_empty_packet_timer ,regc 
-0x4d1 001863 arg p_mouse_customer_empty_packet ,regb 
-0x4d2 001864 branch timer_single_step 
-:      001865 p_mouse_customer_empty_packet:
-0x4d3 001866 jam 1 ,mem_customer_bt_start_send_empty_packet 
-0x4d4 001867 rtn 
-:      001869 p_le_send_smp_security_request_timer:
-0x4d5 001870 fetch 1 ,mem_mouse_le_bb_connected_flag 
-0x4d6 001871 rtn blank 
-0x4d7 001872 arg mem_mouse_send_secutiry_request_timer ,regc 
-0x4d8 001873 arg p_le_pairing_sm_start_check ,regb 
-0x4d9 001874 branch timer_single_step 
-:      001875 p_le_pairing_sm_start_check:
-0x4da 001876 fetch 1 ,mem_le_send_security_request_flag 
-0x4db 001877 nrtn blank 
-0x4dc 001878 branch le_pairing_sm_start 
-:      001880 p_mouse_wheel_trigger_timer:
-0x4dd 001881 arg mem_mouse_wheel_trigger_timer ,regc 
-0x4de 001882 arg p_mouse_wheel_trigger_disable ,regb 
-0x4df 001883 branch timer_single_step 
-:      001884 p_mouse_wheel_trigger_disable:
-0x4e0 001885 jam 0 ,mem_mouse_wheel_trigger 
-0x4e1 001886 rtn 
-:      001888 p_mouse_g24_long_sleep_param_update_timer:
-0x4e2 001889 arg mem_24g_long_sleep_param_update_timer ,regc 
-0x4e3 001890 arg p_mouse_g24_long_sleep_normal_param ,regb 
-0x4e4 001891 branch timer_single_step 
-:      001892 p_mouse_g24_long_sleep_normal_param:
-0x4e5 001893 setarg g24_long_sleep_step3 
-0x4e6 001894 store 3 ,mem_24g_enter_hibernate 
-:      001895 p_mouse_long_mult_flag_enable:
-0x4e7 001896 jam 1 ,mem_mouse_long_mult_flag 
-0x4e8 001897 rtn 
-:      001899 p_mouse_g24_stop_mode_timeout_timer:
-0x4e9 001900 arg mem_24g_stop_g24_mode_timeout ,regc 
-0x4ea 001901 arg p_mouse_g24_stop_mode_timeout ,regb 
-0x4eb 001902 branch timer_single_step_2b 
-:      001903 p_mouse_g24_stop_mode_timeout:
-0x4ec 001904 jam 1 ,mem_24g_stop_g24_mode 
-0x4ed 001905 rtn 
-:      001936 p_mouse_bt_discovery_timer:
-0x4ee 001937 arg mem_select_ui_button_count ,regc 
-0x4ef 001938 arg p_mouse_long_button_bt_discovery ,regb 
-0x4f0 001939 branch timer_single_step 
-:      001940 p_mouse_long_button_bt_discovery:
-0x4f1 001941 jam on ,mem_select_device_button_statue_bt_discovery 
-0x4f2 001942 fetcht 1 ,mem_device_flag 
-0x4f3 001943 fetch 1 ,mem_24g_device_number 
-0x4f4 001944 isub temp ,null 
-0x4f5 001945 rtn zero 
-0x4f6 001946 fetch 2 ,mem_ui_state_map 
-0x4f7 001947 isolate1 ui_state_ble_adv ,pdata 
-0x4f8 001948 call mouse_stop_le_adv ,true 
-0x4f9 001949 fetch 2 ,mem_ui_state_map 
-0x4fa 001950 isolate1 ui_state_bt_reconnect ,pdata 
-0x4fb 001951 call mouse_cancel_reconnect ,true 
-0x4fc 001952 branch mouse_long_button_bt_discovry 
-:      001955 p_mouse_get_select_state:
+0x444 001651 call gpio_get_bit 
+0x445 001652 nbranch p_mouse_dpi_up ,true 
+0x446 001653 call p_gpio_set_input_pu 
+:      001654 p_mouse_dpi_down:
+0x447 001655 fetch 1 ,mem_mouse_dpi_button_state 
+0x448 001656 rtneq dpi_button_state_down 
+0x449 001657 jam dpi_button_state_down ,mem_mouse_dpi_button_state 
+0x44a 001658 fetch 1 ,mem_mouse_dpi 
+0x44b 001659 increase 1 ,pdata 
+0x44c 001660 and pdata ,0x03 ,pdata 
+0x44d 001661 store 1 ,mem_mouse_dpi 
+0x44e 001662 increase 3 ,pdata 
+0x44f 001663 store 1 ,mem_mouse_multi_led_blink_count 
+0x450 001664 call p_mouse_dpi_multi_led_blink 
+0x451 001665 call p_mouse_store_flash_device_info 
+0x452 001666 branch mouse_seting_dpi 
+:      001667 p_mouse_dpi_up:
+0x453 001668 call p_gpio_set_input_pu 
+0x454 001669 branch mouse_dpi_up 
+:      001671 p_mouse_priority_bb_event:
+0x455 001672 copy regc ,pdata 
+0x456 001673 beq bt_evt_le_connected ,p_mouse_le_bb_event_connected 
+0x457 001674 beq bt_evt_le_disconnected ,p_mouse_le_bb_disconnected 
+0x458 001675 beq bt_evt_le_enc_info ,p_mouse_le_enc_info 
+0x459 001676 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
+0x45a 001677 beq bt_evt_le_parse_conn_papa_update_rsp ,p_mouse_le_conn_param_update_rsp_recieved 
+0x45b 001678 beq bt_evt_reconn_failed ,p_mouse_bb_event_reconn_failed 
+0x45c 001679 beq bt_evt_reconn_page_timeout ,p_mouse_bb_event_reconn_timeout 
+0x45d 001680 beq bt_evt_switch_not_accept ,app_bt_role_switch 
+0x45e 001681 beq bt_evt_sniff_not_accept ,p_mouse_sniff_not_accept 
+0x45f 001682 beq bt_evt_bb_connected ,p_mouse_bb_event_connected 
+0x460 001683 beq bt_evt_bb_disconnected ,p_mouse_bb_event_disconnected 
+0x461 001684 beq bt_evt_switch_success_master ,p_mouse_enter_sniff_check 
+0x462 001685 beq bt_evt_24g_pairing_complete ,p_mouse_24g_pairing_complete 
+0x463 001686 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+0x464 001687 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+0x465 001688 branch mouse_priority_bb_event + 1 
+:      001690 p_mouse_le_bb_event_connected:
+0x466 001691 jam zcode_d0 ,mem_zcode_temp_param0 
+0x467 001692 branch p_zcode_entrance 
+:      001694 p_mouse_le_bb_disconnected:
+0x468 001695 call p_mouse_sensor_powerdown_check 
+0x469 001696 jam zcode_a2 ,mem_zcode_temp_param0 
+0x46a 001697 branch p_zcode_entrance 
+:      001699 p_mouse_le_enc_info:
+:      001700 p_app_updata_le_param:
+0x46b 001701 jam bt_cmd_le_update_conn ,mem_fifo_temp 
+0x46c 001702 branch ui_ipc_send_cmd 
+:      001704 p_mouse_le_ll_start_encryt:
+0x46d 001705 jam zcode_b3 ,mem_zcode_temp_param0 
+0x46e 001706 branch p_zcode_entrance 
+:      001708 p_mouse_le_conn_param_update_rsp_recieved:
+0x46f 001709 jam zcode_a1 ,mem_zcode_temp_param0 
+0x470 001710 branch p_zcode_entrance 
+:      001713 p_mouse_bb_event_reconn_timeout:
+:      001714 p_mouse_bb_event_reconn_failed:
+0x471 001715 jam zcode_a3 ,mem_zcode_temp_param0 
+0x472 001716 branch p_zcode_entrance 
+:      001718 p_mouse_irtual_cable_unplug:
+0x473 001719 jam zcode_71 ,mem_zcode_temp_param0 
+0x474 001720 branch p_zcode_entrance 
+:      001722 p_mouse_sniff_not_accept:
+0x475 001723 jam zcode_b1 ,mem_zcode_temp_param0 
+0x476 001724 branch p_zcode_entrance 
+:      001726 p_mouse_bb_event_connected:
+0x477 001727 jam 0 ,mem_mouse_connected_state 
+0x478 001728 jam 0 ,mem_mouse_send_switch_req_timer 
+0x479 001729 call p_mouse_init_sensor_reset 
+0x47a 001730 branch mouse_stop_discovery 
+:      001732 p_mouse_bb_event_disconnected:
+0x47b 001733 call p_mouse_sensor_powerdown_check 
+0x47c 001734 jam zcode_b4 ,mem_zcode_temp_param0 
+0x47d 001735 branch p_zcode_entrance 
+:      001737 p_mouse_enter_sniff_check:
+0x47e 001738 jam zcode_b2 ,mem_zcode_temp_param0 
+0x47f 001739 branch p_zcode_entrance 
+:      001741 p_mouse_24g_pairing_complete:
+0x480 001742 jam 0 ,mem_mouse_connected_state 
+0x481 001743 call p_mouse_init_sensor_reset 
+0x482 001744 jam zcode_92 ,mem_zcode_temp_param0 
+0x483 001745 branch p_zcode_entrance 
+:      001747 p_mouse_24g_attempt_fail:
+0x484 001748 jam 1 ,mem_mouse_connected_state 
+0x485 001749 jam 10 ,mem_mouse_multi_led_blink_count 
+0x486 001750 call p_mouse_dpi_multi_led_blink 
+0x487 001752 call p_mouse_sensor_powerdown_check 
+0x488 001754 jam zcode_a0 ,mem_zcode_temp_param0 
+0x489 001755 branch p_zcode_entrance 
+:      001757 p_mouse_24g_attempt_success:
+0x48a 001758 jam type_ms ,mem_24g_data_type 
+0x48b 001759 jam 0 ,mem_mouse_connected_state 
+0x48c 001761 call p_mouse_init_sensor_reset 
+:      001762 p_mouse_24g_no_data_timer_init:
+0x48d 001763 fetch 2 ,mem_mouse_24g_no_data_timeout 
+0x48e 001764 branch mouse_no_data_timer_init + 1 
+:      001766 p_mouse_before_hibernate:
+0x48f 001767 call p_mouse_sensor_powerdown_check 
+0x490 001768 jam zcode_a4 ,mem_zcode_temp_param0 
+0x491 001769 branch p_zcode_entrance 
+:      001771 p_mouse_sensor_powerdown_check:
+0x492 001772 fetch 1 ,mem_mouse_init_sensor_reset_flag 
+0x493 001773 rtn blank 
+0x494 001774 jam 0 ,mem_mouse_init_sensor_reset_flag 
+:      001775 p_mouse_sensor_powerdown:
+0x495 001776 call p_mouse_init_sunt 
+0x496 001777 setarg 0x0806 
+0x497 001782 branch twspi_write 
+:      001784 p_mouse_bb_event_timer:
+0x498 001785 call p_mouse_adc_read 
+0x499 001786 call p_mouse_low_voltage_led_timer 
+0x49a 001787 call p_mouse_wheel_trigger_timer 
+0x49b 001788 call p_mouse_select_device_by_button 
+0x49c 001789 call mouse_check_discovery_timeout_timer 
+0x49d 001790 call mouse_check_no_data_timeout_timer 
+0x49e 001791 call p_mouse_g24_long_sleep_param_update_timer 
+0x49f 001792 call p_mouse_g24_stop_mode_timeout_timer 
+0x4a0 001793 call p_mouse_check_direct_timeout_timer 
+0x4a1 001794 call p_mouse_le_enable_att_list_timer 
+0x4a2 001795 call p_mouse_le_current_mult_update_timer 
+0x4a3 001796 call p_le_send_smp_security_request_timer 
+0x4a4 001797 call p_mouse_customer_bt_send_empty_packet_timer 
+0x4a5 001798 call p_mouse_send_switch_req_timer 
+0x4a6 001799 call mouse_check_hid_handshake_timer 
+0x4a7 001800 call p_mouse_bt_check_sniff_req_timeout_timer 
+0x4a8 001801 call p_mouse_powerdown_sensor_timer 
+0x4a9 001802 branch p_mouse_multi_led_blink_timer 
+:      001804 p_mouse_powerdown_sensor_timer:
+0x4aa 001805 arg mem_mouse_powerdown_sensor_timer ,regc 
+0x4ab 001806 arg p_mouse_powerdown_sensor_timeout ,regb 
+0x4ac 001807 branch timer_single_step_2b 
+:      001808 p_mouse_powerdown_sensor_timeout:
+0x4ad 001809 fetch 1 ,mem_mouse_power_down_flag 
+0x4ae 001810 nrtn blank 
+0x4af 001811 jam 1 ,mem_mouse_power_down_flag 
+0x4b0 001812 branch p_mouse_sensor_powerdown 
+:      001814 p_mouse_powerdown_sensor_timer_init:
+0x4b1 001815 fetch 2 ,mem_mouse_powerdown_sensor_timeout 
+0x4b2 001816 store 2 ,mem_mouse_powerdown_sensor_timer 
+0x4b3 001817 fetch 1 ,mem_mouse_power_down_flag 
+0x4b4 001818 rtn blank 
+0x4b5 001819 jam 0 ,mem_mouse_power_down_flag 
+0x4b6 001820 branch p_mouse_init_sensor_reset 
+:      001822 p_mouse_send_switch_req_timer:
+0x4b7 001823 arg mem_mouse_send_switch_req_timer ,regc 
+0x4b8 001824 arg host_create_conn_resend ,regb 
+0x4b9 001825 branch timer_single_step 
+:      001827 p_mouse_bt_check_sniff_req_timeout_timer:
+0x4ba 001828 arg mem_mouse_bt_send_first_package_timer ,regc 
+0x4bb 001829 arg p_mouse_bt_send_first_package ,regb 
+0x4bc 001830 branch timer_single_step 
+:      001831 p_mouse_bt_send_first_package:
+0x4bd 001832 jam 1 ,mem_mouse_bt_send_first_package_flag 
+0x4be 001833 rtn 
+:      001836 p_mouse_le_enable_att_list_timer:
+0x4bf 001837 arg mem_le_start_encrypt_timer ,regc 
+0x4c0 001838 arg mouse_le_write_enable ,regb 
+0x4c1 001839 branch timer_single_step 
+:      001841 p_mouse_check_direct_timeout_timer:
+0x4c2 001842 arg mem_mouse_direct_timer ,regc 
+0x4c3 001843 arg p_mouse_check_direct_timeout ,regb 
+0x4c4 001844 branch timer_single_step_2b 
+:      001845 p_mouse_check_direct_timeout:
+0x4c5 001846 fetch 1 ,mem_mouse_multi_led_on_poweron2s_flag 
+0x4c6 001847 nrtn blank 
+0x4c7 001848 branch mouse_check_direct_timeout 
+:      001850 p_mouse_le_current_mult_update_timer:
+0x4c8 001851 arg mem_mouse_le_current_mult_timer ,regc 
+0x4c9 001852 arg p_mouse_le_current_mult_reinit ,regb 
+0x4ca 001853 branch timer_single_step 
+:      001854 p_mouse_le_current_mult_reinit:
+0x4cb 001855 fetch 1 ,mem_lpm_mult_init 
+0x4cc 001856 store 1 ,mem_lpm_mult 
+0x4cd 001857 branch p_mouse_long_mult_flag_enable 
+:      001859 p_mouse_customer_bt_send_empty_packet_timer:
+0x4ce 001860 arg mem_customer_bt_send_empty_packet_timer ,regc 
+0x4cf 001861 arg p_mouse_customer_empty_packet ,regb 
+0x4d0 001862 branch timer_single_step 
+:      001863 p_mouse_customer_empty_packet:
+0x4d1 001864 jam 1 ,mem_customer_bt_start_send_empty_packet 
+0x4d2 001865 rtn 
+:      001867 p_le_send_smp_security_request_timer:
+0x4d3 001868 fetch 1 ,mem_mouse_le_bb_connected_flag 
+0x4d4 001869 rtn blank 
+0x4d5 001870 arg mem_mouse_send_secutiry_request_timer ,regc 
+0x4d6 001871 arg p_le_pairing_sm_start_check ,regb 
+0x4d7 001872 branch timer_single_step 
+:      001873 p_le_pairing_sm_start_check:
+0x4d8 001874 fetch 1 ,mem_le_send_security_request_flag 
+0x4d9 001875 nrtn blank 
+0x4da 001876 branch le_pairing_sm_start 
+:      001878 p_mouse_wheel_trigger_timer:
+0x4db 001879 arg mem_mouse_wheel_trigger_timer ,regc 
+0x4dc 001880 arg p_mouse_wheel_trigger_disable ,regb 
+0x4dd 001881 branch timer_single_step 
+:      001882 p_mouse_wheel_trigger_disable:
+0x4de 001883 jam 0 ,mem_mouse_wheel_trigger 
+0x4df 001884 rtn 
+:      001886 p_mouse_g24_long_sleep_param_update_timer:
+0x4e0 001887 arg mem_24g_long_sleep_param_update_timer ,regc 
+0x4e1 001888 arg p_mouse_g24_long_sleep_normal_param ,regb 
+0x4e2 001889 branch timer_single_step 
+:      001890 p_mouse_g24_long_sleep_normal_param:
+0x4e3 001891 setarg g24_long_sleep_step3 
+0x4e4 001892 store 3 ,mem_24g_enter_hibernate 
+:      001893 p_mouse_long_mult_flag_enable:
+0x4e5 001894 jam 1 ,mem_mouse_long_mult_flag 
+0x4e6 001895 rtn 
+:      001897 p_mouse_g24_stop_mode_timeout_timer:
+0x4e7 001898 arg mem_24g_stop_g24_mode_timeout ,regc 
+0x4e8 001899 arg p_mouse_g24_stop_mode_timeout ,regb 
+0x4e9 001900 branch timer_single_step_2b 
+:      001901 p_mouse_g24_stop_mode_timeout:
+0x4ea 001902 jam 1 ,mem_24g_stop_g24_mode 
+0x4eb 001903 rtn 
+:      001934 p_mouse_bt_discovery_timer:
+0x4ec 001935 arg mem_select_ui_button_count ,regc 
+0x4ed 001936 arg p_mouse_long_button_bt_discovery ,regb 
+0x4ee 001937 branch timer_single_step 
+:      001938 p_mouse_long_button_bt_discovery:
+0x4ef 001939 jam on ,mem_select_device_button_statue_bt_discovery 
+0x4f0 001940 fetcht 1 ,mem_device_flag 
+0x4f1 001941 fetch 1 ,mem_24g_device_number 
+0x4f2 001942 isub temp ,null 
+0x4f3 001943 rtn zero 
+0x4f4 001944 fetch 2 ,mem_ui_state_map 
+0x4f5 001945 isolate1 ui_state_ble_adv ,pdata 
+0x4f6 001946 call mouse_stop_le_adv ,true 
+0x4f7 001947 fetch 2 ,mem_ui_state_map 
+0x4f8 001948 isolate1 ui_state_bt_reconnect ,pdata 
+0x4f9 001949 call mouse_cancel_reconnect ,true 
+0x4fa 001950 branch mouse_long_button_bt_discovry 
+:      001953 p_mouse_get_select_state:
+0x4fb 001954 fetcht 1 ,mem_mouse_comm_gpio 
+0x4fc 001955 call p_gpio_set_input_pu 
 0x4fd 001956 fetcht 1 ,mem_config_select_device_button_gpio 
-0x4fe 001957 call p_gpio_set_input_pu 
+0x4fe 001957 call p_gpio_set_input_pd 
 0x4ff 001958 fetcht 1 ,mem_config_select_device_button_gpio 
 0x500 001959 branch gpio_get_bit 
 :      001961 p_mouse_select_device_by_button:
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 5895)
+++ /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/bt_program23.meta	(working copy)
@@ -1645,13 +1645,11 @@
 	
 
 p_mouse_dpi_check:
-	fetcht 1,mem_mouse_comm_gpio
-	call p_gpio_set_input_pu
 	fetcht 1,mem_dpi_button_gpio
-	call p_gpio_set_input_pd
+	call p_gpio_set_input_pu
 	fetcht 1,mem_dpi_button_gpio
 	call gpio_get_bit
-	branch p_mouse_dpi_up,true
+	nbranch p_mouse_dpi_up,true
 	call p_gpio_set_input_pu
 p_mouse_dpi_down:
 	fetch 1,mem_mouse_dpi_button_state
@@ -1953,9 +1951,11 @@
 
 
 p_mouse_get_select_state:
-	fetcht 1,mem_config_select_device_button_gpio
+	fetcht 1,mem_mouse_comm_gpio
 	call p_gpio_set_input_pu
 	fetcht 1,mem_config_select_device_button_gpio
+	call p_gpio_set_input_pd
+	fetcht 1,mem_config_select_device_button_gpio
 	branch gpio_get_bit
 
 p_mouse_select_device_by_button:
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 5895)
+++ /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/bt_program23.rom	(working copy)
@@ -22,20 +22,20 @@
 01100000000000010100000111111001
 01011000000000000000001001111000
 01100000000000010100000111101101
-01011000000000000000010001010111
+01011000000000000000010001010101
 01100000000000010100000111110101
 01011000000000000000001111111001
 01100000000000010100000111110011
-01011000000000000000010010010001
+01011000000000000000010010001111
 01100000000000010100000111101011
-01011000000000000000010010011010
+01011000000000000000010010011000
 01100000000000010100000111111101
 00100000011000000000000000000000
 01011000000000000000000000011001
 01100000000000010100111110001001
 00100100010101011000000000101011
 00100000010000000000001011101110
-00100000010000000000010010010111
+00100000010000000000010010010101
 01101000000000001100011100011111
 01100000000000001100011100011110
 01101000000000001100001001000001
@@ -98,10 +98,10 @@
 11000000011111010000011100110001
 00100000001000000010101010001110
 01110000010011010100011000000000
-00100000010000000000010011111101
+00100000010000000000010011111011
 00100100011000001000000000000000
 00100000010000000111111011000001
-00100000010000000000010011111101
+00100000010000000000010011111011
 00100100011000001000000000000000
 01110000010011010100011000000001
 00100000011000000000000000000000
@@ -1087,13 +1087,11 @@
 00011111111000001111111111111111
 01100000000000001100011010111010
 00100000011000000000000000000000
-01101000000010001100110110010001
-00100000010000000000011000011000
 01101000000010001100011011100111
-00100000010000000000011000011101
+00100000010000000000011000011000
 01101000000010001100011011100111
 00100000010000000110100000011101
-00100000001000001000010001010101
+00100100001000001000010001010011
 00100000010000000000011000011000
 01101000000000001100011010110110
 11000001000000000000000000000000
@@ -1110,25 +1108,25 @@
 00100000010000000000011000011000
 00100000001000000011110101100010
 00011010011000100111111000000000
-11000000000010100000010001101000
-11000000000010101000010001101010
-11000000000101001000010001101101
-11000000000110010000010001101111
-11000000001000000000010001110001
-11000000000000100000010001110011
-11000000000010011000010001110011
+11000000000010100000010001100110
+11000000000010101000010001101000
+11000000000101001000010001101011
+11000000000110010000010001101101
+11000000001000000000010001101111
+11000000000000100000010001110001
+11000000000010011000010001110001
 11000000000011001011001111011111
-11000000000100001000010001110111
-11000000000000001000010001111001
-11000000000000010000010001111101
-11000000000101011000010010000000
-11000000000111001000010010000010
-11000000000111010000010010000110
-11000000000111100000010010001100
+11000000000100001000010001110101
+11000000000000001000010001110111
+11000000000000010000010001111011
+11000000000101011000010001111110
+11000000000111001000010010000000
+11000000000111010000010010000100
+11000000000111100000010010001010
 00100000001000000100000101111101
 01110000000100011100010111010000
 00100000001000000000011111011010
-00100000010000000000010010010100
+00100000010000000000010010010010
 01110000000100011100010110100010
 00100000001000000000011111011010
 01110000000010101001100100010010
@@ -1147,7 +1145,7 @@
 01110000010010011110010000000000
 00100000010000000000001011110110
 00100000001000000100001011001010
-00100000010000000000010010010100
+00100000010000000000010010010010
 01110000000100011100010110110100
 00100000001000000000011111011010
 01110000000100011100010110110010
@@ -1159,7 +1157,7 @@
 01110000010011011001001000000001
 01110000010011010000011100001010
 00100000010000000000011110000011
-00100000010000000000010010010100
+00100000010000000000010010010010
 01110000000100011100010110100000
 00100000001000000000011111011010
 01110000010011100100011100000001
@@ -1167,7 +1165,7 @@
 00100000010000000000001011110110
 01101000000000010100110110111001
 00100000001000000011111110001110
-00100000010000000000010010010100
+00100000010000000000010010010010
 01110000000100011100010110100100
 00100000001000000000011111011010
 01101000000000001100110011011001
@@ -1178,29 +1176,29 @@
 00100000001000000110010000010011
 00100000010000000000010100101011
 00100000010000000000010110001010
-00100000010000000000010011011101
+00100000010000000000010011011011
 00100000010000000000010100000001
 00100000010000000100001000110100
 00100000010000000100001000111010
-00100000010000000000010011100010
-00100000010000000000010011101001
-00100000010000000000010011000100
-00100000010000000000010011000001
-00100000010000000000010011001010
-00100000010000000000010011010101
-00100000010000000000010011010000
-00100000010000000000010010111001
+00100000010000000000010011100000
+00100000010000000000010011100111
+00100000010000000000010011000010
+00100000010000000000010010111111
+00100000010000000000010011001000
+00100000010000000000010011010011
+00100000010000000000010011001110
+00100000010000000000010010110111
 00100000010000000100001000110001
-00100000010000000000010010111100
-00100000010000000000010010101100
+00100000010000000000010010111010
+00100000010000000000010010101010
 00100000001000000000011101001001
 11011010011000000100110110111101
-11011010010000000000010010101111
+11011010010000000000010010101101
 00100000001000000011001101110100
 01101000000000001100110110111111
 00100100011110100000000000000000
 01110000010011011011111100000001
-00100000001000000000010010010111
+00100000001000000000010010010101
 01101000000000010100110110111011
 01100000000000010100110110111101
 01101000000000001100110110111111
@@ -1211,7 +1209,7 @@
 11011010010000000110001101111010
 00100000001000000011001101101101
 11011010011000000100110011100100
-11011010010000000000010010111111
+11011010010000000000010010111101
 00100000001000000011001101101101
 01110000010011001110010100000001
 00100000011000000000000000000000
@@ -1219,49 +1217,49 @@
 11011010010000000011110101100000
 00100000001000000011001101101101
 11011010011000000100011010101110
-11011010010000000000010011000111
+11011010010000000000010011000101
 00100000001000000011001101110100
 01101000000000001100110100001010
 00100100011110100000000000000000
 00100000001000000100001001100110
 11011010011000000100110101000001
-11011010010000000000010011001101
+11011010010000000000010011001011
 00100000001000000011001101101101
 01101000000000001100011111000111
 01100000000000001100000101110010
-00100000001000000000010011100111
+00100000001000000000010011100101
 11011010011000000100110110101010
-11011010010000000000010011010011
+11011010010000000000010011010001
 00100000001000000011001101101101
 01110000010011011010100100000001
 00100000011000000000000000000000
 01101000000000001100110101000011
 00100000011110100000000000000000
 11011010011000000100110101000100
-11011010010000000000010011011010
+11011010010000000000010011011000
 00100000001000000011001101101101
 01101000000000001100110101000101
 00100100011110100000000000000000
 00100000001000000101101111110101
 11011010011000000100100111100010
-11011010010000000000010011100000
+11011010010000000000010011011110
 00100000001000000011001101101101
 01110000010010011110000100000000
 00100000011000000000000000000000
 11011010011000000100110101000010
-11011010010000000000010011100101
+11011010010000000000010011100011
 00100000001000000011001101101101
 01011000000100100100111110000000
 01100000000000011100111001110101
 01110000010011010100000000000001
 00100000011000000000000000000000
 11011010011000000100111110010010
-11011010010000000000010011101100
+11011010010000000000010011101010
 00100000001000000011001101110100
 01110000010011111001000100000001
 00100000011000000000000000000000
 11011010011000000100110100100000
-11011010010000000000010011110001
+11011010010000000000010011101111
 00100000001000000011001101101101
 01110000010011011010111000000001
 01101000000010001100011100100000
@@ -1275,13 +1273,15 @@
 00101111111011111111111000000111
 00100000010000001100001110010010
 00100000001000000100001110111000
-01101000000010001100011011101101
+01101000000010001100110110010001
 00100000010000000000011000011000
 01101000000010001100011011101101
+00100000010000000000011000011101
+01101000000010001100011011101101
 00100000001000000110100000011101
-00100000010000000000010011111101
+00100000010000000000010011111011
 00100100001000001000010100001100
-00100000010000000000010011101110
+00100000010000000000010011101100
 01101000000000001100011011011001
 11000001000000000000000000000000
 01110000010001101101100100000000
@@ -1500,8 +1500,8 @@
 00100000010000000000010111011101
 00100000001000000011111110100001
 01101000000000001100011100100000
-11000000000000001000010010001111
-00100000010000000000010010110011
+11000000000000001000010010001101
+00100000010000000000010010110001
 00100000001000000011111110001101
 01101000000000001100011011100000
 11000000000000100000010111100110
@@ -131114,7 +131114,7 @@
 01110000010011001101111000000001
 00100000011000000000000000000000
 00011000010000100111111000000000
-11000000000000101000010001110101
+11000000000000101000010001110011
 00100000001000000100110101000001
                                 
                                 
@@ -196647,7 +196647,7 @@
 01101000000000001000000001001011
 01111001001111111111111000000011
 01100000000000001000000001001011
-00100000001000000000010010010111
+00100000001000000000010010010101
 00011000000000000111111000000010
 00100000010000000110001010011000
 01101000000000001000000001001001
@@ -655405,7 +655405,7 @@
 01101000000000100100111000100110
 00100000010000000000000110111100
 00100000001000000000000100010101
-00100000010000000000010010001111
+00100000010000000000010010001101
 01110000010001111000101100000001
 11011000111000000000000000000011
 00100000010000000100001111010010
@@ -720918,7 +720918,7 @@
 01011000000000000000000000001001
 01100000000000010100010010010110
 01100000000000010100010010011000
-00100000010000000000010001101101
+00100000010000000000010001101011
 01110000010001111100011000000001
 00100000011000000000000000000000
 01101000000000010100011010000010
@@ -786450,7 +786450,7 @@
 01101000000000001100011110100001
 11000000000000001000000000010100
 00100000001000000000000000010110
-00100000010000000000010001101101
+00100000010000000000010001101011
 01110000010001101100011000001010
 11011000111000000000000000000001
 00100000001000000100000110111001
@@ -917512,6 +917512,6 @@
 01101000000000001100011110100001
 00100100001110100000000000001010
 01110000010011010100010000010100
-00100000010000000000010010110011
+00100000010000000000010010110001
 00100000010000000000001111011011
 00100000001000000100000111000011
Index: output/flash.dat
===================================================================
--- /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/flash.dat	(revision 5895)
+++ /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/flash.dat	(working copy)
@@ -103,7 +103,7 @@
 58
 00
 04
-57
+55
 60
 01
 41
@@ -119,7 +119,7 @@
 58
 00
 04
-91
+8f
 60
 01
 41
@@ -127,7 +127,7 @@
 58
 00
 04
-9a
+98
 60
 01
 41
@@ -155,7 +155,7 @@
 20
 40
 04
-97
+95
 68
 00
 c7
@@ -407,7 +407,7 @@
 20
 40
 04
-fd
+fb
 24
 60
 80
@@ -419,7 +419,7 @@
 20
 40
 04
-fd
+fb
 24
 60
 80
@@ -4362,20 +4362,12 @@
 00
 68
 08
-cd
-91
-20
-40
-06
-18
-68
-08
 c6
 e7
 20
 40
 06
-1d
+18
 68
 08
 c6
@@ -4384,10 +4376,10 @@
 40
 68
 1d
-20
+24
 20
 84
-55
+53
 20
 40
 06
@@ -4455,31 +4447,31 @@
 c0
 0a
 04
-68
+66
 c0
 0a
 84
-6a
+68
 c0
 14
 84
-6d
+6b
 c0
 19
 04
-6f
+6d
 c0
 20
 04
-71
+6f
 c0
 02
 04
-73
+71
 c0
 09
 84
-73
+71
 c0
 0c
 b3
@@ -4487,31 +4479,31 @@
 c0
 10
 84
-77
+75
 c0
 00
 84
-79
+77
 c0
 01
 04
-7d
+7b
 c0
 15
 84
-80
+7e
 c0
 1c
 84
-82
+80
 c0
 1d
 04
-86
+84
 c0
 1e
 04
-8c
+8a
 20
 20
 41
@@ -4527,7 +4519,7 @@
 20
 40
 04
-94
+92
 70
 11
 c5
@@ -4603,7 +4595,7 @@
 20
 40
 04
-94
+92
 70
 11
 c5
@@ -4651,7 +4643,7 @@
 20
 40
 04
-94
+92
 70
 11
 c5
@@ -4683,7 +4675,7 @@
 20
 40
 04
-94
+92
 70
 11
 c5
@@ -4727,7 +4719,7 @@
 20
 40
 04
-dd
+db
 20
 40
 05
@@ -4743,35 +4735,35 @@
 20
 40
 04
-e2
+e0
 20
 40
 04
-e9
+e7
 20
 40
 04
-c4
+c2
 20
 40
 04
-c1
+bf
 20
 40
 04
-ca
+c8
 20
 40
 04
-d5
+d3
 20
 40
 04
-d0
+ce
 20
 40
 04
-b9
+b7
 20
 40
 42
@@ -4779,11 +4771,11 @@
 20
 40
 04
-bc
+ba
 20
 40
 04
-ac
+aa
 20
 20
 07
@@ -4795,7 +4787,7 @@
 da
 40
 04
-af
+ad
 20
 20
 33
@@ -4815,7 +4807,7 @@
 20
 20
 04
-97
+95
 68
 01
 4d
@@ -4859,7 +4851,7 @@
 da
 40
 04
-bf
+bd
 20
 20
 33
@@ -4891,7 +4883,7 @@
 da
 40
 04
-c7
+c5
 20
 20
 33
@@ -4915,7 +4907,7 @@
 da
 40
 04
-cd
+cb
 20
 20
 33
@@ -4931,7 +4923,7 @@
 20
 20
 04
-e7
+e5
 da
 60
 4d
@@ -4939,7 +4931,7 @@
 da
 40
 04
-d3
+d1
 20
 20
 33
@@ -4967,7 +4959,7 @@
 da
 40
 04
-da
+d8
 20
 20
 33
@@ -4991,7 +4983,7 @@
 da
 40
 04
-e0
+de
 20
 20
 33
@@ -5011,7 +5003,7 @@
 da
 40
 04
-e5
+e3
 20
 20
 33
@@ -5039,7 +5031,7 @@
 da
 40
 04
-ec
+ea
 20
 20
 33
@@ -5059,7 +5051,7 @@
 da
 40
 04
-f1
+ef
 20
 20
 33
@@ -5114,12 +5106,20 @@
 b8
 68
 08
+cd
+91
+20
+40
+06
+18
+68
+08
 c6
 ed
 20
 40
 06
-18
+1d
 68
 08
 c6
@@ -5131,7 +5131,7 @@
 20
 40
 04
-fd
+fb
 24
 20
 85
@@ -5139,7 +5139,7 @@
 20
 40
 04
-ee
+ec
 68
 00
 c6
@@ -6015,11 +6015,11 @@
 c0
 00
 84
-8f
+8d
 20
 40
 04
-b3
+b1
 20
 20
 3f
@@ -8176,8 +8176,8 @@
 20
 00
 01
-e9
-ea
+64
+a0
 aa
 55
 08
@@ -8784,13 +8784,13 @@
 02
 03
 02
-07
+1f
 1b
 1c
 05
 1e
 ff
-1f
+07
 ff
 ff
 04
@@ -9828,7 +9828,7 @@
 20
 40
 04
-b3
+b1
 20
 40
 03
@@ -10380,7 +10380,7 @@
 20
 40
 04
-6d
+6b
 70
 46
 c6
@@ -10652,7 +10652,7 @@
 20
 40
 04
-6d
+6b
 70
 47
 c6
@@ -11000,7 +11000,7 @@
 20
 40
 04
-8f
+8d
 70
 47
 8b
@@ -12768,7 +12768,7 @@
 20
 20
 04
-97
+95
 18
 00
 7e
@@ -13036,7 +13036,7 @@
 c0
 02
 84
-75
+73
 20
 20
 4d
@@ -13373,5 +13373,5 @@
 55
 00
 00
-7c
-44
+eb
+7b
Index: output/program.lis
===================================================================
--- /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/program.lis	(revision 5895)
+++ /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/program.lis	(working copy)
@@ -34,13 +34,13 @@
 0015 600141f9 store 2 ,mem_cb_att_write 
 0016 58000278 setarg p_mouse_before_lpm 
 0017 600141ed store 2 ,mem_cb_before_lpm 
-0018 58000457 setarg p_mouse_priority_bb_event 
+0018 58000455 setarg p_mouse_priority_bb_event 
 0019 600141f5 store 2 ,mem_cb_bb_event_process 
 001a 580003f9 setarg p_mouse_idle 
 001b 600141f3 store 2 ,mem_cb_idle_process 
-001c 58000491 setarg p_mouse_before_hibernate 
+001c 5800048f setarg p_mouse_before_hibernate 
 001d 600141eb store 2 ,mem_cb_before_hibernate 
-001e 5800049a setarg p_mouse_bb_event_timer 
+001e 58000498 setarg p_mouse_bb_event_timer 
 001f 600141fd store 2 ,mem_cb_event_timer 
 0020 20600000 rtn 
 
@@ -49,7 +49,7 @@
 0022 60014f89 store 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
 0023 2455802b ncall p_mouse_24g_transmit_by_interrupt_exit_count_max ,wake 
 0024 204002ee call p_mouse_init_sunt 
-0025 20400497 call p_mouse_sensor_powerdown 
+0025 20400495 call p_mouse_sensor_powerdown 
 
 p_mouse_wakeup_no_from_power:
 0026 6800c71f fetch 1 ,mem_reconn_times_init 
@@ -122,10 +122,10 @@
 
 p_mouse_select_device_button_wakeup_check:
 0063 704d4600 jam 0 ,mem_mouse_select_device_button_wakeup_flag 
-0064 204004fd call p_mouse_get_select_state 
+0064 204004fb call p_mouse_get_select_state 
 0065 24608000 nrtn true 
 0066 20407ec1 call delay_10ms 
-0067 204004fd call p_mouse_get_select_state 
+0067 204004fb call p_mouse_get_select_state 
 0068 24608000 nrtn true 
 0069 704d4601 jam 1 ,mem_mouse_select_device_button_wakeup_flag 
 006a 20600000 rtn 
@@ -1465,303 +1465,303 @@
 0440 20600000 rtn 
 
 p_mouse_dpi_check:
-0441 6808cd91 fetcht 1 ,mem_mouse_comm_gpio 
+0441 6808c6e7 fetcht 1 ,mem_dpi_button_gpio 
 0442 20400618 call p_gpio_set_input_pu 
 0443 6808c6e7 fetcht 1 ,mem_dpi_button_gpio 
-0444 2040061d call p_gpio_set_input_pd 
-0445 6808c6e7 fetcht 1 ,mem_dpi_button_gpio 
-0446 2040681d call gpio_get_bit 
-0447 20208455 branch p_mouse_dpi_up ,true 
-0448 20400618 call p_gpio_set_input_pu 
+0444 2040681d call gpio_get_bit 
+0445 24208453 nbranch p_mouse_dpi_up ,true 
+0446 20400618 call p_gpio_set_input_pu 
 
 p_mouse_dpi_down:
-0449 6800c6b6 fetch 1 ,mem_mouse_dpi_button_state 
-044a c1000000 rtneq dpi_button_state_down 
-044b 7046b600 jam dpi_button_state_down ,mem_mouse_dpi_button_state 
-044c 6800c77a fetch 1 ,mem_mouse_dpi 
-044d 1fe0fe01 increase 1 ,pdata 
-044e 1fe17e03 and pdata ,0x03 ,pdata 
-044f 6000c77a store 1 ,mem_mouse_dpi 
-0450 1fe0fe03 increase 3 ,pdata 
-0451 6000cd07 store 1 ,mem_mouse_multi_led_blink_count 
-0452 20400783 call p_mouse_dpi_multi_led_blink 
-0453 20400322 call p_mouse_store_flash_device_info 
-0454 20203d7e branch mouse_seting_dpi 
+0447 6800c6b6 fetch 1 ,mem_mouse_dpi_button_state 
+0448 c1000000 rtneq dpi_button_state_down 
+0449 7046b600 jam dpi_button_state_down ,mem_mouse_dpi_button_state 
+044a 6800c77a fetch 1 ,mem_mouse_dpi 
+044b 1fe0fe01 increase 1 ,pdata 
+044c 1fe17e03 and pdata ,0x03 ,pdata 
+044d 6000c77a store 1 ,mem_mouse_dpi 
+044e 1fe0fe03 increase 3 ,pdata 
+044f 6000cd07 store 1 ,mem_mouse_multi_led_blink_count 
+0450 20400783 call p_mouse_dpi_multi_led_blink 
+0451 20400322 call p_mouse_store_flash_device_info 
+0452 20203d7e branch mouse_seting_dpi 
 
 p_mouse_dpi_up:
-0455 20400618 call p_gpio_set_input_pu 
-0456 20203d62 branch mouse_dpi_up 
+0453 20400618 call p_gpio_set_input_pu 
+0454 20203d62 branch mouse_dpi_up 
 
 p_mouse_priority_bb_event:
-0457 1a627e00 copy regc ,pdata 
-0458 c00a0468 beq bt_evt_le_connected ,p_mouse_le_bb_event_connected 
-0459 c00a846a beq bt_evt_le_disconnected ,p_mouse_le_bb_disconnected 
-045a c014846d beq bt_evt_le_enc_info ,p_mouse_le_enc_info 
-045b c019046f beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
-045c c0200471 beq bt_evt_le_parse_conn_papa_update_rsp ,p_mouse_le_conn_param_update_rsp_recieved 
-045d c0020473 beq bt_evt_reconn_failed ,p_mouse_bb_event_reconn_failed 
-045e c0098473 beq bt_evt_reconn_page_timeout ,p_mouse_bb_event_reconn_timeout 
-045f c00cb3df beq bt_evt_switch_not_accept ,app_bt_role_switch 
-0460 c0108477 beq bt_evt_sniff_not_accept ,p_mouse_sniff_not_accept 
-0461 c0008479 beq bt_evt_bb_connected ,p_mouse_bb_event_connected 
-0462 c001047d beq bt_evt_bb_disconnected ,p_mouse_bb_event_disconnected 
-0463 c0158480 beq bt_evt_switch_success_master ,p_mouse_enter_sniff_check 
-0464 c01c8482 beq bt_evt_24g_pairing_complete ,p_mouse_24g_pairing_complete 
-0465 c01d0486 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
-0466 c01e048c beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-0467 2020417d branch mouse_priority_bb_event + 1 
+0455 1a627e00 copy regc ,pdata 
+0456 c00a0466 beq bt_evt_le_connected ,p_mouse_le_bb_event_connected 
+0457 c00a8468 beq bt_evt_le_disconnected ,p_mouse_le_bb_disconnected 
+0458 c014846b beq bt_evt_le_enc_info ,p_mouse_le_enc_info 
+0459 c019046d beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
+045a c020046f beq bt_evt_le_parse_conn_papa_update_rsp ,p_mouse_le_conn_param_update_rsp_recieved 
+045b c0020471 beq bt_evt_reconn_failed ,p_mouse_bb_event_reconn_failed 
+045c c0098471 beq bt_evt_reconn_page_timeout ,p_mouse_bb_event_reconn_timeout 
+045d c00cb3df beq bt_evt_switch_not_accept ,app_bt_role_switch 
+045e c0108475 beq bt_evt_sniff_not_accept ,p_mouse_sniff_not_accept 
+045f c0008477 beq bt_evt_bb_connected ,p_mouse_bb_event_connected 
+0460 c001047b beq bt_evt_bb_disconnected ,p_mouse_bb_event_disconnected 
+0461 c015847e beq bt_evt_switch_success_master ,p_mouse_enter_sniff_check 
+0462 c01c8480 beq bt_evt_24g_pairing_complete ,p_mouse_24g_pairing_complete 
+0463 c01d0484 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+0464 c01e048a beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+0465 2020417d branch mouse_priority_bb_event + 1 
 
 p_mouse_le_bb_event_connected:
-0468 7011c5d0 jam zcode_d0 ,mem_zcode_temp_param0 
-0469 202007da branch p_zcode_entrance 
+0466 7011c5d0 jam zcode_d0 ,mem_zcode_temp_param0 
+0467 202007da branch p_zcode_entrance 
 
 p_mouse_le_bb_disconnected:
-046a 20400494 call p_mouse_sensor_powerdown_check 
-046b 7011c5a2 jam zcode_a2 ,mem_zcode_temp_param0 
-046c 202007da branch p_zcode_entrance 
+0468 20400492 call p_mouse_sensor_powerdown_check 
+0469 7011c5a2 jam zcode_a2 ,mem_zcode_temp_param0 
+046a 202007da branch p_zcode_entrance 
 
 p_mouse_le_enc_info:
 
 p_app_updata_le_param:
-046d 700a9912 jam bt_cmd_le_update_conn ,mem_fifo_temp 
-046e 20207d8f branch ui_ipc_send_cmd 
+046b 700a9912 jam bt_cmd_le_update_conn ,mem_fifo_temp 
+046c 20207d8f branch ui_ipc_send_cmd 
 
 p_mouse_le_ll_start_encryt:
-046f 7011c5b3 jam zcode_b3 ,mem_zcode_temp_param0 
-0470 202007da branch p_zcode_entrance 
+046d 7011c5b3 jam zcode_b3 ,mem_zcode_temp_param0 
+046e 202007da branch p_zcode_entrance 
 
 p_mouse_le_conn_param_update_rsp_recieved:
-0471 7011c5a1 jam zcode_a1 ,mem_zcode_temp_param0 
-0472 202007da branch p_zcode_entrance 
+046f 7011c5a1 jam zcode_a1 ,mem_zcode_temp_param0 
+0470 202007da branch p_zcode_entrance 
 
 p_mouse_bb_event_reconn_timeout:
 
 p_mouse_bb_event_reconn_failed:
-0473 7011c5a3 jam zcode_a3 ,mem_zcode_temp_param0 
-0474 202007da branch p_zcode_entrance 
+0471 7011c5a3 jam zcode_a3 ,mem_zcode_temp_param0 
+0472 202007da branch p_zcode_entrance 
 
 p_mouse_irtual_cable_unplug:
-0475 7011c571 jam zcode_71 ,mem_zcode_temp_param0 
-0476 202007da branch p_zcode_entrance 
+0473 7011c571 jam zcode_71 ,mem_zcode_temp_param0 
+0474 202007da branch p_zcode_entrance 
 
 p_mouse_sniff_not_accept:
-0477 7011c5b1 jam zcode_b1 ,mem_zcode_temp_param0 
-0478 202007da branch p_zcode_entrance 
+0475 7011c5b1 jam zcode_b1 ,mem_zcode_temp_param0 
+0476 202007da branch p_zcode_entrance 
 
 p_mouse_bb_event_connected:
-0479 704d9200 jam 0 ,mem_mouse_connected_state 
-047a 7049e400 jam 0 ,mem_mouse_send_switch_req_timer 
-047b 204002f6 call p_mouse_init_sensor_reset 
-047c 202042ca branch mouse_stop_discovery 
+0477 704d9200 jam 0 ,mem_mouse_connected_state 
+0478 7049e400 jam 0 ,mem_mouse_send_switch_req_timer 
+0479 204002f6 call p_mouse_init_sensor_reset 
+047a 202042ca branch mouse_stop_discovery 
 
 p_mouse_bb_event_disconnected:
-047d 20400494 call p_mouse_sensor_powerdown_check 
-047e 7011c5b4 jam zcode_b4 ,mem_zcode_temp_param0 
-047f 202007da branch p_zcode_entrance 
+047b 20400492 call p_mouse_sensor_powerdown_check 
+047c 7011c5b4 jam zcode_b4 ,mem_zcode_temp_param0 
+047d 202007da branch p_zcode_entrance 
 
 p_mouse_enter_sniff_check:
-0480 7011c5b2 jam zcode_b2 ,mem_zcode_temp_param0 
-0481 202007da branch p_zcode_entrance 
+047e 7011c5b2 jam zcode_b2 ,mem_zcode_temp_param0 
+047f 202007da branch p_zcode_entrance 
 
 p_mouse_24g_pairing_complete:
-0482 704d9200 jam 0 ,mem_mouse_connected_state 
-0483 204002f6 call p_mouse_init_sensor_reset 
-0484 7011c592 jam zcode_92 ,mem_zcode_temp_param0 
-0485 202007da branch p_zcode_entrance 
+0480 704d9200 jam 0 ,mem_mouse_connected_state 
+0481 204002f6 call p_mouse_init_sensor_reset 
+0482 7011c592 jam zcode_92 ,mem_zcode_temp_param0 
+0483 202007da branch p_zcode_entrance 
 
 p_mouse_24g_attempt_fail:
-0486 704d9201 jam 1 ,mem_mouse_connected_state 
-0487 704d070a jam 10 ,mem_mouse_multi_led_blink_count 
-0488 20400783 call p_mouse_dpi_multi_led_blink 
-0489 20400494 call p_mouse_sensor_powerdown_check 
-048a 7011c5a0 jam zcode_a0 ,mem_zcode_temp_param0 
-048b 202007da branch p_zcode_entrance 
+0484 704d9201 jam 1 ,mem_mouse_connected_state 
+0485 704d070a jam 10 ,mem_mouse_multi_led_blink_count 
+0486 20400783 call p_mouse_dpi_multi_led_blink 
+0487 20400492 call p_mouse_sensor_powerdown_check 
+0488 7011c5a0 jam zcode_a0 ,mem_zcode_temp_param0 
+0489 202007da branch p_zcode_entrance 
 
 p_mouse_24g_attempt_success:
-048c 704e4701 jam type_ms ,mem_24g_data_type 
-048d 704d9200 jam 0 ,mem_mouse_connected_state 
-048e 204002f6 call p_mouse_init_sensor_reset 
+048a 704e4701 jam type_ms ,mem_24g_data_type 
+048b 704d9200 jam 0 ,mem_mouse_connected_state 
+048c 204002f6 call p_mouse_init_sensor_reset 
 
 p_mouse_24g_no_data_timer_init:
-048f 68014db9 fetch 2 ,mem_mouse_24g_no_data_timeout 
-0490 20203f8e branch mouse_no_data_timer_init + 1 
+048d 68014db9 fetch 2 ,mem_mouse_24g_no_data_timeout 
+048e 20203f8e branch mouse_no_data_timer_init + 1 
 
 p_mouse_before_hibernate:
-0491 20400494 call p_mouse_sensor_powerdown_check 
-0492 7011c5a4 jam zcode_a4 ,mem_zcode_temp_param0 
-0493 202007da branch p_zcode_entrance 
+048f 20400492 call p_mouse_sensor_powerdown_check 
+0490 7011c5a4 jam zcode_a4 ,mem_zcode_temp_param0 
+0491 202007da branch p_zcode_entrance 
 
 p_mouse_sensor_powerdown_check:
-0494 6800ccd9 fetch 1 ,mem_mouse_init_sensor_reset_flag 
-0495 207a0000 rtn blank 
-0496 704cd900 jam 0 ,mem_mouse_init_sensor_reset_flag 
+0492 6800ccd9 fetch 1 ,mem_mouse_init_sensor_reset_flag 
+0493 207a0000 rtn blank 
+0494 704cd900 jam 0 ,mem_mouse_init_sensor_reset_flag 
 
 p_mouse_sensor_powerdown:
-0497 204002ee call p_mouse_init_sunt 
-0498 58000806 setarg 0x0806 
-0499 20206413 branch twspi_write 
+0495 204002ee call p_mouse_init_sunt 
+0496 58000806 setarg 0x0806 
+0497 20206413 branch twspi_write 
 
 p_mouse_bb_event_timer:
-049a 2040052b call p_mouse_adc_read 
-049b 2040058a call p_mouse_low_voltage_led_timer 
-049c 204004dd call p_mouse_wheel_trigger_timer 
-049d 20400501 call p_mouse_select_device_by_button 
-049e 20404234 call mouse_check_discovery_timeout_timer 
-049f 2040423a call mouse_check_no_data_timeout_timer 
-04a0 204004e2 call p_mouse_g24_long_sleep_param_update_timer 
-04a1 204004e9 call p_mouse_g24_stop_mode_timeout_timer 
-04a2 204004c4 call p_mouse_check_direct_timeout_timer 
-04a3 204004c1 call p_mouse_le_enable_att_list_timer 
-04a4 204004ca call p_mouse_le_current_mult_update_timer 
-04a5 204004d5 call p_le_send_smp_security_request_timer 
-04a6 204004d0 call p_mouse_customer_bt_send_empty_packet_timer 
-04a7 204004b9 call p_mouse_send_switch_req_timer 
-04a8 20404231 call mouse_check_hid_handshake_timer 
-04a9 204004bc call p_mouse_bt_check_sniff_req_timeout_timer 
-04aa 204004ac call p_mouse_powerdown_sensor_timer 
-04ab 20200749 branch p_mouse_multi_led_blink_timer 
+0498 2040052b call p_mouse_adc_read 
+0499 2040058a call p_mouse_low_voltage_led_timer 
+049a 204004db call p_mouse_wheel_trigger_timer 
+049b 20400501 call p_mouse_select_device_by_button 
+049c 20404234 call mouse_check_discovery_timeout_timer 
+049d 2040423a call mouse_check_no_data_timeout_timer 
+049e 204004e0 call p_mouse_g24_long_sleep_param_update_timer 
+049f 204004e7 call p_mouse_g24_stop_mode_timeout_timer 
+04a0 204004c2 call p_mouse_check_direct_timeout_timer 
+04a1 204004bf call p_mouse_le_enable_att_list_timer 
+04a2 204004c8 call p_mouse_le_current_mult_update_timer 
+04a3 204004d3 call p_le_send_smp_security_request_timer 
+04a4 204004ce call p_mouse_customer_bt_send_empty_packet_timer 
+04a5 204004b7 call p_mouse_send_switch_req_timer 
+04a6 20404231 call mouse_check_hid_handshake_timer 
+04a7 204004ba call p_mouse_bt_check_sniff_req_timeout_timer 
+04a8 204004aa call p_mouse_powerdown_sensor_timer 
+04a9 20200749 branch p_mouse_multi_led_blink_timer 
 
 p_mouse_powerdown_sensor_timer:
-04ac da604dbd arg mem_mouse_powerdown_sensor_timer ,regc 
-04ad da4004af arg p_mouse_powerdown_sensor_timeout ,regb 
-04ae 20203374 branch timer_single_step_2b 
+04aa da604dbd arg mem_mouse_powerdown_sensor_timer ,regc 
+04ab da4004ad arg p_mouse_powerdown_sensor_timeout ,regb 
+04ac 20203374 branch timer_single_step_2b 
 
 p_mouse_powerdown_sensor_timeout:
-04af 6800cdbf fetch 1 ,mem_mouse_power_down_flag 
-04b0 247a0000 nrtn blank 
-04b1 704dbf01 jam 1 ,mem_mouse_power_down_flag 
-04b2 20200497 branch p_mouse_sensor_powerdown 
+04ad 6800cdbf fetch 1 ,mem_mouse_power_down_flag 
+04ae 247a0000 nrtn blank 
+04af 704dbf01 jam 1 ,mem_mouse_power_down_flag 
+04b0 20200495 branch p_mouse_sensor_powerdown 
 
 p_mouse_powerdown_sensor_timer_init:
-04b3 68014dbb fetch 2 ,mem_mouse_powerdown_sensor_timeout 
-04b4 60014dbd store 2 ,mem_mouse_powerdown_sensor_timer 
-04b5 6800cdbf fetch 1 ,mem_mouse_power_down_flag 
-04b6 207a0000 rtn blank 
-04b7 704dbf00 jam 0 ,mem_mouse_power_down_flag 
-04b8 202002f6 branch p_mouse_init_sensor_reset 
+04b1 68014dbb fetch 2 ,mem_mouse_powerdown_sensor_timeout 
+04b2 60014dbd store 2 ,mem_mouse_powerdown_sensor_timer 
+04b3 6800cdbf fetch 1 ,mem_mouse_power_down_flag 
+04b4 207a0000 rtn blank 
+04b5 704dbf00 jam 0 ,mem_mouse_power_down_flag 
+04b6 202002f6 branch p_mouse_init_sensor_reset 
 
 p_mouse_send_switch_req_timer:
-04b9 da6049e4 arg mem_mouse_send_switch_req_timer ,regc 
-04ba da40637a arg host_create_conn_resend ,regb 
-04bb 2020336d branch timer_single_step 
+04b7 da6049e4 arg mem_mouse_send_switch_req_timer ,regc 
+04b8 da40637a arg host_create_conn_resend ,regb 
+04b9 2020336d branch timer_single_step 
 
 p_mouse_bt_check_sniff_req_timeout_timer:
-04bc da604ce4 arg mem_mouse_bt_send_first_package_timer ,regc 
-04bd da4004bf arg p_mouse_bt_send_first_package ,regb 
-04be 2020336d branch timer_single_step 
+04ba da604ce4 arg mem_mouse_bt_send_first_package_timer ,regc 
+04bb da4004bd arg p_mouse_bt_send_first_package ,regb 
+04bc 2020336d branch timer_single_step 
 
 p_mouse_bt_send_first_package:
-04bf 704ce501 jam 1 ,mem_mouse_bt_send_first_package_flag 
-04c0 20600000 rtn 
+04bd 704ce501 jam 1 ,mem_mouse_bt_send_first_package_flag 
+04be 20600000 rtn 
 
 p_mouse_le_enable_att_list_timer:
-04c1 da6046c6 arg mem_le_start_encrypt_timer ,regc 
-04c2 da403d60 arg mouse_le_write_enable ,regb 
-04c3 2020336d branch timer_single_step 
+04bf da6046c6 arg mem_le_start_encrypt_timer ,regc 
+04c0 da403d60 arg mouse_le_write_enable ,regb 
+04c1 2020336d branch timer_single_step 
 
 p_mouse_check_direct_timeout_timer:
-04c4 da6046ae arg mem_mouse_direct_timer ,regc 
-04c5 da4004c7 arg p_mouse_check_direct_timeout ,regb 
-04c6 20203374 branch timer_single_step_2b 
+04c2 da6046ae arg mem_mouse_direct_timer ,regc 
+04c3 da4004c5 arg p_mouse_check_direct_timeout ,regb 
+04c4 20203374 branch timer_single_step_2b 
 
 p_mouse_check_direct_timeout:
-04c7 6800cd0a fetch 1 ,mem_mouse_multi_led_on_poweron2s_flag 
-04c8 247a0000 nrtn blank 
-04c9 20204266 branch mouse_check_direct_timeout 
+04c5 6800cd0a fetch 1 ,mem_mouse_multi_led_on_poweron2s_flag 
+04c6 247a0000 nrtn blank 
+04c7 20204266 branch mouse_check_direct_timeout 
 
 p_mouse_le_current_mult_update_timer:
-04ca da604d41 arg mem_mouse_le_current_mult_timer ,regc 
-04cb da4004cd arg p_mouse_le_current_mult_reinit ,regb 
-04cc 2020336d branch timer_single_step 
+04c8 da604d41 arg mem_mouse_le_current_mult_timer ,regc 
+04c9 da4004cb arg p_mouse_le_current_mult_reinit ,regb 
+04ca 2020336d branch timer_single_step 
 
 p_mouse_le_current_mult_reinit:
-04cd 6800c7c7 fetch 1 ,mem_lpm_mult_init 
-04ce 6000c172 store 1 ,mem_lpm_mult 
-04cf 202004e7 branch p_mouse_long_mult_flag_enable 
+04cb 6800c7c7 fetch 1 ,mem_lpm_mult_init 
+04cc 6000c172 store 1 ,mem_lpm_mult 
+04cd 202004e5 branch p_mouse_long_mult_flag_enable 
 
 p_mouse_customer_bt_send_empty_packet_timer:
-04d0 da604daa arg mem_customer_bt_send_empty_packet_timer ,regc 
-04d1 da4004d3 arg p_mouse_customer_empty_packet ,regb 
-04d2 2020336d branch timer_single_step 
+04ce da604daa arg mem_customer_bt_send_empty_packet_timer ,regc 
+04cf da4004d1 arg p_mouse_customer_empty_packet ,regb 
+04d0 2020336d branch timer_single_step 
 
 p_mouse_customer_empty_packet:
-04d3 704da901 jam 1 ,mem_customer_bt_start_send_empty_packet 
-04d4 20600000 rtn 
+04d1 704da901 jam 1 ,mem_customer_bt_start_send_empty_packet 
+04d2 20600000 rtn 
 
 p_le_send_smp_security_request_timer:
-04d5 6800cd43 fetch 1 ,mem_mouse_le_bb_connected_flag 
-04d6 207a0000 rtn blank 
-04d7 da604d44 arg mem_mouse_send_secutiry_request_timer ,regc 
-04d8 da4004da arg p_le_pairing_sm_start_check ,regb 
-04d9 2020336d branch timer_single_step 
+04d3 6800cd43 fetch 1 ,mem_mouse_le_bb_connected_flag 
+04d4 207a0000 rtn blank 
+04d5 da604d44 arg mem_mouse_send_secutiry_request_timer ,regc 
+04d6 da4004d8 arg p_le_pairing_sm_start_check ,regb 
+04d7 2020336d branch timer_single_step 
 
 p_le_pairing_sm_start_check:
-04da 6800cd45 fetch 1 ,mem_le_send_security_request_flag 
-04db 247a0000 nrtn blank 
-04dc 20205bf5 branch le_pairing_sm_start 
+04d8 6800cd45 fetch 1 ,mem_le_send_security_request_flag 
+04d9 247a0000 nrtn blank 
+04da 20205bf5 branch le_pairing_sm_start 
 
 p_mouse_wheel_trigger_timer:
-04dd da6049e2 arg mem_mouse_wheel_trigger_timer ,regc 
-04de da4004e0 arg p_mouse_wheel_trigger_disable ,regb 
-04df 2020336d branch timer_single_step 
+04db da6049e2 arg mem_mouse_wheel_trigger_timer ,regc 
+04dc da4004de arg p_mouse_wheel_trigger_disable ,regb 
+04dd 2020336d branch timer_single_step 
 
 p_mouse_wheel_trigger_disable:
-04e0 7049e100 jam 0 ,mem_mouse_wheel_trigger 
-04e1 20600000 rtn 
+04de 7049e100 jam 0 ,mem_mouse_wheel_trigger 
+04df 20600000 rtn 
 
 p_mouse_g24_long_sleep_param_update_timer:
-04e2 da604d42 arg mem_24g_long_sleep_param_update_timer ,regc 
-04e3 da4004e5 arg p_mouse_g24_long_sleep_normal_param ,regb 
-04e4 2020336d branch timer_single_step 
+04e0 da604d42 arg mem_24g_long_sleep_param_update_timer ,regc 
+04e1 da4004e3 arg p_mouse_g24_long_sleep_normal_param ,regb 
+04e2 2020336d branch timer_single_step 
 
 p_mouse_g24_long_sleep_normal_param:
-04e5 58124f80 setarg g24_long_sleep_step3 
-04e6 6001ce75 store 3 ,mem_24g_enter_hibernate 
+04e3 58124f80 setarg g24_long_sleep_step3 
+04e4 6001ce75 store 3 ,mem_24g_enter_hibernate 
 
 p_mouse_long_mult_flag_enable:
-04e7 704d4001 jam 1 ,mem_mouse_long_mult_flag 
-04e8 20600000 rtn 
+04e5 704d4001 jam 1 ,mem_mouse_long_mult_flag 
+04e6 20600000 rtn 
 
 p_mouse_g24_stop_mode_timeout_timer:
-04e9 da604f92 arg mem_24g_stop_g24_mode_timeout ,regc 
-04ea da4004ec arg p_mouse_g24_stop_mode_timeout ,regb 
-04eb 20203374 branch timer_single_step_2b 
+04e7 da604f92 arg mem_24g_stop_g24_mode_timeout ,regc 
+04e8 da4004ea arg p_mouse_g24_stop_mode_timeout ,regb 
+04e9 20203374 branch timer_single_step_2b 
 
 p_mouse_g24_stop_mode_timeout:
-04ec 704f9101 jam 1 ,mem_24g_stop_g24_mode 
-04ed 20600000 rtn 
+04ea 704f9101 jam 1 ,mem_24g_stop_g24_mode 
+04eb 20600000 rtn 
 
 p_mouse_bt_discovery_timer:
-04ee da604d20 arg mem_select_ui_button_count ,regc 
-04ef da4004f1 arg p_mouse_long_button_bt_discovery ,regb 
-04f0 2020336d branch timer_single_step 
+04ec da604d20 arg mem_select_ui_button_count ,regc 
+04ed da4004ef arg p_mouse_long_button_bt_discovery ,regb 
+04ee 2020336d branch timer_single_step 
 
 p_mouse_long_button_bt_discovery:
-04f1 704dae01 jam on ,mem_select_device_button_statue_bt_discovery 
-04f2 6808c720 fetcht 1 ,mem_device_flag 
-04f3 6800c703 fetch 1 ,mem_24g_device_number 
-04f4 98467c00 isub temp ,null 
-04f5 20628000 rtn zero 
-04f6 68014682 fetch 2 ,mem_ui_state_map 
-04f7 2feffe0b isolate1 ui_state_ble_adv ,pdata 
-04f8 2040c2d4 call mouse_stop_le_adv ,true 
-04f9 68014682 fetch 2 ,mem_ui_state_map 
-04fa 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
-04fb 2040c392 call mouse_cancel_reconnect ,true 
-04fc 202043b8 branch mouse_long_button_bt_discovry 
+04ef 704dae01 jam on ,mem_select_device_button_statue_bt_discovery 
+04f0 6808c720 fetcht 1 ,mem_device_flag 
+04f1 6800c703 fetch 1 ,mem_24g_device_number 
+04f2 98467c00 isub temp ,null 
+04f3 20628000 rtn zero 
+04f4 68014682 fetch 2 ,mem_ui_state_map 
+04f5 2feffe0b isolate1 ui_state_ble_adv ,pdata 
+04f6 2040c2d4 call mouse_stop_le_adv ,true 
+04f7 68014682 fetch 2 ,mem_ui_state_map 
+04f8 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
+04f9 2040c392 call mouse_cancel_reconnect ,true 
+04fa 202043b8 branch mouse_long_button_bt_discovry 
 
 p_mouse_get_select_state:
+04fb 6808cd91 fetcht 1 ,mem_mouse_comm_gpio 
+04fc 20400618 call p_gpio_set_input_pu 
 04fd 6808c6ed fetcht 1 ,mem_config_select_device_button_gpio 
-04fe 20400618 call p_gpio_set_input_pu 
+04fe 2040061d call p_gpio_set_input_pd 
 04ff 6808c6ed fetcht 1 ,mem_config_select_device_button_gpio 
 0500 2020681d branch gpio_get_bit 
 
 p_mouse_select_device_by_button:
-0501 204004fd call p_mouse_get_select_state 
+0501 204004fb call p_mouse_get_select_state 
 0502 2420850c nbranch p_mouse_select_device_button_up ,true 
 
 p_mouse_select_device_button_down:
-0503 204004ee call p_mouse_bt_discovery_timer 
+0503 204004ec call p_mouse_bt_discovery_timer 
 0504 6800c6d9 fetch 1 ,mem_select_device_button_statue 
 0505 c1000000 rtneq pb_button_state_down 
 0506 7046d900 jam pb_button_state_down ,mem_select_device_button_statue 
@@ -2052,8 +2052,8 @@
 
 p_mouse_no_data_timer_init_check:
 05dd 6800c720 fetch 1 ,mem_device_flag 
-05de c000848f beq mode_g24_device ,p_mouse_24g_no_data_timer_init 
-05df 204004b3 call p_mouse_powerdown_sensor_timer_init 
+05de c000848d beq mode_g24_device ,p_mouse_24g_no_data_timer_init 
+05df 204004b1 call p_mouse_powerdown_sensor_timer_init 
 05e0 20203f8d branch mouse_no_data_timer_init 
 
 p_mouse_cheak_sensor_data:
@@ -35526,7 +35526,7 @@
 
 z_hid_rx_process_hid_control:
 2002b 18427e00 copy temp ,pdata 
-2002c c0028475 beq hid_control_p_virtualcableunplug ,p_mouse_irtual_cable_unplug 
+2002c c0028473 beq hid_control_p_virtualcableunplug ,p_mouse_irtual_cable_unplug 
 2002d 20204d41 branch hid_rx_process_hid_control + 2 
               org 0x30001
 
@@ -35585,7 +35585,7 @@
 30026 6800804b fetch 1 ,mem_op 
 30027 793ffe03 set0 op_disconn ,pdata 
 30028 6000804b store 1 ,mem_op 
-30029 20200497 branch p_mouse_sensor_powerdown 
+30029 20200495 branch p_mouse_sensor_powerdown 
 
 z_send_lmp_accepted:
 3002a 18007e02 force 2 ,pdata 
@@ -36036,7 +36036,7 @@
 a002e 20200115 branch p_g24_transmit_abandon 
 
 z_mouse_24g_pairing_complete:
-a002f 2040048f call p_mouse_24g_no_data_timer_init 
+a002f 2040048d 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 
@@ -36078,7 +36078,7 @@
 b0015 58000009 setarg le_interval_11_25ms 
 b0016 60014496 store 2 ,mem_le_interval_min 
 b0017 60014498 store 2 ,mem_le_interval_min + 2 
-b0018 2040046d call p_app_updata_le_param 
+b0018 2040046b call p_app_updata_le_param 
 b0019 7047c601 jam le_lpm_disable ,mem_mouse_le_conn_param_reject 
 b001a 20600000 rtn 
 
@@ -36153,7 +36153,7 @@
 c0013 20200016 branch z_mouse_le_ll_enable_start_enc_flag 
 
 z_mouse_le_ll_reconn_start_encryt:
-c0014 2040046d call p_app_updata_le_param 
+c0014 2040046b call p_app_updata_le_param 
 c0015 7046c60a jam 10 ,mem_le_start_encrypt_timer 
 
 z_mouse_le_ll_enable_start_enc_flag:
@@ -36267,7 +36267,7 @@
 e0009 704d4414 jam 0x14 ,mem_mouse_send_secutiry_request_timer 
 
 z_mouse_le_bb_event_connected_next:
-e000a 204004b3 call p_mouse_powerdown_sensor_timer_init 
+e000a 204004b1 call p_mouse_powerdown_sensor_timer_init 
 e000b 204003db call p_mouse_data_init 
 e000c 202041c3 branch mouse_le_bb_event_connected 
 
Index: output/ramcode.rom
===================================================================
--- /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/ramcode.rom	(revision 5895)
+++ /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/ramcode.rom	(working copy)
@@ -22,20 +22,20 @@
 600141f9
 58000278
 600141ed
-58000457
+58000455
 600141f5
 580003f9
 600141f3
-58000491
+5800048f
 600141eb
-5800049a
+58000498
 600141fd
 20600000
 58000019
 60014f89
 2455802b
 204002ee
-20400497
+20400495
 6800c71f
 6000c71e
 6800c241
@@ -98,10 +98,10 @@
 c07d0731
 20202a8e
 704d4600
-204004fd
+204004fb
 24608000
 20407ec1
-204004fd
+204004fb
 24608000
 704d4601
 20600000
@@ -1087,13 +1087,11 @@
 1fe0ffff
 6000c6ba
 20600000
-6808cd91
-20400618
 6808c6e7
-2040061d
+20400618
 6808c6e7
 2040681d
-20208455
+24208453
 20400618
 6800c6b6
 c1000000
@@ -1110,25 +1108,25 @@
 20400618
 20203d62
 1a627e00
-c00a0468
-c00a846a
-c014846d
-c019046f
-c0200471
-c0020473
-c0098473
+c00a0466
+c00a8468
+c014846b
+c019046d
+c020046f
+c0020471
+c0098471
 c00cb3df
-c0108477
-c0008479
-c001047d
-c0158480
-c01c8482
-c01d0486
-c01e048c
+c0108475
+c0008477
+c001047b
+c015847e
+c01c8480
+c01d0484
+c01e048a
 2020417d
 7011c5d0
 202007da
-20400494
+20400492
 7011c5a2
 202007da
 700a9912
@@ -1147,7 +1145,7 @@
 7049e400
 204002f6
 202042ca
-20400494
+20400492
 7011c5b4
 202007da
 7011c5b2
@@ -1159,7 +1157,7 @@
 704d9201
 704d070a
 20400783
-20400494
+20400492
 7011c5a0
 202007da
 704e4701
@@ -1167,7 +1165,7 @@
 204002f6
 68014db9
 20203f8e
-20400494
+20400492
 7011c5a4
 202007da
 6800ccd9
@@ -1178,29 +1176,29 @@
 20206413
 2040052b
 2040058a
-204004dd
+204004db
 20400501
 20404234
 2040423a
-204004e2
-204004e9
-204004c4
-204004c1
-204004ca
-204004d5
-204004d0
-204004b9
+204004e0
+204004e7
+204004c2
+204004bf
+204004c8
+204004d3
+204004ce
+204004b7
 20404231
-204004bc
-204004ac
+204004ba
+204004aa
 20200749
 da604dbd
-da4004af
+da4004ad
 20203374
 6800cdbf
 247a0000
 704dbf01
-20200497
+20200495
 68014dbb
 60014dbd
 6800cdbf
@@ -1211,7 +1209,7 @@
 da40637a
 2020336d
 da604ce4
-da4004bf
+da4004bd
 2020336d
 704ce501
 20600000
@@ -1219,49 +1217,49 @@
 da403d60
 2020336d
 da6046ae
-da4004c7
+da4004c5
 20203374
 6800cd0a
 247a0000
 20204266
 da604d41
-da4004cd
+da4004cb
 2020336d
 6800c7c7
 6000c172
-202004e7
+202004e5
 da604daa
-da4004d3
+da4004d1
 2020336d
 704da901
 20600000
 6800cd43
 207a0000
 da604d44
-da4004da
+da4004d8
 2020336d
 6800cd45
 247a0000
 20205bf5
 da6049e2
-da4004e0
+da4004de
 2020336d
 7049e100
 20600000
 da604d42
-da4004e5
+da4004e3
 2020336d
 58124f80
 6001ce75
 704d4001
 20600000
 da604f92
-da4004ec
+da4004ea
 20203374
 704f9101
 20600000
 da604d20
-da4004f1
+da4004ef
 2020336d
 704dae01
 6808c720
@@ -1275,13 +1273,15 @@
 2feffe07
 2040c392
 202043b8
-6808c6ed
+6808cd91
 20400618
 6808c6ed
+2040061d
+6808c6ed
 2020681d
-204004fd
+204004fb
 2420850c
-204004ee
+204004ec
 6800c6d9
 c1000000
 7046d900
@@ -1500,8 +1500,8 @@
 204005dd
 20203fa1
 6800c720
-c000848f
-204004b3
+c000848d
+204004b1
 20203f8d
 6800c6e0
 c00205e6
Index: output/romcode.rom
===================================================================
--- /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/romcode.rom	(revision 5895)
+++ /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/output/romcode.rom	(working copy)
@@ -24630,7 +24630,7 @@
 704cde01
 20600000
 18427e00
-c0028475
+c0028473
 20204d41
 c0100016
 c010802a
@@ -24672,7 +24672,7 @@
 6800804b
 793ffe03
 6000804b
-20200497
+20200495
 18007e02
 20406298
 68008049
@@ -25008,7 +25008,7 @@
 68024e26
 204001bc
 20200115
-2040048f
+2040048d
 70478b01
 d8e00003
 204043d2
@@ -25043,7 +25043,7 @@
 58000009
 60014496
 60014498
-2040046d
+2040046b
 7047c601
 20600000
 68014682
@@ -25099,7 +25099,7 @@
 6800c7a1
 c0008014
 20200016
-2040046d
+2040046b
 7046c60a
 d8e00001
 202041b9
@@ -25183,7 +25183,7 @@
 6800c7a1
 243a000a
 704d4414
-204004b3
+204004b1
 204003db
 202041c3
-0000405a
+0000b8ee
Index: program/patch.prog
===================================================================
--- /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/program/patch.prog	(revision 5895)
+++ /branch/mouse_project/LeXiang/1066_Project/PBSwitch_2.4G&BLE_3ch_D1027E8_Trust_MS12_DPI_PB/program/patch.prog	(working copy)
@@ -1789,13 +1789,11 @@
 	
 
 p_mouse_dpi_check:
-	fetcht 1,mem_mouse_comm_gpio
-	call p_gpio_set_input_pu
 	fetcht 1,mem_dpi_button_gpio
-	call p_gpio_set_input_pd
+	call p_gpio_set_input_pu
 	fetcht 1,mem_dpi_button_gpio
 	call gpio_get_bit
-	branch p_mouse_dpi_up,true
+	nbranch p_mouse_dpi_up,true
 	call p_gpio_set_input_pu
 p_mouse_dpi_down:
 	fetch 1,mem_mouse_dpi_button_state
@@ -2123,9 +2121,11 @@
 
 
 p_mouse_get_select_state:
-	fetcht 1,mem_config_select_device_button_gpio
+	fetcht 1,mem_mouse_comm_gpio
 	call p_gpio_set_input_pu
 	fetcht 1,mem_config_select_device_button_gpio
+	call p_gpio_set_input_pd
+	fetcht 1,mem_config_select_device_button_gpio
 	branch gpio_get_bit
 
 p_mouse_select_device_by_button:
