Index: output/eeprom.dat
===================================================================
--- /branch/usb/usb_public_base/output/eeprom.dat	(revision 192)
+++ /branch/usb/usb_public_base/output/eeprom.dat	(working copy)
@@ -2,20 +2,20 @@
 02
 aa
 55
-c2
+e6
 02
 c2
 84
 00
-0d
+0e
 c0
 00
 00
-10
+11
 c0
 01
 80
-85
+8e
 c0
 0b
 b9
@@ -23,35 +23,39 @@
 c0
 1b
 00
-1e
+27
 c0
 31
 00
-15
+16
 c0
 4a
 80
-a2
+ab
+c0
+4e
+00
+1f
 c0
 5c
 80
-20
+29
 c0
 6a
 80
-68
+71
 c0
 6f
 00
-6d
+76
 c0
 71
 00
-88
+91
 c0
 74
 00
-92
+9b
 20
 20
 3a
@@ -63,7 +67,7 @@
 c0
 1d
 80
-31
+3a
 20
 20
 3a
@@ -112,18 +116,50 @@
 40
 52
 49
+58
+00
+00
+0c
+1f
+e2
+04
+00
+20
+20
+6d
+e1
 20
 40
 6d
 ee
 58
 00
+08
 00
-10
+98
+46
+7e
+00
+1f
+e2
+04
+00
+18
+51
+84
+00
+60
+58
+80
+04
+20
+00
+01
+04
 20
 20
 6d
-e1
+ea
 20
 40
 00
@@ -207,15 +243,15 @@
 c0
 55
 00
-36
+3f
 c0
 2a
 80
-40
+49
 c0
 11
 00
-50
+59
 20
 20
 49
@@ -227,11 +263,11 @@
 c0
 00
 80
-3a
+43
 c0
 01
 00
-3d
+46
 20
 60
 00
@@ -267,7 +303,7 @@
 20
 3a
 00
-46
+4f
 6f
 e2
 45
@@ -291,11 +327,11 @@
 c0
 00
 80
-4a
+53
 c0
 01
 00
-4d
+56
 20
 60
 00
@@ -331,7 +367,7 @@
 20
 3a
 00
-56
+5f
 6f
 e2
 45
@@ -355,11 +391,11 @@
 c0
 00
 80
-5a
+63
 c0
 01
 00
-61
+6a
 20
 60
 00
@@ -379,7 +415,7 @@
 c0
 01
 00
-5f
+68
 20
 60
 00
@@ -407,7 +443,7 @@
 c0
 80
 00
-66
+6f
 20
 60
 00
@@ -427,7 +463,7 @@
 c2
 80
 80
-6b
+74
 20
 20
 3d
@@ -447,7 +483,7 @@
 c5
 97
 80
-73
+7c
 78
 3c
 fc
@@ -491,7 +527,7 @@
 20
 37
 00
-7c
+85
 1b
 42
 04
@@ -543,7 +579,7 @@
 24
 22
 80
-83
+8c
 20
 20
 38
@@ -631,7 +667,7 @@
 c5
 16
 80
-9e
+a7
 20
 20
 3e
@@ -647,7 +683,7 @@
 c2
 00
 00
-9f
+a8
 20
 20
 3f
@@ -708,8 +744,8 @@
 20
 6c
 a7
-47
-b5
+5e
+96
 aa
 55
 40
@@ -735,7 +771,7 @@
 00
 00
 20
-00
+10
 00
 00
 00
@@ -983,7 +1019,7 @@
 aa
 aa
 55
-36
+46
 38
-b8
-2e
+ec
+c4
Index: output/program.lis
===================================================================
--- /branch/usb/usb_public_base/output/program.lis	(revision 192)
+++ /branch/usb/usb_public_base/output/program.lis	(working copy)
@@ -1,247 +1,258 @@
               include "bt_format "
               org 0x0000
-0000 c284000d bbit1 8 ,pf_patch_ext 
-0001 c0000010 beq patch00_0 ,p_soft_reset 
-0002 c0018085 beq patch00_3 ,p_connection_incontext 
+0000 c284000e bbit1 8 ,pf_patch_ext 
+0001 c0000011 beq patch00_0 ,p_soft_reset 
+0002 c001808e beq patch00_3 ,p_connection_incontext 
 0003 c00bb9ff beq patch02_7 ,set_tx_power_10db 
