Index: a.bat
===================================================================
--- /1121s/branch/dongle/1m/YDN_usb_1m_64k/a.bat	(revision 3739)
+++ /1121s/branch/dongle/1m/YDN_usb_1m_64k/a.bat	(working copy)
@@ -1,7 +1,11 @@
+set baud=a0
 e pu
 e 8043 00
+
+::e hu output/romcode.rom 2000
+::e ku
 e pu
 e hu output/ramcode.rom 0
-e pu
+ping -n 2 127.1 >nul
 e su output/sched.rom
 e cu
\ No newline at end of file
Index: ep.bat
===================================================================
--- /1121s/branch/dongle/1m/YDN_usb_1m_64k/ep.bat	(revision 3739)
+++ /1121s/branch/dongle/1m/YDN_usb_1m_64k/ep.bat	(working copy)
@@ -2,10 +2,7 @@
 e pu
 e pu
 e 8043 00
-e 8079 3e
-e 807a 6c
-e 807b 6d
-::e 8071 6c6d3e
+e 8071 6c6d3e
 e er 0 10
 e ew 0 0000
 e er 0 10
Index: output/eeprom.dat
===================================================================
--- /1121s/branch/dongle/1m/YDN_usb_1m_64k/output/eeprom.dat	(revision 3739)
+++ /1121s/branch/dongle/1m/YDN_usb_1m_64k/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-a2
+fe
 07
 c2
 84
@@ -11,67 +11,67 @@
 c0
 00
 00
-1b
+1c
 c0
 01
 00
-21
+22
 c0
 08
 80
-2a
+2b
 c0
 0a
 01
-77
+8e
 c0
 0a
 80
-c6
+c7
 c0
 0c
 00
-d4
+d5
 c0
 0c
 80
-7a
+7b
 c0
 0d
 00
-38
+39
 c0
 1b
 81
-d5
+ec
 c0
 1c
 00
-99
+9a
 c0
 1c
 80
-95
+96
 c0
 1e
 81
-d1
+e8
 c0
 62
 80
-92
+93
 c0
 6d
 01
-48
+5f
 c0
 6e
 01
-58
+6f
 c0
 7f
 80
-de
+df
 20
 20
 23
@@ -79,31 +79,35 @@
 c0
 00
 00
-fb
+fc
+c0
+03
+01
+1b
 c0
 1c
 81
-93
+aa
 c0
 26
 81
-97
+ae
 c0
 37
 81
-de
+f5
 c0
 41
 01
-99
+b0
 c0
 44
 01
-b9
+d0
 c0
 45
 01
-c6
+dd
 c1
 7f
 80
@@ -171,7 +175,7 @@
 20
 20
 00
-21
+22
 70
 8a
 0f
@@ -255,7 +259,7 @@
 20
 40
 00
-9b
+9c
 6f
 e0
 c4
@@ -279,7 +283,7 @@
 c0
 08
 00
-6f
+70
 6f
 e0
 c4
@@ -323,7 +327,7 @@
 20
 40
 00
-61
+62
 70
 80
 43
@@ -347,15 +351,15 @@
 20
 40
 01
-1a
+31
 20
 40
 01
-45
+5c
 20
 40
 00
-5b
+5c
 70
 41
 48
@@ -367,7 +371,7 @@
 20
 20
 01
-47
+5e
 20
 75
 80
@@ -399,7 +403,7 @@
 c0
 0c
 00
-67
+68
 6f
 e0
 c4
@@ -491,7 +495,7 @@
 20
 20
 00
-4d
+4e
 6f
 e0
 c1
@@ -503,19 +507,19 @@
 c0
 05
 00
-81
+82
 c0
 4f
 00
-86
+87
 c0
 4f
 80
-8a
+8b
 c0
 50
 00
-8e
+8f
 20
 20
 22
@@ -627,7 +631,7 @@
 20
 35
 80
-c2
+c3
 6f
 e2
 02
@@ -795,7 +799,7 @@
 20
 20
 00
-ac
+ad
 20
 40
 68
@@ -919,7 +923,7 @@
 c0
 00
 80
-ed
+ee
 d8
 a0
 08
@@ -951,7 +955,7 @@
 20
 20
 00
-fb
+fc
 d8
 a0
 08
@@ -971,7 +975,7 @@
 c0
 00
 80
-f5
+f6
 70
 08
 f7
@@ -1027,7 +1031,7 @@
 c0
 00
 01
-01
+02
 20
 20
 23
@@ -1055,7 +1059,7 @@
 c0
 00
 81
-09
+0a
 c0
 01
 79
@@ -1075,7 +1079,7 @@
 c0
 04
 81
-0e
+0f
 c0
 05
 fb
@@ -1095,7 +1099,7 @@
 20
 40
 00
-db
+dc
 70
 08
 f7
@@ -1132,6 +1136,94 @@
 20
 7b
 65
+6f
+e0
+89
+0d
+20
+7a
+00
+00
+6f
+f0
+8c
+25
+1f
+e1
+7e
+0f
+24
+3a
+7c
+30
+6f
+e0
+89
+0e
+20
+3a
+7c
+06
+6f
+e0
+89
+00
+c0
+01
+fc
+40
+c0
+81
+7c
+06
+6f
+e0
+89
+02
+24
+3a
+7c
+06
+20
+40
+01
+29
+20
+20
+01
+2d
+6f
+f0
+8c
+25
+1f
+e1
+7e
+0f
+24
+7a
+00
+00
+20
+20
+7b
+f0
+6f
+f0
+8c
+25
+1f
+e1
+7e
+0f
+24
+7a
+00
+00
+20
+20
+7b
+fb
 20
 75
 80
@@ -1183,7 +1275,7 @@
 20
 40
 01
-37
+4e
 2a
 2f
 fe
@@ -1215,7 +1307,7 @@
 20
 40
 01
-37
+4e
 d8
 a0
 8a
@@ -1243,7 +1335,7 @@
 20
 21
 01
-2c
+43
 20
 20
 21
@@ -1347,7 +1439,7 @@
 20
 40
 01
-70
+87
 70
 8a
 08
@@ -1383,7 +1475,7 @@
 20
 40
 01
-66
+7d
 6f
 f0
 8a
@@ -1427,7 +1519,7 @@
 20
 40
 01
-70
+87
 70
 80
 cd
@@ -1487,7 +1579,7 @@
 c3
 02
 81
-71
+88
 68
 59
 01
@@ -1523,7 +1615,7 @@
 c0
 08
 01
-90
+a7
 58
 00
 57
@@ -1567,7 +1659,7 @@
 c0
 08
 01
-8d
+a4
 58
 00
 2b
@@ -1603,7 +1695,7 @@
 20
 20
 01
-89
+a0
 58
 00
 83
@@ -1615,7 +1707,7 @@
 20
 20
 01
-7e
+95
 6f
 e0
 c3
@@ -1655,7 +1747,7 @@
 c0
 11
 01
-9f
+b6
 c0
 7f
 b5
@@ -1671,7 +1763,7 @@
 20
 3a
 01
-a5
+bc
 6f
 e2
 45
@@ -1695,11 +1787,11 @@
 c0
 00
 81
-a9
+c0
 c0
 01
 01
-b1
+c8
 20
 60
 00
@@ -1719,7 +1811,7 @@
 c0
 01
 01
-ae
+c5
 20
 60
 00
@@ -1751,7 +1843,7 @@
 c0
 80
 01
-b6
+cd
 20
 60
 00
@@ -1831,7 +1923,7 @@
 20
 40
 01
-ca
+e1
 20
 20
 34
@@ -1867,7 +1959,7 @@
 20
 40
 01
-d3
+ea
 20
 20
 48
@@ -1956,8 +2048,8 @@
 20
 31
 95
-00
-64
+0d
+20
 aa
 55
 40
@@ -1996,7 +2088,7 @@
 00
 00
 80
-01
+41
 00
 00
 00
@@ -2078,7 +2170,7 @@
 31
 20
 30
-00
+01
 0d
 32
 2e
@@ -2106,8 +2198,8 @@
 00
 f1
 44
-36
-27
+38
+28
 83
 74
 12
@@ -2142,7 +2234,7 @@
 c3
 40
 35
-3d
+3f
 64
 db
 7b
@@ -2316,106 +2408,14 @@
 40
 49
 41
-36
-56
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+55
+aa
+aa
+55
+2c
+4c
+3c
+cc
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-28
-8b
+2d
+f9
Index: output/program.lis
===================================================================
--- /1121s/branch/dongle/1m/YDN_usb_1m_64k/output/program.lis	(revision 3739)
+++ /1121s/branch/dongle/1m/YDN_usb_1m_64k/output/program.lis	(working copy)
@@ -1,619 +1,648 @@
               include "bt_format "
               org 0x0000
 0000 c2840012 bbit1 8 ,pf_patch_ext 