-0004 c01b001e beq patch06_6 ,p_dongle_usb_dispatch 
-0005 c0310015 beq patch0c_2 ,p_app_init 
-0006 c04a80a2 beq patch12_5 ,p_enable_adc 
-0007 c05c8020 beq patch17_1 ,p_usb_init 
-0008 c06a8068 beq patch1a_5 ,p_le_enable_phy_by_pdata 
-0009 c06f006d beq patch1b_6 ,p_le_receive_rxon 
-000a c0710088 beq patch1c_2 ,p_le_crc_fail_tx 
-000b c0740092 beq patch1d_0 ,p_le_transmit 
-000c 20203aba branch assert 
+0004 c01b0027 beq patch06_6 ,p_dongle_usb_dispatch 
+0005 c0310016 beq patch0c_2 ,p_app_init 
+0006 c04a80ab beq patch12_5 ,p_enable_adc 
+0007 c04e001f beq patch13_4 ,p_wdt_init_config 
+0008 c05c8029 beq patch17_1 ,p_usb_init 
+0009 c06a8071 beq patch1a_5 ,p_le_enable_phy_by_pdata 
+000a c06f0076 beq patch1b_6 ,p_le_receive_rxon 
+000b c0710091 beq patch1c_2 ,p_le_crc_fail_tx 
+000c c074009b beq patch1d_0 ,p_le_transmit 
+000d 20203aba branch assert 
 
 pf_patch_ext:
-000d c17f8000 rtneq patch3f_7 
-000e c01d8031 beq patch27_3 ,p_g24_bind_data_parse_next 
-000f 20203aba branch assert 
+000e c17f8000 rtneq patch3f_7 
+000f c01d803a beq patch27_3 ,p_g24_bind_data_parse_next 
+0010 20203aba branch assert 
 
 p_soft_reset:
-0010 2035b802 branch soft_reset + 1 ,wake 
-0011 6fe240cc fetch 4 ,mem_lpm_ctrl3 
-0012 67f2004c store 4 ,core_lpm_reg 
-0013 20403c49 call lpm_write_ctrl3 
-0014 20203802 branch soft_reset + 1 
+0011 2035b802 branch soft_reset + 1 ,wake 
+0012 6fe240cc fetch 4 ,mem_lpm_ctrl3 
+0013 67f2004c store 4 ,core_lpm_reg 
+0014 20403c49 call lpm_write_ctrl3 
+0015 20203802 branch soft_reset + 1 
 
 p_app_init:
-0015 6fe0c095 fetch 1 ,mem_device_option 
-0016 203a4d9b branch app_init ,blank 
+0016 6fe0c095 fetch 1 ,mem_device_option 
+0017 203a4d9b branch app_init ,blank 
 
 p_dongle_init:
-0017 20758000 rtn wake 
-0018 7040cc3a jam hvin_vin_greater_than_4v2 ,mem_lpm_ctrl3 
-0019 20403c41 call lpm_write_sel_vdd 
-001a 20405249 call dongle_init 
-001b 20406dee call wdt_set_enable 
+0018 20758000 rtn wake 
+0019 7040cc3a jam hvin_vin_greater_than_4v2 ,mem_lpm_ctrl3 
+001a 20403c41 call lpm_write_sel_vdd 
+001b 20405249 call dongle_init 
 
 p_wdt_kick:
-001c 58000010 setarg 16 
-001d 20206de1 branch wdt_init_config 
+001c 5800000c setarg 12 
+001d 1fe20400 copy pdata ,temp 
+001e 20206de1 branch wdt_init_config 
+
+p_wdt_init_config:
+001f 20406dee call wdt_set_enable 
+0020 58000800 setarg 2048 
+0021 98467e00 isub temp ,pdata 
+0022 1fe20400 copy pdata ,temp 
+0023 18518400 rshift4 temp ,temp 
+0024 60588004 storet 1 ,core_write_wdt 
+0025 20000104 nop 260 
+0026 20206dea branch wdt_init_config + 9 
 
 p_dongle_usb_dispatch:
-001e 2040001c call p_wdt_kick 
-001f 202052ee branch dongle_usb_dispatch + 1 
+0027 2040001c call p_wdt_kick 
+0028 202052ee branch dongle_usb_dispatch + 1 
 
 p_usb_init:
-0020 20406fd3 call enable_authrom 
-0021 204071a1 call usb_init_param 
-0022 70061003 jam 0x03 ,mem_devicedesc + 17 
-0023 708c0000 jam 0x00 ,core_usb_config 
-0024 20002710 nop 10000 
-0025 708c1800 jam 0x00 ,core_usb_trig 
-0026 6ff10050 fetch 2 ,core_clkoff 
-0027 793ffe0a set0 clock_off_usb ,pdata 
-0028 67f10050 store 2 ,core_clkoff 
-0029 708c1100 jam 0x0 ,core_usb_hmode 
-002a 708c003c jam 0x3c ,core_usb_config 
-002b 58000bb3 setarg mem_usb_rxbuf_new 
-002c 67f10c03 store 2 ,core_usb_rx_saddr 
-002d 67f10c07 store 2 ,core_usb_rxptr 
-002e 58000bf7 setarg mem_usb_rxbuf_new_end 
-002f 67f10c05 store 2 ,core_usb_rx_eaddr 
-0030 20207192 branch usb_init + 16 
+0029 20406fd3 call enable_authrom 
+002a 204071a1 call usb_init_param 
+002b 70061003 jam 0x03 ,mem_devicedesc + 17 
+002c 708c0000 jam 0x00 ,core_usb_config 
+002d 20002710 nop 10000 
+002e 708c1800 jam 0x00 ,core_usb_trig 
+002f 6ff10050 fetch 2 ,core_clkoff 
+0030 793ffe0a set0 clock_off_usb ,pdata 
+0031 67f10050 store 2 ,core_clkoff 
+0032 708c1100 jam 0x0 ,core_usb_hmode 
+0033 708c003c jam 0x3c ,core_usb_config 
+0034 58000bb3 setarg mem_usb_rxbuf_new 
+0035 67f10c03 store 2 ,core_usb_rx_saddr 
+0036 67f10c07 store 2 ,core_usb_rxptr 
+0037 58000bf7 setarg mem_usb_rxbuf_new_end 
+0038 67f10c05 store 2 ,core_usb_rx_eaddr 
+0039 20207192 branch usb_init + 16 
 
 p_g24_bind_data_parse_next:
-0031 6fe0c52d fetch 1 ,mem_24g_rxdata_temp + 2 
-0032 c0550036 beq datatype_bind ,p_g24_bind_first_step 
-0033 c02a8040 beq datatype_config ,p_g24_bind_second_step 
-0034 c0110050 beq datatype_ok ,p_g24_bind_third_step 
-0035 202049c8 branch g24_bind_data_parse_next + 4 
+003a 6fe0c52d fetch 1 ,mem_24g_rxdata_temp + 2 
+003b c055003f beq datatype_bind ,p_g24_bind_first_step 
+003c c02a8049 beq datatype_config ,p_g24_bind_second_step 
+003d c0110059 beq datatype_ok ,p_g24_bind_third_step 
+003e 202049c8 branch g24_bind_data_parse_next + 4 
 
 p_g24_bind_first_step:
-0036 6fe0c52e fetch 1 ,mem_24g_rxdata_temp + 3 
-0037 c000803a beq datatype_device1 ,p_g24_bind_first_step_device1 
-0038 c001003d beq datatype_device2 ,p_g24_bind_first_step_device2 
-0039 20600000 rtn 
+003f 6fe0c52e fetch 1 ,mem_24g_rxdata_temp + 3 
+0040 c0008043 beq datatype_device1 ,p_g24_bind_first_step_device1 
+0041 c0010046 beq datatype_device2 ,p_g24_bind_first_step_device2 
+0042 20600000 rtn 
 
 p_g24_bind_first_step_device1:
-003a 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
-003b 247a0000 nrtn blank 
-003c 202049ce branch g24_bind_first_step_device1 
+0043 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
+0044 247a0000 nrtn blank 
+0045 202049ce branch g24_bind_first_step_device1 
 
 p_g24_bind_first_step_device2:
-003d 6fe0c5d8 fetch 1 ,mem_24g_device2_bind_disable 
-003e 247a0000 nrtn blank 
-003f 202049d4 branch g24_bind_first_step_device2 
+0046 6fe0c5d8 fetch 1 ,mem_24g_device2_bind_disable 
+0047 247a0000 nrtn blank 
+0048 202049d4 branch g24_bind_first_step_device2 
 
 p_g24_bind_second_step:
-0040 6fe0c4f4 fetch 1 ,mem_24g_pair_switch 
-0041 203a0046 branch p_g24_bind_second_step_skip ,blank 
-0042 6fe2452f fetch 4 ,mem_24g_rxdata_temp + 4 
-0043 684a4437 fetcht 4 ,mem_24g_lap 
-0044 98467c00 isub temp ,null 
-0045 24628000 nrtn zero 
+0049 6fe0c4f4 fetch 1 ,mem_24g_pair_switch 
+004a 203a004f branch p_g24_bind_second_step_skip ,blank 
+004b 6fe2452f fetch 4 ,mem_24g_rxdata_temp + 4 
+004c 684a4437 fetcht 4 ,mem_24g_lap 
+004d 98467c00 isub temp ,null 
+004e 24628000 nrtn zero 
 
 p_g24_bind_second_step_skip:
-0046 6fe0c52e fetch 1 ,mem_24g_rxdata_temp + 3 
-0047 c000804a beq datatype_device1 ,p_g24_bind_second_step_device1 
-0048 c001004d beq datatype_device2 ,p_g24_bind_second_step_device2 
-0049 20600000 rtn 
+004f 6fe0c52e fetch 1 ,mem_24g_rxdata_temp + 3 
+0050 c0008053 beq datatype_device1 ,p_g24_bind_second_step_device1 
+0051 c0010056 beq datatype_device2 ,p_g24_bind_second_step_device2 
+0052 20600000 rtn 
 
 p_g24_bind_second_step_device1:
-004a 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
-004b 247a0000 nrtn blank 
-004c 202049e1 branch g24_bind_second_step_device1 
+0053 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
+0054 247a0000 nrtn blank 
+0055 202049e1 branch g24_bind_second_step_device1 
 
 p_g24_bind_second_step_device2:
-004d 6fe0c5d8 fetch 1 ,mem_24g_device2_bind_disable 
-004e 247a0000 nrtn blank 
-004f 202049ec branch g24_bind_second_step_device2 
+0056 6fe0c5d8 fetch 1 ,mem_24g_device2_bind_disable 
+0057 247a0000 nrtn blank 
+0058 202049ec branch g24_bind_second_step_device2 
 
 p_g24_bind_third_step:
-0050 6fe0c4f4 fetch 1 ,mem_24g_pair_switch 
-0051 203a0056 branch p_g24_bind_third_step_skip ,blank 
-0052 6fe2452f fetch 4 ,mem_24g_rxdata_temp + 4 
-0053 684a456f fetcht 4 ,mem_24g_transmitter_addr 
-0054 98467c00 isub temp ,null 
-0055 24628000 nrtn zero 
+0059 6fe0c4f4 fetch 1 ,mem_24g_pair_switch 
+005a 203a005f branch p_g24_bind_third_step_skip ,blank 
+005b 6fe2452f fetch 4 ,mem_24g_rxdata_temp + 4 
+005c 684a456f fetcht 4 ,mem_24g_transmitter_addr 
+005d 98467c00 isub temp ,null 
+005e 24628000 nrtn zero 
 
 p_g24_bind_third_step_skip:
-0056 6fe0c52e fetch 1 ,mem_24g_rxdata_temp + 3 
-0057 c000805a beq datatype_device1 ,p_g24_bind_third_step_device1 
-0058 c0010061 beq datatype_device2 ,p_g24_bind_third_step_device2 
-0059 20600000 rtn 
+005f 6fe0c52e fetch 1 ,mem_24g_rxdata_temp + 3 
+0060 c0008063 beq datatype_device1 ,p_g24_bind_third_step_device1 
+0061 c001006a beq datatype_device2 ,p_g24_bind_third_step_device2 
+0062 20600000 rtn 
 
 p_g24_bind_third_step_device1:
-005a 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
-005b 247a0000 nrtn blank 
-005c 6fe0c518 fetch 1 ,mem_24g_device1_bind_step 
-005d c001005f beq 2 ,p_g24_bind_dvc1_step_success 
-005e 20600000 rtn 
+0063 6fe0c5d7 fetch 1 ,mem_24g_device1_bind_disable 
+0064 247a0000 nrtn blank 
+0065 6fe0c518 fetch 1 ,mem_24g_device1_bind_step 
+0066 c0010068 beq 2 ,p_g24_bind_dvc1_step_success 
+0067 20600000 rtn 
 
 p_g24_bind_dvc1_step_success:
-005f 7045d701 jam 1 ,mem_24g_device1_bind_disable 
-0060 20204a01 branch g24_bind_dvc1_step_success 
+0068 7045d701 jam 1 ,mem_24g_device1_bind_disable 
+0069 20204a01 branch g24_bind_dvc1_step_success 
 
 p_g24_bind_third_step_device2:
-0061 6fe0c5d8 fetch 1 ,mem_24g_device2_bind_disable 
-0062 247a0000 nrtn blank 
-0063 6fe0c519 fetch 1 ,mem_24g_device2_bind_step 
-0064 c0800066 bne 0 ,p_g24_bind_dvc2_step_success 
-0065 20600000 rtn 
+006a 6fe0c5d8 fetch 1 ,mem_24g_device2_bind_disable 
+006b 247a0000 nrtn blank 
+006c 6fe0c519 fetch 1 ,mem_24g_device2_bind_step 
+006d c080006f bne 0 ,p_g24_bind_dvc2_step_success 
+006e 20600000 rtn 
 
 p_g24_bind_dvc2_step_success:
-0066 7045d801 jam 1 ,mem_24g_device2_bind_disable 
-0067 20204a0c branch g24_bind_dvc2_step_success 
+006f 7045d801 jam 1 ,mem_24g_device2_bind_disable 
+0070 20204a0c branch g24_bind_dvc2_step_success 
 
 p_le_enable_phy_by_pdata:
-0068 18427e00 copy temp ,pdata 
-0069 c280806b bbit1 bit_le_2m_phy ,p_le_enable_2m 
-006a 20203d19 branch le_enable_phy_by_pdata + 3 
+0071 18427e00 copy temp ,pdata 
+0072 c2808074 bbit1 bit_le_2m_phy ,p_le_enable_2m 
+0073 20203d19 branch le_enable_phy_by_pdata + 3 
 
 p_le_enable_2m:
-006b 708a6d89 jam 0x89 ,core_rx_bq_cfg0 
-006c 20203d1f branch le_enable_2m 
+0074 708a6d89 jam 0x89 ,core_rx_bq_cfg0 
+0075 20203d1f branch le_enable_2m 
 
 p_le_receive_rxon:
-006d 20403d3c call le_prep 
-006e c5978073 bmark0 mark_ble_lr ,p_le_receive_nolr 
-006f 783cfc00 pulse dewhiten_code_calc 
-0070 2000001e nop 30 
-0071 20403d3c call le_prep 
-0072 19699600 lshift3 timeup ,timeup 
+0076 20403d3c call le_prep 
+0077 c597807c bmark0 mark_ble_lr ,p_le_receive_nolr 
+0078 783cfc00 pulse dewhiten_code_calc 
+0079 2000001e nop 30 
+007a 20403d3c call le_prep 
+007b 19699600 lshift3 timeup ,timeup 
 
 p_le_receive_nolr:
-0073 7856fc00 disable match 
-0074 7826fc00 enable decode_fec0 
-0075 7830fc00 enable is_rx 
-0076 78507c00 disable is_tx 
-0077 19623600 copy timeup ,stop_watch 
-0078 37c18400 correlate null ,timeout 
-0079 2037007c branch p_le_receive_on_attempt ,attempt 
-007a 1b420400 copy clke ,temp 
-007b 604b000f storet 6 ,mem_sync_clke 
+007c 7856fc00 disable match 
+007d 7826fc00 enable decode_fec0 
+007e 7830fc00 enable is_rx 
+007f 78507c00 disable is_tx 
+0080 19623600 copy timeup ,stop_watch 
+0081 37c18400 correlate null ,timeout 
+0082 20370085 branch p_le_receive_on_attempt ,attempt 
+0083 1b420400 copy clke ,temp 
+0084 604b000f storet 6 ,mem_sync_clke 
 
 p_le_receive_on_attempt:
-007c 242c3e75 nbranch le_unsync_end ,sync 
-007d 78287c00 enable swfine 
-007e db604eab arg param_t_ifs_150us + param_20ms_init + param_sync_time_difference ,stop_watch 
-007f 6fe0c11d fetch 1 ,mem_system_clk 
-0080 9b6f8400 imul32 stop_watch ,temp 
-0081 9840b600 iadd temp ,stop_watch 
-0082 20203de9 branch le_receive_on_attempt + 6 
+0085 242c3e75 nbranch le_unsync_end ,sync 
+0086 78287c00 enable swfine 
+0087 db604eab arg param_t_ifs_150us + param_20ms_init + param_sync_time_difference ,stop_watch 
+0088 6fe0c11d fetch 1 ,mem_system_clk 
+0089 9b6f8400 imul32 stop_watch ,temp 
+008a 9840b600 iadd temp ,stop_watch 
+008b 20203de9 branch le_receive_on_attempt + 6 
 
 p_connection_nosniff:
-0083 70000600 jam 0 ,mem_current_context 
-0084 20203822 branch connection_nosniff 
+008c 70000600 jam 0 ,mem_current_context 
+008d 20203822 branch connection_nosniff 
 
 p_connection_incontext:
-0085 20403863 call context_search_insniff 
-0086 24228083 nbranch p_connection_nosniff ,zero 
-0087 2020381d branch connection_incontext + 3 
+008e 20403863 call context_search_insniff 
+008f 2422808c nbranch p_connection_nosniff ,zero 
+0090 2020381d branch connection_incontext + 3 
 
 p_le_crc_fail_tx:
-0088 20406f09 call ccm_ctrl_clr 
-0089 6fe08198 fetch 1 ,mem_le_rx_phy 
-008a 7d3e7e07 nsetflag ble_coded_info ,bit_le_coded_phy_s8 ,pdata 
-008b 67e08198 store 1 ,mem_le_rx_phy 
-008c 7846fc00 disable decode_fec0 
-008d 20403925 call set_sync_on 
-008e 708a3d12 jam 0x12 ,core_syn_top_ctrl 
-008f 68488008 fetcht 1 ,mem_last_freq 
-0090 1840a202 add temp ,2 ,rega 
-0091 2020398e branch rf_tx_write_freq 
+0091 20406f09 call ccm_ctrl_clr 
+0092 6fe08198 fetch 1 ,mem_le_rx_phy 
+0093 7d3e7e07 nsetflag ble_coded_info ,bit_le_coded_phy_s8 ,pdata 
+0094 67e08198 store 1 ,mem_le_rx_phy 
+0095 7846fc00 disable decode_fec0 
+0096 20403925 call set_sync_on 
+0097 708a3d12 jam 0x12 ,core_syn_top_ctrl 
+0098 68488008 fetcht 1 ,mem_last_freq 
+0099 1840a202 add temp ,2 ,rega 
+009a 2020398e branch rf_tx_write_freq 
 
 p_le_transmit:
-0092 20403d3c call le_prep 
-0093 20403d4b call le_tx_setfreq 
-0094 20406451 call rf_debug_tx_on_line 
-0095 79202a00 set1 txgfsk ,radio_ctrl 
-0096 782efc00 enable encode_fec0 
-0097 78307c00 enable is_tx 
-0098 7850fc00 disable is_rx 
-0099 20403dc2 call le_wait_tx 
-009a 785d7c00 disable lr_s2en 
-009b c517beff bmark1 mark_ble_lr ,le_transmit_lr 
-009c c516809e bmark1 mark_ble_2m ,p_le_transmit_2m 
-009d 20203ec8 branch le_transmit + 12 
+009b 20403d3c call le_prep 
+009c 20403d4b call le_tx_setfreq 
+009d 20406451 call rf_debug_tx_on_line 
+009e 79202a00 set1 txgfsk ,radio_ctrl 
+009f 782efc00 enable encode_fec0 
+00a0 78307c00 enable is_tx 
+00a1 7850fc00 disable is_rx 
+00a2 20403dc2 call le_wait_tx 
+00a3 785d7c00 disable lr_s2en 
+00a4 c517beff bmark1 mark_ble_lr ,le_transmit_lr 
+00a5 c51680a7 bmark1 mark_ble_2m ,p_le_transmit_2m 
+00a6 20203ec8 branch le_transmit + 12 
 
 p_le_transmit_2m:
-009e 6f20c11d fetchr loopcnt ,1 ,mem_system_clk 
+00a7 6f20c11d fetchr loopcnt ,1 ,mem_system_clk 
 
 p_le_transmit_2m_dealy:
-009f 20000001 nop 1 
-00a0 c200009f loop p_le_transmit_2m_dealy 
-00a1 20203f15 branch le_transmit_2m_dealy + 2 
+00a8 20000001 nop 1 
+00a9 c20000a8 loop p_le_transmit_2m_dealy 
+00aa 20203f15 branch le_transmit_2m_dealy + 2 
 
 p_enable_adc:
-00a2 6a508a12 fetchr regb ,1 ,core_rf_ldo_cfg6 
-00a3 708a123d jam 0x3d ,core_rf_ldo_cfg6 
-00a4 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
-00a5 708a0a0c jam 0x0c ,core_rf_ldo_en0 
-00a6 6ff08a09 fetch 1 ,core_clkpll_cfg6 
-00a7 79207e07 set1 7 ,pdata 
-00a8 67f08a09 store 1 ,core_clkpll_cfg6 
-00a9 708a0b04 jam 0x04 ,core_rf_ldo_en1 
-00aa 2000003c nop 60 
-00ab 708a1600 jam 0 ,core_syn_en 
-00ac 708a1706 jam 6 ,core_rx_en0 
-00ad 20406cb4 call read_adc_mode 
-00ae 67f08a97 store 1 ,core_gpadc_ctrl 
-00af 20206ca7 branch enable_adc + 15 
+00ab 6a508a12 fetchr regb ,1 ,core_rf_ldo_cfg6 
+00ac 708a123d jam 0x3d ,core_rf_ldo_cfg6 
+00ad 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
+00ae 708a0a0c jam 0x0c ,core_rf_ldo_en0 
+00af 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+00b0 79207e07 set1 7 ,pdata 
+00b1 67f08a09 store 1 ,core_clkpll_cfg6 
+00b2 708a0b04 jam 0x04 ,core_rf_ldo_en1 
+00b3 2000003c nop 60 
+00b4 708a1600 jam 0 ,core_syn_en 
+00b5 708a1706 jam 6 ,core_rx_en0 
+00b6 20406cb4 call read_adc_mode 
+00b7 67f08a97 store 1 ,core_gpadc_ctrl 
+00b8 20206ca7 branch enable_adc + 15 
               org 0x3800
 
 start:
Index: program/patch.prog
===================================================================
--- /branch/usb/usb_public_base/program/patch.prog	(revision 192)
+++ /branch/usb/usb_public_base/program/patch.prog	(working copy)
@@ -6,6 +6,7 @@
 	beq patch06_6,p_dongle_usb_dispatch
 	beq patch0c_2,p_app_init
 	beq patch12_5,p_enable_adc
+	beq patch13_4,p_wdt_init_config
 	beq patch17_1,p_usb_init
 	beq patch1a_5,p_le_enable_phy_by_pdata
 	beq patch1b_6,p_le_receive_rxon
@@ -36,12 +37,23 @@
 	call dongle_init
 
 	//watch dog enable
-	call wdt_set_enable
 p_wdt_kick:
-	//about 125ms
-	setarg 16
+	//about 128ms
+	setarg 12
+	copy pdata,temp
 	branch wdt_init_config
-
+	
+p_wdt_init_config:
+	call wdt_set_enable	
+	setarg 2048
+	isub temp,pdata
+	copy pdata,temp
+	rshift4 temp,temp
+	storet 1,core_write_wdt
+	nop 260
+	branch wdt_init_config+9
+	
+	
 p_dongle_usb_dispatch:
 	call p_wdt_kick
 	branch dongle_usb_dispatch+1