-0001 c000001b beq patch00_0 ,p_soft_reset 
-0002 c0010021 beq patch00_2 ,p_main_loop 
-0003 c008802a beq patch02_1 ,p_set_sync_on 
-0004 c00a0177 beq patch02_4 ,p_set_lemode 
-0005 c00a80c6 beq patch02_5 ,p_rf_rx_enable 
-0006 c00c00d4 beq patch03_0 ,p_txon 
-0007 c00c807a beq patch03_1 ,p_set_tx_power 
-0008 c00d0038 beq patch03_2 ,p_initialize_radio_cont 
-0009 c01b81d5 beq patch06_7 ,p_dongle_default_init 
-000a c01c0099 beq patch07_0 ,p_dongle_read_kb_bind_status 
-000b c01c8095 beq patch07_1 ,p_dongle_write_kb_bind_status 
-000c c01e81d1 beq patch07_5 ,p_dongle_usb_dispatch 
-000d c0628092 beq patch18_5 ,p_otp_read_data 
-000e c06d0148 beq patch1b_2 ,p_sadc_calibration 
-000f c06e0158 beq patch1b_4 ,p_enable_adc 
-0010 c07f80de beq patch1f_7 ,p_usb_rx 
+0001 c000001c beq patch00_0 ,p_soft_reset 
+0002 c0010022 beq patch00_2 ,p_main_loop 
+0003 c008802b beq patch02_1 ,p_set_sync_on 
+0004 c00a018e beq patch02_4 ,p_set_lemode 
+0005 c00a80c7 beq patch02_5 ,p_rf_rx_enable 
+0006 c00c00d5 beq patch03_0 ,p_txon 
+0007 c00c807b beq patch03_1 ,p_set_tx_power 
+0008 c00d0039 beq patch03_2 ,p_initialize_radio_cont 
+0009 c01b81ec beq patch06_7 ,p_dongle_default_init 
+000a c01c009a beq patch07_0 ,p_dongle_read_kb_bind_status 
+000b c01c8096 beq patch07_1 ,p_dongle_write_kb_bind_status 
+000c c01e81e8 beq patch07_5 ,p_dongle_usb_dispatch 
+000d c0628093 beq patch18_5 ,p_otp_read_data 
+000e c06d015f beq patch1b_2 ,p_sadc_calibration 
+000f c06e016f beq patch1b_4 ,p_enable_adc 
+0010 c07f80df beq patch1f_7 ,p_usb_rx 
 0011 2020235a branch assert 
 
 pf_patch_ext:
-0012 c00000fb beq patch20_0 ,p_usb_class_type 
-0013 c01c8193 beq patch27_1 ,p_le_parse 
-0014 c0268197 beq patch29_5 ,p_le_init_adv 
-0015 c03781de beq patch2d_7 ,p_g24_receive_skip_end 
-0016 c0410199 beq patch30_2 ,p_g24_bind_data_parse_next 
-0017 c04401b9 beq patch31_0 ,p_g24_mode_switch_bind_search 
-0018 c04501c6 beq patch31_2 ,p_g24_bind_mode_auto 
-0019 c17f8000 rtneq patch3f_7 
-001a 2020235a branch assert 
+0012 c00000fc beq patch20_0 ,p_usb_class_type 
+0013 c003011b beq patch20_6 ,p_usb_tx 
+0014 c01c81aa beq patch27_1 ,p_le_parse 
+0015 c02681ae beq patch29_5 ,p_le_init_adv 
+0016 c03781f5 beq patch2d_7 ,p_g24_receive_skip_end 
+0017 c04101b0 beq patch30_2 ,p_g24_bind_data_parse_next 
+0018 c04401d0 beq patch31_0 ,p_g24_mode_switch_bind_search 
+0019 c04501dd beq patch31_2 ,p_g24_bind_mode_auto 
+001a c17f8000 rtneq patch3f_7 
+001b 2020235a branch assert 
 
 p_soft_reset:
-001b 20800000 clear_stack 
-001c 37d98200 until null ,lpo_edge 
-001d 6fe0c0cb fetch 1 ,mem_lpm_hv_sel 
-001e 204023e1 call lpm_write_sel_hv 
-001f 20007530 nop 30000 
-0020 20202003 branch soft_reset + 2 
+001c 20800000 clear_stack 
+001d 37d98200 until null ,lpo_edge 
+001e 6fe0c0cb fetch 1 ,mem_lpm_hv_sel 
+001f 204023e1 call lpm_write_sel_hv 
+0020 20007530 nop 30000 
+0021 20202003 branch soft_reset + 2 
 
 p_main_loop:
-0021 20407552 call sp_calc_sequence_256 
-0022 20407448 call sp_calc_sequence_256_check 
-0023 20402a45 call le_advertising_dispatch 
-0024 2040202a call idle_dispatch 
-0025 204042ad call app_process_idle 
-0026 20402018 call connection_dispatch 
-0027 2040310f call g24_dispatch 
-0028 2040248c call lpm_dispatch 
-0029 20200021 branch p_main_loop 
+0022 20407552 call sp_calc_sequence_256 
+0023 20407448 call sp_calc_sequence_256_check 
+0024 20402a45 call le_advertising_dispatch 
+0025 2040202a call idle_dispatch 
+0026 204042ad call app_process_idle 
+0027 20402018 call connection_dispatch 
+0028 2040310f call g24_dispatch 
+0029 2040248c call lpm_dispatch 
+002a 20200022 branch p_main_loop 
 
 p_set_sync_on:
-002a 708a0f60 jam 0x60 ,0x8a0f 
-002b 708a10aa jam 0xaa ,0x8a10 
-002c 708a127a jam 0x7a ,0x8a12 
-002d 708a2500 jam 0x00 ,0x8a25 
-002e 708a2600 jam 0x00 ,0x8a26 
-002f 2000003c nop 60 
-0030 708a2020 jam 0x20 ,0x8a20 
-0031 708a23f5 jam 0xf5 ,0x8a23 
-0032 708a2412 jam 0x12 ,0x8a24 
-0033 708a2410 jam 0x10 ,0x8a24 
-0034 2000003c nop 60 
-0035 708a1260 jam 0x60 ,0x8a12 
-0036 708a23dd jam 0xdd ,0x8a23 
-0037 20600000 rtn 
+002b 708a0f60 jam 0x60 ,0x8a0f 
+002c 708a10aa jam 0xaa ,0x8a10 
+002d 708a127a jam 0x7a ,0x8a12 
+002e 708a2500 jam 0x00 ,0x8a25 
+002f 708a2600 jam 0x00 ,0x8a26 
+0030 2000003c nop 60 
+0031 708a2020 jam 0x20 ,0x8a20 
+0032 708a23f5 jam 0xf5 ,0x8a23 
+0033 708a2412 jam 0x12 ,0x8a24 
+0034 708a2410 jam 0x10 ,0x8a24 
+0035 2000003c nop 60 
+0036 708a1260 jam 0x60 ,0x8a12 
+0037 708a23dd jam 0xdd ,0x8a23 
+0038 20600000 rtn 
 
 p_initialize_radio_cont:
-0038 7089460d jam 0x0d ,0x8946 
-0039 70896f10 jam 0x10 ,0x896f 
-003a 708a0610 jam 0x10 ,0x8a06 
-003b 708a844a jam 0x4a ,0x8a84 
-003c 708a8540 jam 0x40 ,0x8a85 
-003d 708a16fe jam 0xfe ,0x8a16 
-003e 2040009b call p_set_otp_config 
-003f 6fe0c436 fetch 1 ,mem_wdt_always_work 
-0040 205a70d7 call wdt_set_disable ,blank 
-0041 37d98200 until null ,lpo_edge 
-0042 70813b5f jam 0x5f ,0x813b 
-0043 6fe0c099 fetch 1 ,mem_fcomp_div 
-0044 c008006f beq xtal_16m ,p_initialize_radio_16m 
-0045 6fe0c438 fetch 1 ,mem_ring_ibias_trim 
-0046 1fe1fe04 or_into 0x04 ,pdata 
-0047 67f08a02 store 1 ,0x8a02 
-0048 70890f01 jam 0x01 ,0x890f 
-0049 708a8024 jam 0x24 ,0x8a80 
-004a 708a8162 jam 0x62 ,0x8a81 
-004b 58e61212 setarg 0xe61212 
-004c 67f18a73 store 3 ,0x8a73 
+0039 7089460d jam 0x0d ,0x8946 
+003a 70896f10 jam 0x10 ,0x896f 
+003b 708a0610 jam 0x10 ,0x8a06 
+003c 708a844a jam 0x4a ,0x8a84 
+003d 708a8540 jam 0x40 ,0x8a85 
+003e 708a16fe jam 0xfe ,0x8a16 
+003f 2040009c call p_set_otp_config 
+0040 6fe0c436 fetch 1 ,mem_wdt_always_work 
+0041 205a70d7 call wdt_set_disable ,blank 
+0042 37d98200 until null ,lpo_edge 
+0043 70813b5f jam 0x5f ,0x813b 
+0044 6fe0c099 fetch 1 ,mem_fcomp_div 
+0045 c0080070 beq xtal_16m ,p_initialize_radio_16m 
+0046 6fe0c438 fetch 1 ,mem_ring_ibias_trim 
+0047 1fe1fe04 or_into 0x04 ,pdata 
+0048 67f08a02 store 1 ,0x8a02 
+0049 70890f01 jam 0x01 ,0x890f 
+004a 708a8024 jam 0x24 ,0x8a80 
+004b 708a8162 jam 0x62 ,0x8a81 
+004c 58e61212 setarg 0xe61212 
+004d 67f18a73 store 3 ,0x8a73 
 
 p_initialize_radio2:
-004d 708a8660 jam 0x60 ,0x8a86 
-004e 708a8b3b jam 0x3b ,0x8a8b 
-004f 20400061 call p_dpll_on 
-0050 70804300 jam 0 ,core_config 
-0051 70804205 jam clksel_dpll ,core_clksel 
-0052 58557474 setarg 0x557474 
-0053 67f18968 store 3 ,0x8968 
-0054 7089606e jam 0x6e ,0x8960 
-0055 2040011a call p_rx_dcoc 
-0056 20400145 call p_rfpll_aac_ghpc 
-0057 2040005b call p_set_xtal_cap 
-0058 7041480c jam system_clk_12m ,mem_system_clk 
-0059 20406f4e call sadc_calibration 
-005a 20200147 branch p_dpll_ring_ibias_calc 
+004e 708a8660 jam 0x60 ,0x8a86 
+004f 708a8b3b jam 0x3b ,0x8a8b 
+0050 20400062 call p_dpll_on 
+0051 70804300 jam 0 ,core_config 
+0052 70804205 jam clksel_dpll ,core_clksel 
+0053 58557474 setarg 0x557474 
+0054 67f18968 store 3 ,0x8968 
+0055 7089606e jam 0x6e ,0x8960 
+0056 20400131 call p_rx_dcoc 
+0057 2040015c call p_rfpll_aac_ghpc 
+0058 2040005c call p_set_xtal_cap 
+0059 7041480c jam system_clk_12m ,mem_system_clk 
+005a 20406f4e call sadc_calibration 
+005b 2020015e branch p_dpll_ring_ibias_calc 
 
 p_set_xtal_cap:
-005b 20758000 rtn wake 
-005c 37d98200 until null ,lpo_edge 
-005d 6fe0c11c fetch 1 ,mem_xtal_c_sel 
-005e 67f0813a store 1 ,core_xtal_cap 
-005f 37d98200 until null ,lpo_edge 
-0060 20600000 rtn 
+005c 20758000 rtn wake 
+005d 37d98200 until null ,lpo_edge 
+005e 6fe0c11c fetch 1 ,mem_xtal_c_sel 
+005f 67f0813a store 1 ,core_xtal_cap 
+0060 37d98200 until null ,lpo_edge 
+0061 20600000 rtn 
 
 p_dpll_on:
-0061 6fe0c099 fetch 1 ,mem_fcomp_div 
-0062 c00c0067 beq xtal_24m ,p_dpll_on_24m 
-0063 6fe0c438 fetch 1 ,mem_ring_ibias_trim 
-0064 1fe1fe06 or_into 0x06 ,pdata 
-0065 67f08a02 store 1 ,0x8a02 
-0066 708a05e0 jam 0xe0 ,0x8a05 
+0062 6fe0c099 fetch 1 ,mem_fcomp_div 
+0063 c00c0068 beq xtal_24m ,p_dpll_on_24m 
+0064 6fe0c438 fetch 1 ,mem_ring_ibias_trim 
+0065 1fe1fe06 or_into 0x06 ,pdata 
+0066 67f08a02 store 1 ,0x8a02 
+0067 708a05e0 jam 0xe0 ,0x8a05 
 
 p_dpll_on_24m:
-0067 708a00d8 jam 0xd8 ,0x8a00 
-0068 2000003c nop 60 
-0069 708a01a0 jam 0xa0 ,0x8a01 
-006a 708a00df jam 0xdf ,0x8a00 
-006b 708a01fa jam 0xfa ,0x8a01 
-006c 20000014 nop 20 
-006d 708a009f jam 0x9f ,0x8a00 
-006e 20600000 rtn 
+0068 708a00d8 jam 0xd8 ,0x8a00 
+0069 2000003c nop 60 
+006a 708a01a0 jam 0xa0 ,0x8a01 
+006b 708a00df jam 0xdf ,0x8a00 
+006c 708a01fa jam 0xfa ,0x8a01 
+006d 20000014 nop 20 
+006e 708a009f jam 0x9f ,0x8a00 
+006f 20600000 rtn 
 
 p_initialize_radio_16m:
-006f 6fe0c438 fetch 1 ,mem_ring_ibias_trim 
-0070 1fe1fe06 or_into 0x06 ,pdata 
-0071 67f08a02 store 1 ,0x8a02 
-0072 70890f00 jam 0x00 ,0x890f 
-0073 708a8023 jam 0x23 ,0x8a80 
-0074 708a81b0 jam 0xb0 ,0x8a81 
-0075 58e40909 setarg 0xe40909 
-0076 67f18a73 store 3 ,0x8a73 
-0077 708a762a jam 0x2a ,0x8a76 
-0078 70890204 jam 0x04 ,0x8902 
-0079 2020004d branch p_initialize_radio2 
+0070 6fe0c438 fetch 1 ,mem_ring_ibias_trim 
+0071 1fe1fe06 or_into 0x06 ,pdata 
+0072 67f08a02 store 1 ,0x8a02 
+0073 70890f00 jam 0x00 ,0x890f 
+0074 708a8023 jam 0x23 ,0x8a80 
+0075 708a81b0 jam 0xb0 ,0x8a81 
+0076 58e40909 setarg 0xe40909 
+0077 67f18a73 store 3 ,0x8a73 
+0078 708a762a jam 0x2a ,0x8a76 
+0079 70890204 jam 0x04 ,0x8902 
+007a 2020004e branch p_initialize_radio2 
 
 p_set_tx_power:
-007a 6fe0c141 fetch 1 ,mem_tx_power 
-007b c0032225 beq tx_power_6db ,set_tx_power_7db 
-007c c0050081 beq tx_power_10db ,p_set_tx_power_10db 
-007d c04f0086 beq tx_power_f30db ,p_set_tx_power_f30db 
-007e c04f808a beq tx_power_f35db ,p_set_tx_power_f35db 
-007f c050008e beq tx_power_f40db ,p_set_tx_power_f40db 
-0080 2020220e branch set_tx_power + 2 
+007b 6fe0c141 fetch 1 ,mem_tx_power 
+007c c0032225 beq tx_power_6db ,set_tx_power_7db 
+007d c0050082 beq tx_power_10db ,p_set_tx_power_10db 
+007e c04f0087 beq tx_power_f30db ,p_set_tx_power_f30db 
+007f c04f808b beq tx_power_f35db ,p_set_tx_power_f35db 
+0080 c050008f beq tx_power_f40db ,p_set_tx_power_f40db 
+0081 2020220e branch set_tx_power + 2 
 
 p_set_tx_power_10db:
-0081 708a1425 jam 0x25 ,0x8a14 
-0082 58a93f3f setarg 0xa93f3f 
-0083 67f18a60 store 3 ,0x8a60 
-0084 708a631f jam 0x1f ,0x8a63 
-0085 20600000 rtn 
+0082 708a1425 jam 0x25 ,0x8a14 
+0083 58a93f3f setarg 0xa93f3f 
+0084 67f18a60 store 3 ,0x8a60 
+0085 708a631f jam 0x1f ,0x8a63 
+0086 20600000 rtn 
 
 p_set_tx_power_f30db:
-0086 708a1417 jam 0x17 ,0x8a14 
-0087 58250300 setarg 0x250300 
-0088 67f18a60 store 3 ,0x8a60 
-0089 2020221a branch set_tx_power_8a63_28 
+0087 708a1417 jam 0x17 ,0x8a14 
+0088 58250300 setarg 0x250300 
+0089 67f18a60 store 3 ,0x8a60 
+008a 2020221a branch set_tx_power_8a63_28 
 
 p_set_tx_power_f35db:
-008a 708a1417 jam 0x17 ,0x8a14 
-008b 58250100 setarg 0x250100 
-008c 67f18a60 store 3 ,0x8a60 
-008d 2020221a branch set_tx_power_8a63_28 
+008b 708a1417 jam 0x17 ,0x8a14 
+008c 58250100 setarg 0x250100 
+008d 67f18a60 store 3 ,0x8a60 
+008e 2020221a branch set_tx_power_8a63_28 
 
 p_set_tx_power_f40db:
-008e 708a1417 jam 0x17 ,0x8a14 
-008f 58250000 setarg 0x250000 
-0090 67f18a60 store 3 ,0x8a60 
-0091 2020221a branch set_tx_power_8a63_28 
+008f 708a1417 jam 0x17 ,0x8a14 
+0090 58250000 setarg 0x250000 
+0091 67f18a60 store 3 ,0x8a60 
+0092 2020221a branch set_tx_power_8a63_28 
 
 p_otp_read_data:
-0092 20406b3a call enable_otp_read 
-0093 20406b75 call otp_read_data + 1 
-0094 20206b38 branch otp_disable_chgpump 
+0093 20406b3a call enable_otp_read 
+0094 20406b75 call otp_read_data + 1 
+0095 20206b38 branch otp_disable_chgpump 
 
 p_dongle_write_kb_bind_status:
-0095 df200001 arg 1 ,loopcnt 
-0096 da204648 arg mem_dg_kb_bind_flag ,rega 
-0097 da401f00 arg dongle_kb_bind_otp_offect ,regb 
-0098 20206b45 branch otp_write 
+0096 df200001 arg 1 ,loopcnt 
+0097 da204648 arg mem_dg_kb_bind_flag ,rega 
+0098 da401f00 arg dongle_kb_bind_otp_offect ,regb 
+0099 20206b45 branch otp_write 
 
 p_dongle_read_kb_bind_status:
-0099 da401f00 arg dongle_kb_bind_otp_offect ,regb 
-009a 202047f1 branch dongle_read_kb_bind_status + 2 
+009a da401f00 arg dongle_kb_bind_otp_offect ,regb 
+009b 202047f1 branch dongle_read_kb_bind_status + 2 
 
 p_set_otp_config:
-009b 203580c2 branch p_set_otp_config_wake ,wake 
-009c 6fe2020d fetch 4 ,mem_otp_core_ldo 
-009d 207a0000 rtn blank 
-009e 37d98200 until null ,lpo_edge 
-009f 6ff08136 fetch 1 ,0x8136 
-00a0 1fe17ef0 and pdata ,0xf0 ,pdata 
-00a1 6848820d fetcht 1 ,mem_otp_core_ldo 
-00a2 9841fe00 ior temp ,pdata 
-00a3 67f08136 store 1 ,0x8136 
-00a4 37d98200 until null ,lpo_edge 
-00a5 6ff08138 fetch 1 ,0x8138 
-00a6 1fe17e07 and pdata ,0x7 ,pdata 
-00a7 6848820e fetcht 1 ,mem_otp_verf_bg 
-00a8 18498400 lshift3 temp ,temp 
-00a9 9841fe00 ior temp ,pdata 
-00aa 67f08138 store 1 ,0x8138 
-00ab 37d98200 until null ,lpo_edge 
+009c 203580c3 branch p_set_otp_config_wake ,wake 
+009d 6fe2020d fetch 4 ,mem_otp_core_ldo 
+009e 207a0000 rtn blank 
+009f 37d98200 until null ,lpo_edge 
+00a0 6ff08136 fetch 1 ,0x8136 
+00a1 1fe17ef0 and pdata ,0xf0 ,pdata 
+00a2 6848820d fetcht 1 ,mem_otp_core_ldo 
+00a3 9841fe00 ior temp ,pdata 
+00a4 67f08136 store 1 ,0x8136 
+00a5 37d98200 until null ,lpo_edge 
+00a6 6ff08138 fetch 1 ,0x8138 
+00a7 1fe17e07 and pdata ,0x7 ,pdata 
+00a8 6848820e fetcht 1 ,mem_otp_verf_bg 
+00a9 18498400 lshift3 temp ,temp 
+00aa 9841fe00 ior temp ,pdata 
+00ab 67f08138 store 1 ,0x8138 
+00ac 37d98200 until null ,lpo_edge 
 
 p_set_otp_config2:
-00ac 6ff08acb fetch 1 ,0x8acb 
-00ad 1fe17ef0 and pdata ,0xf0 ,pdata 
-00ae 6848820f fetcht 1 ,mem_otp_charge_pump 
-00af 6048c15b storet 1 ,mem_otp_charge_pump_x 
-00b0 9841fe00 ior temp ,pdata 
-00b1 67f08acb store 1 ,0x8acb 
-00b2 6fe08210 fetch 1 ,mem_otp_dpll_ibais 
-00b3 67e0c15c store 1 ,mem_otp_dpll_ibais_x 
-00b4 2feffe03 isolate1 3 ,pdata 
-00b5 6ff08a06 fetch 1 ,0x8a06 
-00b6 7920fe07 setflag true ,7 ,pdata 
-00b7 67f08a06 store 1 ,0x8a06 
-00b8 6fe08210 fetch 1 ,mem_otp_dpll_ibais 
-00b9 1fe10407 and pdata ,7 ,temp 
-00ba 18520400 lshift4 temp ,temp 
-00bb 18438400 lshift temp ,temp 
-00bc 6048c438 storet 1 ,mem_ring_ibias_trim 
-00bd 6ff08a02 fetch 1 ,0x8a02 
-00be 1fe17e1f and pdata ,0x1f ,pdata 
-00bf 9841fe00 ior temp ,pdata 
-00c0 67f08a02 store 1 ,0x8a02 
-00c1 20600000 rtn 
+00ad 6ff08acb fetch 1 ,0x8acb 
+00ae 1fe17ef0 and pdata ,0xf0 ,pdata 
+00af 6848820f fetcht 1 ,mem_otp_charge_pump 
+00b0 6048c15b storet 1 ,mem_otp_charge_pump_x 
+00b1 9841fe00 ior temp ,pdata 
+00b2 67f08acb store 1 ,0x8acb 
+00b3 6fe08210 fetch 1 ,mem_otp_dpll_ibais 
+00b4 67e0c15c store 1 ,mem_otp_dpll_ibais_x 
+00b5 2feffe03 isolate1 3 ,pdata 
+00b6 6ff08a06 fetch 1 ,0x8a06 
+00b7 7920fe07 setflag true ,7 ,pdata 
+00b8 67f08a06 store 1 ,0x8a06 
+00b9 6fe08210 fetch 1 ,mem_otp_dpll_ibais 
+00ba 1fe10407 and pdata ,7 ,temp 
+00bb 18520400 lshift4 temp ,temp 
+00bc 18438400 lshift temp ,temp 
+00bd 6048c438 storet 1 ,mem_ring_ibias_trim 
+00be 6ff08a02 fetch 1 ,0x8a02 
+00bf 1fe17e1f and pdata ,0x1f ,pdata 
+00c0 9841fe00 ior temp ,pdata 
+00c1 67f08a02 store 1 ,0x8a02 
+00c2 20600000 rtn 
 
 p_set_otp_config_wake:
-00c2 6fe1415b fetch 2 ,mem_otp_charge_pump_x 
-00c3 207a0000 rtn blank 
-00c4 67e1020f store 2 ,mem_otp_charge_pump 
-00c5 202000ac branch p_set_otp_config2 
+00c3 6fe1415b fetch 2 ,mem_otp_charge_pump_x 
+00c4 207a0000 rtn blank 
+00c5 67e1020f store 2 ,mem_otp_charge_pump 
+00c6 202000ad branch p_set_otp_config2 
 
 p_rf_rx_enable:
-00c6 2040686f call rf_debug_rx_gpio_high 
-00c7 204021ba call rf_rx_agc_set 
-00c8 18002a08 force 8 ,radio_ctrl 
-00c9 18002a00 force 0 ,radio_ctrl 
-00ca 580aaada setarg 0x0aaada 
-00cb 67f18a0f store 3 ,0x8a0f 
-00cc 708a2540 jam 0x40 ,0x8a25 
-00cd 708a2610 jam 0x10 ,0x8a26 
-00ce 2000003c nop 60 
-00cf 708a01fb jam 0xfb ,0x8a01 
-00d0 708a25ff jam 0xff ,0x8a25 
-00d1 708a2630 jam 0x30 ,0x8a26 
-00d2 708a16fe jam 0xfe ,0x8a16 
-00d3 202021b4 branch rf_rx_enable + 14 
+00c7 2040686f call rf_debug_rx_gpio_high 
+00c8 204021ba call rf_rx_agc_set 
+00c9 18002a08 force 8 ,radio_ctrl 
+00ca 18002a00 force 0 ,radio_ctrl 
+00cb 580aaada setarg 0x0aaada 
+00cc 67f18a0f store 3 ,0x8a0f 
+00cd 708a2540 jam 0x40 ,0x8a25 
+00ce 708a2610 jam 0x10 ,0x8a26 
+00cf 2000003c nop 60 
+00d0 708a01fb jam 0xfb ,0x8a01 
+00d1 708a25ff jam 0xff ,0x8a25 
+00d2 708a2630 jam 0x30 ,0x8a26 
+00d3 708a16fe jam 0xfe ,0x8a16 
+00d4 202021b4 branch rf_rx_enable + 14 
 
 p_txon:
-00d4 580aaa7e setarg 0x0aaa7e 
-00d5 67f18a0f store 3 ,0x8a0f 
-00d6 2000003c nop 60 
-00d7 708a2500 jam 0x00 ,0x8a25 
-00d8 708a260d jam 0x0d ,0x8a26 
-00d9 708a16f6 jam 0xf6 ,0x8a16 
-00da 20202203 branch txon + 7 
+00d5 580aaa7e setarg 0x0aaa7e 
+00d6 67f18a0f store 3 ,0x8a0f 
+00d7 2000003c nop 60 
+00d8 708a2500 jam 0x00 ,0x8a25 
+00d9 708a260d jam 0x0d ,0x8a26 
+00da 708a16f6 jam 0xf6 ,0x8a16 
+00db 20202203 branch txon + 7 
 
 p_usb_rx_data:
-00db 6ff08c25 fetch 1 ,core_usb_txbusy 
-00dc c3830000 rtnbit1 usb_status_rxfull 
-00dd 20207993 branch usb_rx_data 
+00dc 6ff08c25 fetch 1 ,core_usb_txbusy 
+00dd c3830000 rtnbit1 usb_status_rxfull 
+00de 20207993 branch usb_rx_data 
 
 p_usb_rx:
-00de 6fe08709 fetch 1 ,mem_usb_status 
-00df c4028000 rtnbit0 usb_status_rxready 
-00e0 20407989 call usb_rx_len 
-00e1 2841fe0d compare 13 ,temp ,0xff 
-00e2 2020f999 branch usb_rx_ep13 ,true 
-00e3 6fe0c696 fetch 1 ,mem_setreport_count 
-00e4 c00080ed beq 1 ,p_setreport_next_page_data 
-00e5 d8a0086d arg mem_usb_setup ,contw 
-00e6 20407994 call usb_rx_read 
+00df 6fe08709 fetch 1 ,mem_usb_status 
+00e0 c4028000 rtnbit0 usb_status_rxready 
+00e1 20407989 call usb_rx_len 
+00e2 2841fe0d compare 13 ,temp ,0xff 
+00e3 2020f999 branch usb_rx_ep13 ,true 
+00e4 6fe0c696 fetch 1 ,mem_setreport_count 
+00e5 c00080ee beq 1 ,p_setreport_next_page_data 
+00e6 d8a0086d arg mem_usb_setup ,contw 
+00e7 20407994 call usb_rx_read 
 
 p_usb_rx_next:
-00e7 6fe0870c fetch 1 ,mem_usb_read_len 
-00e8 c0007986 beq 0x00 ,usb_rx_no_data 
-00e9 c000f9b6 beq 0x01 ,usb_out_one_byte 
-00ea 1fe67c07 sub pdata ,7 ,null 
-00eb 20610000 rtn positive 
-00ec 202000fb branch p_usb_class_type 
+00e8 6fe0870c fetch 1 ,mem_usb_read_len 
+00e9 c0007986 beq 0x00 ,usb_rx_no_data 
+00ea c000f9b6 beq 0x01 ,usb_out_one_byte 
+00eb 1fe67c07 sub pdata ,7 ,null 
+00ec 20610000 rtn positive 
+00ed 202000fc branch p_usb_class_type 
 
 p_setreport_next_page_data:
-00ed d8a00875 arg mem_usb0_set_report_data ,contw 
-00ee 20407994 call usb_rx_read 
-00ef 70469600 jam 0 ,mem_setreport_count 
-00f0 6fe0870c fetch 1 ,mem_usb_read_len 
-00f1 c00080f5 beq 0x01 ,p_usb_out_one_byte 
-00f2 7008f701 jam 1 ,mem_usb0_get_set_report 
-00f3 708c1b03 jam 0x03 ,core_usb_clear_nak 
-00f4 20600000 rtn 
+00ee d8a00875 arg mem_usb0_set_report_data ,contw 
+00ef 20407994 call usb_rx_read 
+00f0 70469600 jam 0 ,mem_setreport_count 
+00f1 6fe0870c fetch 1 ,mem_usb_read_len 
+00f2 c00080f6 beq 0x01 ,p_usb_out_one_byte 
+00f3 7008f701 jam 1 ,mem_usb0_get_set_report 
+00f4 708c1b03 jam 0x03 ,core_usb_clear_nak 
+00f5 20600000 rtn 
 
 p_usb_out_one_byte:
-00f5 6fe0886d fetch 1 ,mem_usb_setup 
-00f6 c3838000 rtnbit1 7 
-00f7 6fe08875 fetch 1 ,mem_usb0_set_report_data 
-00f8 20407b6a call usb_get_led_status 
-00f9 708c1b01 jam 0x1 ,core_usb_clear_nak 
-00fa 20600000 rtn 
+00f6 6fe0886d fetch 1 ,mem_usb_setup 
+00f7 c3838000 rtnbit1 7 
+00f8 6fe08875 fetch 1 ,mem_usb0_set_report_data 
+00f9 20407b6a call usb_get_led_status 
+00fa 708c1b01 jam 0x1 ,core_usb_clear_nak 
+00fb 20600000 rtn 
 
 p_usb_class_type:
-00fb 793f8023 set0 mark_isstr ,mark 
-00fc 6fe0886d fetch 1 ,mem_usb_setup_bmrequesttype 
-00fd 1fe17e80 and_into 0x80 ,pdata 
-00fe c04079ba beq in_device ,usb_in_device 
-00ff c0000101 beq out_device ,p_usb_out_device 
-0100 2020235a branch assert 
+00fc 793f8023 set0 mark_isstr ,mark 
+00fd 6fe0886d fetch 1 ,mem_usb_setup_bmrequesttype 
+00fe 1fe17e80 and_into 0x80 ,pdata 
+00ff c04079ba beq in_device ,usb_in_device 
+0100 c0000102 beq out_device ,p_usb_out_device 
+0101 2020235a branch assert 
 
 p_usb_out_device:
-0101 6fe0886d fetch 1 ,mem_usb_setup_bmrequesttype 
-0102 1ff1fe00 rshift4 pdata ,pdata 
-0103 1fe37e00 rshift pdata ,pdata 
-0104 1fe17e03 and_into 0x03 ,pdata 
-0105 c00079d6 beq standard_req ,usb_out_standard_req 
-0106 c0008109 beq class_req ,p_usb_out_class_req 
-0107 c00179e3 beq manufacturer_req ,usb_out_manufacturer_req 
-0108 2020235a branch assert 
+0102 6fe0886d fetch 1 ,mem_usb_setup_bmrequesttype 
+0103 1ff1fe00 rshift4 pdata ,pdata 
+0104 1fe37e00 rshift pdata ,pdata 
+0105 1fe17e03 and_into 0x03 ,pdata 
+0106 c00079d6 beq standard_req ,usb_out_standard_req 
+0107 c000810a beq class_req ,p_usb_out_class_req 
+0108 c00179e3 beq manufacturer_req ,usb_out_manufacturer_req 
+0109 2020235a branch assert 
 
 p_usb_out_class_req:
-0109 6fe0886e fetch 1 ,mem_usb_setup_brequest 
-010a c0057b4b beq set_idle ,usb_set_idle 
-010b c004810e beq set_report ,p_usb_set_report 
-010c c005fb7c beq set_protocol ,usb_set_protocol_req 
-010d 202079e4 branch usb0_force_stall 
+010a 6fe0886e fetch 1 ,mem_usb_setup_brequest 
+010b c0057b4b beq set_idle ,usb_set_idle 
+010c c004810f beq set_report ,p_usb_set_report 
+010d c005fb7c beq set_protocol ,usb_set_protocol_req 
+010e 202079e4 branch usb0_force_stall 
 
 p_usb_set_report:
-010e 20003a98 nop 15000 
-010f d8a00875 arg mem_usb0_set_report_data ,contw 
-0110 204000db call p_usb_rx_data 
-0111 7008f701 jam 1 ,mem_usb0_get_set_report 
-0112 20407b6e call usb_set_report_resume_judge 
-0113 6fe0c696 fetch 1 ,mem_setreport_count 
-0114 1fe0fe01 pincrease 1 
-0115 67e0c696 store 1 ,mem_setreport_count 
-0116 6fe1086f fetch 2 ,mem_usb_setup_bvalue 
-0117 67e108f5 store 2 ,mem_usb_setup_bvalue_temp 
-0118 708c1b02 jam 0x2 ,core_usb_clear_nak 
-0119 20207b65 branch usb_set_report_next 
+010f 20003a98 nop 15000 
+0110 d8a00875 arg mem_usb0_set_report_data ,contw 
+0111 204000dc call p_usb_rx_data 
+0112 7008f701 jam 1 ,mem_usb0_get_set_report 
+0113 20407b6e call usb_set_report_resume_judge 
+0114 6fe0c696 fetch 1 ,mem_setreport_count 
+0115 1fe0fe01 pincrease 1 
+0116 67e0c696 store 1 ,mem_setreport_count 
+0117 6fe1086f fetch 2 ,mem_usb_setup_bvalue 
+0118 67e108f5 store 2 ,mem_usb_setup_bvalue_temp 
+0119 708c1b02 jam 0x2 ,core_usb_clear_nak 
+011a 20207b65 branch usb_set_report_next 
+
+p_usb_tx:
+011b 6fe0890d fetch 1 ,mem_usb_tx_enable 
+011c 207a0000 rtn blank 
+011d 6ff08c25 fetch 1 ,core_usb_txbusy 
+011e 1fe17e0f and_into 0x0f ,pdata 
+011f 243a7c30 nbranch usb_inwake_state_tx_dispose ,blank 
+0120 6fe0890e fetch 1 ,mem_usb_device_enumeration_endflag 
+0121 203a7c06 branch usb_tx_fifo_release ,blank 
+0122 6fe08900 fetch 1 ,mem_usb_state 
+0123 c001fc40 beq usb_sleep ,usb_windows_wakeup 
+0124 c0817c06 bne usb_connected ,usb_tx_fifo_release 
+0125 6fe08902 fetch 1 ,mem_usb_clear_remote_wakeup 
+0126 243a7c06 nbranch usb_tx_fifo_release ,blank 
+0127 20400129 call p_usb_tx_data_ep1 
+0128 2020012d branch p_usb_tx_data_ep2 
+
+p_usb_tx_data_ep1:
+0129 6ff08c25 fetch 1 ,core_usb_txbusy 
+012a 1fe17e0f and_into 0x0f ,pdata 
+012b 247a0000 nrtn blank 
+012c 20207bf0 branch usb_tx_data_ep1 + 2 
+
+p_usb_tx_data_ep2:
+012d 6ff08c25 fetch 1 ,core_usb_txbusy 
+012e 1fe17e0f and_into 0x0f ,pdata 
+012f 247a0000 nrtn blank 
+0130 20207bfb branch usb_tx_data_ep2 + 2 
 
 p_rx_dcoc:
-011a 20758000 rtn wake 
-011b 20402160 call set_sync_on 
-011c d8400027 arg 39 ,temp 
-011d 2040216f call set_freq_rx 
-011e 204021a6 call rf_rx_enable 
-011f 708a257f jam 0x7f ,0x8a25 
-0120 708a301a jam 0x1a ,0x8a30 
-0121 708a3178 jam 0x78 ,0x8a31 
-0122 708a8fb2 jam 0xb2 ,0x8a8f 
-0123 708ac200 jam 0 ,0x8ac2 
-0124 708ac300 jam 0 ,0x8ac3 
-0125 d8e00006 arg 6 ,queue 
-0126 20400137 call p_rx_dcoc_avg 
-0127 2a2ffe0d isolate1 13 ,rega 
-0128 2040211d call qset_start 
-0129 2a4ffe0d isolate1 13 ,regb 
-012a 2040211e call qset_p 
-012b d8e00005 arg 5 ,queue 
+0131 20758000 rtn wake 
+0132 20402160 call set_sync_on 
+0133 d8400027 arg 39 ,temp 
+0134 2040216f call set_freq_rx 
+0135 204021a6 call rf_rx_enable 
+0136 708a257f jam 0x7f ,0x8a25 
+0137 708a301a jam 0x1a ,0x8a30 
+0138 708a3178 jam 0x78 ,0x8a31 
+0139 708a8fb2 jam 0xb2 ,0x8a8f 
+013a 708ac200 jam 0 ,0x8ac2 
+013b 708ac300 jam 0 ,0x8ac3 
+013c d8e00006 arg 6 ,queue 
+013d 2040014e call p_rx_dcoc_avg 
+013e 2a2ffe0d isolate1 13 ,rega 
+013f 2040211d call qset_start 
+0140 2a4ffe0d isolate1 13 ,regb 
+0141 2040211e call qset_p 
+0142 d8e00005 arg 5 ,queue 
 
 p_rx_dcoc_loop2:
-012c 2040211c call qset1_p 
-012d 2040211e call qset_p 
-012e 20400137 call p_rx_dcoc_avg 
-012f d8a08ac2 arg 0x8ac2 ,contw 
-0130 1a31fe00 rshift4 rega ,pdata 
-0131 20402117 call qsetxor 
-0132 1a51fe00 rshift4 regb ,pdata 
-0133 20402117 call qsetxor 
-0134 18e08fff increase -1 ,queue 
-0135 2021012c branch p_rx_dcoc_loop2 ,positive 
-0136 2020214f branch rx_dcoc_loop2 + 10 
+0143 2040211c call qset1_p 
+0144 2040211e call qset_p 
+0145 2040014e call p_rx_dcoc_avg 
+0146 d8a08ac2 arg 0x8ac2 ,contw 
+0147 1a31fe00 rshift4 rega ,pdata 
+0148 20402117 call qsetxor 
+0149 1a51fe00 rshift4 regb ,pdata 
+014a 20402117 call qsetxor 
+014b 18e08fff increase -1 ,queue 
+014c 20210143 branch p_rx_dcoc_loop2 ,positive 
+014d 2020214f branch rx_dcoc_loop2 + 10 
 
 p_rx_dcoc_avg:
-0137 2000003c nop 60 
-0138 58000f00 setarg mem_dcoc_buf 
-0139 67f10982 store 2 ,0x8982 
-013a 58000ff0 setarg mem_dcoc_buf_end 
-013b 67f10984 store 2 ,0x8984 
-013c 70898109 jam 0x9 ,0x8981 
-013d 70898103 jam 0x3 ,0x8981 
-013e 70898006 jam 0x6 ,0x8980 
-013f 2000003c nop 60 
-0140 da200000 arg 0 ,rega 
-0141 da400000 arg 0 ,regb 
-0142 df200010 arg 16 ,loopcnt 
-0143 d8c00f00 arg mem_dcoc_buf ,contr 
-0144 2020212d branch rx_dcoc_loop 
+014e 2000003c nop 60 
+014f 58000f00 setarg mem_dcoc_buf 
+0150 67f10982 store 2 ,0x8982 
+0151 58000ff0 setarg mem_dcoc_buf_end 
+0152 67f10984 store 2 ,0x8984 
+0153 70898109 jam 0x9 ,0x8981 
+0154 70898103 jam 0x3 ,0x8981 
+0155 70898006 jam 0x6 ,0x8980 
+0156 2000003c nop 60 
+0157 da200000 arg 0 ,rega 
+0158 da400000 arg 0 ,regb 
+0159 df200010 arg 16 ,loopcnt 
+015a d8c00f00 arg mem_dcoc_buf ,contr 
+015b 2020212d branch rx_dcoc_loop 
 
 p_rfpll_aac_ghpc:
-0145 20758000 rtn wake 
-0146 20202272 branch rfpll_aac_ghpc + 1 
+015c 20758000 rtn wake 
+015d 20202272 branch rfpll_aac_ghpc + 1 
 
 p_dpll_ring_ibias_calc:
-0147 20600000 rtn 
+015e 20600000 rtn 
 
 p_sadc_calibration:
-0148 20758000 rtn wake 
-0149 708a0777 jam 0x77 ,core_gpadc_ctrl 
-014a 708a08c9 jam 0xc9 ,core_gpadc_cfg0 
-014b 708a0b01 jam 0x01 ,core_gpadc_cfg3 
-014c 6fe0c409 fetch 1 ,mem_adc_clkdiv 
-014d 67f080cd store 1 ,core_sadc_clkdiv 
-014e 20000bb8 nop 3000 
-014f 20400170 call p_sadc_read 
-0150 708a08c1 jam 0xc1 ,core_gpadc_cfg0 
-0151 6a40c419 fetchr regb ,1 ,mem_spi_write_addr 
-0152 df200008 arg 8 ,loopcnt 
-0153 20406f58 call sadc_cal_read + 1 
-0154 6fe0c419 fetch 1 ,mem_spi_write_addr 
-0155 67e0c433 store 1 ,mem_adc_cal_c7 
-0156 6240c419 storer regb ,1 ,mem_spi_write_addr 
-0157 20600000 rtn 
+015f 20758000 rtn wake 
+0160 708a0777 jam 0x77 ,core_gpadc_ctrl 
+0161 708a08c9 jam 0xc9 ,core_gpadc_cfg0 
+0162 708a0b01 jam 0x01 ,core_gpadc_cfg3 
+0163 6fe0c409 fetch 1 ,mem_adc_clkdiv 
+0164 67f080cd store 1 ,core_sadc_clkdiv 
+0165 20000bb8 nop 3000 
+0166 20400187 call p_sadc_read 
+0167 708a08c1 jam 0xc1 ,core_gpadc_cfg0 
+0168 6a40c419 fetchr regb ,1 ,mem_spi_write_addr 
+0169 df200008 arg 8 ,loopcnt 
+016a 20406f58 call sadc_cal_read + 1 
+016b 6fe0c419 fetch 1 ,mem_spi_write_addr 
+016c 67e0c433 store 1 ,mem_adc_cal_c7 
+016d 6240c419 storer regb ,1 ,mem_spi_write_addr 
+016e 20600000 rtn 
 
 p_enable_adc:
-0158 20400166 call p_sadc_cal_write 
-0159 6ff08a09 fetch 1 ,core_gpadc_cfg1 
-015a 793ffe07 set0 7 ,pdata 
-015b 67f08a09 store 1 ,core_gpadc_cfg1 
-015c 708a0777 jam 0x77 ,core_gpadc_ctrl 
-015d 708a08c1 jam 0xc1 ,core_gpadc_cfg0 
-015e 708a0b01 jam 0x01 ,core_gpadc_cfg3 
-015f 20406f90 call sadc_channel 
-0160 6fe0c409 fetch 1 ,mem_adc_clkdiv 
-0161 67f080cd store 1 ,core_sadc_clkdiv 
-0162 20000bb8 nop 3000 
-0163 20400170 call p_sadc_read 
-0164 7080cd00 jam 0 ,core_sadc_clkdiv 
-0165 20206fa1 branch sadc_dma 
+016f 2040017d call p_sadc_cal_write 
+0170 6ff08a09 fetch 1 ,core_gpadc_cfg1 
+0171 793ffe07 set0 7 ,pdata 
+0172 67f08a09 store 1 ,core_gpadc_cfg1 
+0173 708a0777 jam 0x77 ,core_gpadc_ctrl 
+0174 708a08c1 jam 0xc1 ,core_gpadc_cfg0 
+0175 708a0b01 jam 0x01 ,core_gpadc_cfg3 
+0176 20406f90 call sadc_channel 
+0177 6fe0c409 fetch 1 ,mem_adc_clkdiv 
+0178 67f080cd store 1 ,core_sadc_clkdiv 
+0179 20000bb8 nop 3000 
+017a 20400187 call p_sadc_read 
+017b 7080cd00 jam 0 ,core_sadc_clkdiv 
+017c 20206fa1 branch sadc_dma 
 
 p_sadc_cal_write:
-0166 6ff080cc fetch 1 ,core_sadc_ctrl 
-0167 79207e01 set1 1 ,pdata 
-0168 67f080cc store 1 ,core_sadc_ctrl 
-0169 6a40c419 fetchr regb ,1 ,mem_spi_write_addr 
-016a 6fe0c433 fetch 1 ,mem_adc_cal_c7 
-016b 67e0c419 store 1 ,mem_spi_write_addr 
-016c df200008 arg 8 ,loopcnt 
-016d 20406f67 call sadc_cal_write + 4 
-016e 6240c419 storer regb ,1 ,mem_spi_write_addr 
-016f 20600000 rtn 
+017d 6ff080cc fetch 1 ,core_sadc_ctrl 
+017e 79207e01 set1 1 ,pdata 
+017f 67f080cc store 1 ,core_sadc_ctrl 
+0180 6a40c419 fetchr regb ,1 ,mem_spi_write_addr 
+0181 6fe0c433 fetch 1 ,mem_adc_cal_c7 
+0182 67e0c419 store 1 ,mem_spi_write_addr 
+0183 df200008 arg 8 ,loopcnt 
+0184 20406f67 call sadc_cal_write + 4 
+0185 6240c419 storer regb ,1 ,mem_spi_write_addr 
+0186 20600000 rtn 
 
 p_sadc_read:
-0170 7080cc03 jam 0x03 ,core_sadc_ctrl 
+0187 7080cc03 jam 0x03 ,core_sadc_ctrl 
 
 p_sadc_read_wait:
-0171 6ff08129 fetch 1 ,core_perf_status 
-0172 c3028171 bbit0 saradc_done ,p_sadc_read_wait 
-0173 68590164 fetcht 2 ,core_sadc_data 
-0174 6049440a storet 2 ,mem_adc_current_value 
-0175 7080cc00 jam 0x00 ,core_sadc_ctrl 
-0176 20600000 rtn 
+0188 6ff08129 fetch 1 ,core_perf_status 
+0189 c3028188 bbit0 saradc_done ,p_sadc_read_wait 
+018a 68590164 fetcht 2 ,core_sadc_data 
+018b 6049440a storet 2 ,mem_adc_current_value 
+018c 7080cc00 jam 0x00 ,core_sadc_ctrl 
+018d 20600000 rtn 
 
 p_set_lemode:
-0177 708a8211 jam 0x11 ,0x8a82 
-0178 708a8d12 jam 0x12 ,0x8a8d 
-0179 708a8e0a jam 0x0a ,0x8a8e 
-017a 6fe0c099 fetch 1 ,mem_fcomp_div 
-017b c0080190 beq xtal_16m ,p_set_lemode_2m_16m 
-017c 58005762 setarg 0x5762 
-017d 67f10907 store 2 ,0x8907 
+018e 708a8211 jam 0x11 ,0x8a82 
+018f 708a8d12 jam 0x12 ,0x8a8d 
+0190 708a8e0a jam 0x0a ,0x8a8e 
+0191 6fe0c099 fetch 1 ,mem_fcomp_div 
+0192 c00801a7 beq xtal_16m ,p_set_lemode_2m_16m 
+0193 58005762 setarg 0x5762 
+0194 67f10907 store 2 ,0x8907 
 
 p_set_lemode_2m:
-017e 70890103 jam 3 ,0x8901 
-017f 70893003 jam 3 ,0x8930 
-0180 c6168000 rtnmark1 mark_ble_2m 
-0181 70890101 jam 1 ,0x8901 
-0182 708a8207 jam 0x07 ,0x8a82 
-0183 708a8d44 jam 0x44 ,0x8a8d 
-0184 708a8e0a jam 0x0a ,0x8a8e 
-0185 6fe0c099 fetch 1 ,mem_fcomp_div 
-0186 c008018d beq xtal_16m ,p_set_lemode_1m_16m 
-0187 58002bb1 setarg 0x2bb1 
-0188 67f10907 store 2 ,0x8907 
+0195 70890103 jam 3 ,0x8901 
+0196 70893003 jam 3 ,0x8930 
+0197 c6168000 rtnmark1 mark_ble_2m 
+0198 70890101 jam 1 ,0x8901 
+0199 708a8207 jam 0x07 ,0x8a82 
+019a 708a8d44 jam 0x44 ,0x8a8d 
+019b 708a8e0a jam 0x0a ,0x8a8e 
+019c 6fe0c099 fetch 1 ,mem_fcomp_div 
+019d c00801a4 beq xtal_16m ,p_set_lemode_1m_16m 
+019e 58002bb1 setarg 0x2bb1 
+019f 67f10907 store 2 ,0x8907 
 
 p_set_lemode_1m:
-0189 c6978000 rtnmark0 mark_ble_lr 
-018a 70893024 jam 0x24 ,0x8930 
-018b 70890105 jam 5 ,0x8901 
-018c 20600000 rtn 
+01a0 c6978000 rtnmark0 mark_ble_lr 
+01a1 70893024 jam 0x24 ,0x8930 
+01a2 70890105 jam 5 ,0x8901 
+01a3 20600000 rtn 
 
 p_set_lemode_1m_16m:
-018d 58004189 setarg 0x4189 
-018e 67f10907 store 2 ,0x8907 
-018f 20200189 branch p_set_lemode_1m 
+01a4 58004189 setarg 0x4189 
+01a5 67f10907 store 2 ,0x8907 
+01a6 202001a0 branch p_set_lemode_1m 
 
 p_set_lemode_2m_16m:
-0190 58008312 setarg 0x8312 
-0191 67f10907 store 2 ,0x8907 
-0192 2020017e branch p_set_lemode_2m 
+01a7 58008312 setarg 0x8312 
+01a8 67f10907 store 2 ,0x8907 
+01a9 20200195 branch p_set_lemode_2m 
 
 p_le_parse:
-0193 6fe0c334 fetch 1 ,mem_le_packet_llid 
-0194 c1000000 rtneq llid_reserved 
-0195 c001b04a beq llid_le_ll ,le_parse_ll 
-0196 202028e1 branch le_parse_l2cap 
+01aa 6fe0c334 fetch 1 ,mem_le_packet_llid 
+01ab c1000000 rtneq llid_reserved 
+01ac c001b04a beq llid_le_ll ,le_parse_ll 
+01ad 202028e1 branch le_parse_l2cap 
 
 p_le_init_adv:
-0197 793f8030 set0 mark_ble_crc_fail ,mark 
-0198 20202af6 branch le_init_adv + 1 
+01ae 793f8030 set0 mark_ble_crc_fail ,mark 
+01af 20202af6 branch le_init_adv + 1 
 
 p_g24_bind_data_parse_next:
-0199 6fe0c5ea fetch 1 ,mem_24g_rxdata_temp + 2 
-019a c0553329 beq datatype_bind ,g24_bind_first_step 
-019b c02ab33a beq datatype_config ,g24_bind_second_step 
-019c c011019f beq datatype_ok ,p_g24_bind_third_step 
-019d c07fb59b beq datatype_attemp ,g24_data_attemp 
-019e 20600000 rtn 
+01b0 6fe0c5ea fetch 1 ,mem_24g_rxdata_temp + 2 
+01b1 c0553329 beq datatype_bind ,g24_bind_first_step 
+01b2 c02ab33a beq datatype_config ,g24_bind_second_step 
+01b3 c01101b6 beq datatype_ok ,p_g24_bind_third_step 
+01b4 c07fb59b beq datatype_attemp ,g24_data_attemp 
+01b5 20600000 rtn 
 
 p_g24_bind_third_step:
-019f 6fe0c5ae fetch 1 ,mem_24g_pair_switch 
-01a0 203a01a5 branch p_g24_bind_third_step_skip ,blank 
-01a1 6fe245ec fetch 4 ,mem_24g_rxdata_temp + 4 
-01a2 684a462c fetcht 4 ,mem_24g_transmitter_addr 
-01a3 98467c00 isub temp ,null 
-01a4 24628000 nrtn zero 
+01b6 6fe0c5ae fetch 1 ,mem_24g_pair_switch 
+01b7 203a01bc branch p_g24_bind_third_step_skip ,blank 
+01b8 6fe245ec fetch 4 ,mem_24g_rxdata_temp + 4 
+01b9 684a462c fetcht 4 ,mem_24g_transmitter_addr 
+01ba 98467c00 isub temp ,null 
+01bb 24628000 nrtn zero 
 
 p_g24_bind_third_step_skip:
-01a5 6fe0c5eb fetch 1 ,mem_24g_rxdata_temp + 3 
-01a6 c00081a9 beq datatype_device1 ,p_g24_bind_third_step_device1 
-01a7 c00101b1 beq datatype_device2 ,p_g24_bind_third_step_device2 
-01a8 20600000 rtn 
+01bc 6fe0c5eb fetch 1 ,mem_24g_rxdata_temp + 3 
+01bd c00081c0 beq datatype_device1 ,p_g24_bind_third_step_device1 
+01be c00101c8 beq datatype_device2 ,p_g24_bind_third_step_device2 
+01bf 20600000 rtn 
 
 p_g24_bind_third_step_device1:
-01a9 6fe0c5de fetch 1 ,mem_24g_device1_bind_disable 
-01aa 247a0000 nrtn blank 
-01ab 6fe0c5d3 fetch 1 ,mem_24g_device1_bind_step 
-01ac c00101ae beq 2 ,p_g24_bind_dvc1_step_success 
-01ad 20600000 rtn 
+01c0 6fe0c5de fetch 1 ,mem_24g_device1_bind_disable 
+01c1 247a0000 nrtn blank 
+01c2 6fe0c5d3 fetch 1 ,mem_24g_device1_bind_step 
+01c3 c00101c5 beq 2 ,p_g24_bind_dvc1_step_success 
+01c4 20600000 rtn 
 
 p_g24_bind_dvc1_step_success:
-01ae 7045de01 jam 1 ,mem_24g_device1_bind_disable 
-01af 2040338d call g24_binding_dvc1_living 
-01b0 2020336b branch g24_bind_dvc1_step_success + 1 
+01c5 7045de01 jam 1 ,mem_24g_device1_bind_disable 
+01c6 2040338d call g24_binding_dvc1_living 
+01c7 2020336b branch g24_bind_dvc1_step_success + 1 
 
 p_g24_bind_third_step_device2:
-01b1 6fe0c5df fetch 1 ,mem_24g_device2_bind_disable 
-01b2 247a0000 nrtn blank 
-01b3 6fe0c5d4 fetch 1 ,mem_24g_device2_bind_step 
-01b4 c08001b6 bne 0 ,p_g24_bind_dvc2_step_success 
-01b5 20600000 rtn 
+01c8 6fe0c5df fetch 1 ,mem_24g_device2_bind_disable 
+01c9 247a0000 nrtn blank 
+01ca 6fe0c5d4 fetch 1 ,mem_24g_device2_bind_step 
+01cb c08001cd bne 0 ,p_g24_bind_dvc2_step_success 
+01cc 20600000 rtn 
 
 p_g24_bind_dvc2_step_success:
-01b6 7045df01 jam 1 ,mem_24g_device2_bind_disable 
-01b7 20403393 call g24_binding_dvc2_living 
-01b8 20203378 branch g24_bind_dvc2_step_success + 1 
+01cd 7045df01 jam 1 ,mem_24g_device2_bind_disable 
+01ce 20403393 call g24_binding_dvc2_living 
+01cf 20203378 branch g24_bind_dvc2_step_success + 1 
 
 p_g24_mode_switch_bind_search:
-01b9 6fe0c616 fetch 1 ,mem_24g_work_mode 
-01ba c1000000 rtneq dongle_work 
-01bb 6fe0c62a fetch 1 ,mem_24g_b_s_mode_switch_disable 
-01bc 247a0000 nrtn blank 
-01bd 6fe0c628 fetch 1 ,mem_24g_mode_b_s_switch_exit 
-01be 247a0000 nrtn blank 
-01bf 6fe0c624 fetch 1 ,mem_24g_mode_b_s_switch 
-01c0 207a0000 rtn blank 
-01c1 6fe0c5d3 fetch 1 ,mem_24g_device1_bind_step 
-01c2 c1800000 rtnne 0 
-01c3 6fe0c5d4 fetch 1 ,mem_24g_device2_bind_step 
-01c4 c1800000 rtnne 0 
-01c5 20203436 branch g24_mode_switch_bind_search + 9 
+01d0 6fe0c616 fetch 1 ,mem_24g_work_mode 
+01d1 c1000000 rtneq dongle_work 
+01d2 6fe0c62a fetch 1 ,mem_24g_b_s_mode_switch_disable 
+01d3 247a0000 nrtn blank 
+01d4 6fe0c628 fetch 1 ,mem_24g_mode_b_s_switch_exit 
+01d5 247a0000 nrtn blank 
+01d6 6fe0c624 fetch 1 ,mem_24g_mode_b_s_switch 
+01d7 207a0000 rtn blank 
+01d8 6fe0c5d3 fetch 1 ,mem_24g_device1_bind_step 
+01d9 c1800000 rtnne 0 
+01da 6fe0c5d4 fetch 1 ,mem_24g_device2_bind_step 
+01db c1800000 rtnne 0 
+01dc 20203436 branch g24_mode_switch_bind_search + 9 
 
 p_g24_bind_mode_auto:
-01c6 6fe0c616 fetch 1 ,mem_24g_work_mode 
-01c7 c1808000 rtnne dongle_bind 
-01c8 204001ca call p_g24_bind_init 
-01c9 2020346d branch g24_bind_mode_auto + 4 
+01dd 6fe0c616 fetch 1 ,mem_24g_work_mode 
+01de c1808000 rtnne dongle_bind 
+01df 204001e1 call p_g24_bind_init 
+01e0 2020346d branch g24_bind_mode_auto + 4 
 
 p_g24_bind_init:
-01ca 6fe0c615 fetch 1 ,mem_24g_mode_init 
-01cb c3808000 rtnbit1 dongle_bind 
-01cc 79207e01 set1 dongle_bind ,pdata 
-01cd 67e0c615 store 1 ,mem_24g_mode_init 
-01ce 58000000 setarg 0 
-01cf 67e1c5d3 store 3 ,mem_24g_device1_bind_step 
-01d0 20203307 branch g24_bind_init + 8 
+01e1 6fe0c615 fetch 1 ,mem_24g_mode_init 
+01e2 c3808000 rtnbit1 dongle_bind 
+01e3 79207e01 set1 dongle_bind ,pdata 
+01e4 67e0c615 store 1 ,mem_24g_mode_init 
+01e5 58000000 setarg 0 
+01e6 67e1c5d3 store 3 ,mem_24g_device1_bind_step 
+01e7 20203307 branch g24_bind_init + 8 
 
 p_dongle_usb_dispatch:
-01d1 204001d3 call p_wdt_kick 
-01d2 20204868 branch dongle_usb_dispatch + 1 
+01e8 204001ea call p_wdt_kick 
+01e9 20204868 branch dongle_usb_dispatch + 1 
 
 p_wdt_kick:
-01d3 58000010 setarg 16 
-01d4 202070c8 branch wdt_init_config 
+01ea 58000010 setarg 16 
+01eb 202070c8 branch wdt_init_config 
 
 p_dongle_default_init:
-01d5 204047c3 call dongle_default_init + 1 
-01d6 6fe0c695 fetch 1 ,mem_24g_pair_tx_power_init 
-01d7 67e0c5d1 store 1 ,mem_24g_pair_tx_power 
-01d8 7045ca00 jam off ,mem_24g_disable_fec1 
-01d9 20403281 call g24_enable_1m 
-01da 6fe0c669 fetch 1 ,mem_dg_sys_config 
-01db c4000000 rtnbit0 dg_enable_new_revision 
-01dc 7045ca01 jam on ,mem_24g_disable_fec1 
-01dd 20203284 branch g24_enable_2m 
+01ec 204047c3 call dongle_default_init + 1 
+01ed 6fe0c695 fetch 1 ,mem_24g_pair_tx_power_init 
+01ee 67e0c5d1 store 1 ,mem_24g_pair_tx_power 
+01ef 7045ca00 jam off ,mem_24g_disable_fec1 
+01f0 20403281 call g24_enable_1m 
+01f1 6fe0c669 fetch 1 ,mem_dg_sys_config 
+01f2 c4000000 rtnbit0 dg_enable_new_revision 
+01f3 7045ca01 jam on ,mem_24g_disable_fec1 
+01f4 20203284 branch g24_enable_2m 
 
 p_g24_receive_skip_end:
-01de 6fe0c669 fetch 1 ,mem_dg_sys_config 
-01df c3003165 bbit0 dg_enable_new_revision ,g24_receive_skip_end + 1 
-01e0 7837fc00 enable user3 
-01e1 20000018 nop 24 
-01e2 6fe0c4f8 fetch 1 ,mem_24g_rxbuf + 1 
-01e3 79207e00 set1 bit_ack_24g ,pdata 
-01e4 67e0c4f8 store 1 ,mem_24g_rxbuf + 1 
-01e5 204033a5 call g24_ackpayload_prep 
-01e6 204031e5 call g24_transmit_prep 
-01e7 20203195 branch g24_transmit 
+01f5 6fe0c669 fetch 1 ,mem_dg_sys_config 
+01f6 c3003165 bbit0 dg_enable_new_revision ,g24_receive_skip_end + 1 
+01f7 7837fc00 enable user3 
+01f8 20000018 nop 24 
+01f9 6fe0c4f8 fetch 1 ,mem_24g_rxbuf + 1 
+01fa 79207e00 set1 bit_ack_24g ,pdata 
+01fb 67e0c4f8 store 1 ,mem_24g_rxbuf + 1 
+01fc 204033a5 call g24_ackpayload_prep 
+01fd 204031e5 call g24_transmit_prep 
+01fe 20203195 branch g24_transmit 
               org 0x2000
 
 start:
Index: program/patch.prog
===================================================================
--- /1121s/branch/dongle/1m/YDN_usb_1m_64k/program/patch.prog	(revision 3739)
+++ /1121s/branch/dongle/1m/YDN_usb_1m_64k/program/patch.prog	(working copy)
@@ -25,6 +25,7 @@
 
 pf_patch_ext:
 	beq patch20_0,p_usb_class_type
+	beq patch20_6,p_usb_tx
 	beq patch27_1,p_le_parse
 	beq patch29_5,p_le_init_adv
 	beq patch2d_7,p_g24_receive_skip_end
@@ -84,11 +85,7 @@
 //	branch initialize_radio_cont+1
 	fetch 1,mem_wdt_always_work
 	call wdt_set_disable,blank
-	
-	//fetch 1,0x8134
-	//increase 2,pdata
-	//store 1,0x8134
-	
+
 	until null,lpo_edge
 	jam 0x5f,0x813b 
 	fetch 1,mem_fcomp_div
@@ -371,6 +368,33 @@
 	jam 0x2,core_usb_clear_nak
 	branch usb_set_report_next	
 
+p_usb_tx:
+	fetch 1,mem_usb_tx_enable
+	rtn blank
+	fetch 1,core_usb_txbusy
+	and_into 0x0f,pdata
+	nbranch usb_inwake_state_tx_dispose,blank
+	fetch 1,mem_usb_device_enumeration_endflag
+	branch usb_tx_fifo_release,blank
+	fetch 1,mem_usb_state
+	beq USB_SLEEP,usb_windows_wakeup
+	bne USB_CONNECTED,usb_tx_fifo_release
+	fetch 1,mem_usb_clear_remote_wakeup
+	nbranch usb_tx_fifo_release,blank
+	call p_usb_tx_data_ep1
+	branch p_usb_tx_data_ep2
+	
+p_usb_tx_data_ep1:
+	fetch 1,core_usb_txbusy
+	and_into 0x0f,pdata
+	nrtn blank
+	branch usb_tx_data_ep1+2
+p_usb_tx_data_ep2:
+	fetch 1,core_usb_txbusy
+	and_into 0x0f,pdata
+	nrtn blank
+	branch usb_tx_data_ep2+2
+
 p_rx_dcoc:
 	rtn wake
 	call set_sync_on
@@ -617,6 +641,7 @@
 	fetch 1,mem_24g_pair_tx_power_init
 	store 1,mem_24g_pair_tx_power
 	
+	// jam ON,mem_24g_disable_fec1
 	jam OFF,mem_24g_disable_fec1
 	call g24_enable_1M
 	fetch 1,mem_dg_sys_config
Index: sched/1305.dat
===================================================================
--- /1121s/branch/dongle/1m/YDN_usb_1m_64k/sched/1305.dat	(revision 3739)
+++ /1121s/branch/dongle/1m/YDN_usb_1m_64k/sched/1305.dat	(working copy)
@@ -1,7 +1,7 @@
 
 
 mem_system_clk:0c
-mem_lpm_xtalcnt:35 3d 64
+mem_lpm_xtalcnt:35 3f 64
 mem_lpm_isogate:db 7b 3b
 mem_lpm_hibernate_switch:20
 mem_lpm_ldo_sel:00
Index: sched/dongle.dat
===================================================================
--- /1121s/branch/dongle/1m/YDN_usb_1m_64k/sched/dongle.dat	(revision 3739)
+++ /1121s/branch/dongle/1m/YDN_usb_1m_64k/sched/dongle.dat	(working copy)
@@ -14,7 +14,7 @@
 mem_dg_sys_config:00  #24M
 
 #24g new process #default value 00,if need new process set value 01
-#mem_24g_disable_fec1:00
+# mem_24g_disable_fec1:01
 mem_dg_24g_tx_power_default:03	#6dBm
 
 #usb config
@@ -26,7 +26,7 @@
 #mouse & keyboard
 51 31#VID
 20 30#PID
-mem_dg_usb_tx_interval:00
+mem_dg_usb_tx_interval:01
 mem_dg_usb_device_name:
 '2.4G Receiver
 
@@ -34,7 +34,7 @@
 mem_24g_pair_tx_power_init:94 #94: -20dBm  9e: -30dBm  9f: -35dBm a0: -40dBm 
 
 #rf config
-mem_24g_lap:36 27 83 74 12 23#low 4B used for 24g rxaddr
+mem_24g_lap:38 28 83 74 12 23#low 4B used for 24g rxaddr
 #mem_24g_tx_phy:01#0x01:1M/0x02:2M/0x04:S2/0x84:S8
 #mem_24g_rx_phy:01#0x01:1M/0x02:2M/0x04:S2/0x84:S8
 #mem_24g_no_ack:00#no ack
