Index: format/app_dongle.format
===================================================================
--- /YC1308AC/branch/mouse_project/YDN_Project/usb_16M/format/app_dongle.format	(revision 640)
+++ /YC1308AC/branch/mouse_project/YDN_Project/usb_16M/format/app_dongle.format	(working copy)
@@ -24,6 +24,21 @@
 9 mem_dg_usb_vid_pid
 1 mem_dg_usb_tx_interval
 30 mem_dg_usb_device_name
+
+
+5 mem_clkn_bt_temp
+
+1 mem_usb_queue_each_size
+1 mem_usb_queue_length
+1 mem_usb_queue_curr_num
+1 mem_usb_queue_read_ptr
+1 mem_usb_queue_write_ptr
+1275 mem_usb_queue_ele0
+
+1 mem_package_count
+4 mem_first_packet_clkn_bt
+4 mem_currenr_packet_clkn_bt
+1 mem_tx_enable
 )
 
 
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YDN_Project/usb_16M/output/eeprom.dat	(revision 640)
+++ /YC1308AC/branch/mouse_project/YDN_Project/usb_16M/output/eeprom.dat	(working copy)
@@ -2,8 +2,8 @@
 02
 aa
 55
-b2
-01
+c2
+02
 c2
 84
 00
@@ -23,11 +23,11 @@
 c0
 5d
 80
-2e
+2f
 c0
 5e
 00
-34
+35
 20
 20
 13
@@ -35,11 +35,11 @@
 c0
 48
 00
-55
+56
 c0
 4a
 80
-66
+67
 c0
 54
 80
@@ -47,7 +47,7 @@
 c0
 73
 00
-30
+31
 20
 20
 13
@@ -176,6 +176,10 @@
 40
 36
 20
+70
+4e
+40
+01
 20
 40
 62
@@ -191,7 +195,7 @@
 20
 40
 00
-2c
+2d
 20
 20
 36
@@ -227,7 +231,7 @@
 20
 40
 00
-39
+3a
 20
 20
 36
@@ -239,11 +243,11 @@
 20
 40
 00
-3c
+3d
 20
 20
 00
-48
+49
 6f
 e0
 c9
@@ -359,7 +363,7 @@
 c0
 00
 00
-5a
+5b
 20
 20
 7a
@@ -387,7 +391,7 @@
 c0
 00
 80
-61
+62
 20
 20
 7a
@@ -399,7 +403,7 @@
 c0
 04
 80
-64
+65
 20
 20
 7a
@@ -432,12 +436,280 @@
 3a
 7c
 a4
+6f
+e0
+8b
+fa
 20
+3a
+7c
+7a
+6f
+e0
+8b
+ec
+c0
+01
+fc
+b4
+c0
+81
+7c
+7a
+6f
+e0
+8b
+ee
+24
+3a
+7c
+7a
+6f
+e3
+c8
+94
+20
+7a
+00
+00
+20
+40
+00
+7b
 20
+40
+00
+81
+6f
+e0
+ce
+40
+c1
+80
+80
+00
+20
+40
 7c
-59
-c3
-51
+62
+20
+20
+7c
+6d
+6f
+e0
+ce
+37
+1f
+e0
+fe
+01
+67
+e0
+ce
+37
+1f
+e6
+7c
+1a
+24
+41
+00
+87
+20
+60
+00
+00
+6f
+e0
+ce
+37
+67
+e0
+c9
+32
+1c
+42
+7e
+00
+67
+e2
+49
+33
+da
+20
+49
+32
+20
+20
+00
+9d
+d8
+40
+00
+01
+d8
+c0
+49
+3c
+ef
+e0
+80
+06
+98
+46
+7c
+00
+20
+22
+80
+8f
+df
+e0
+00
+04
+98
+c0
+8c
+00
+20
+20
+00
+89
+e8
+42
+00
+06
+60
+4a
+4e
+38
+1c
+42
+7e
+00
+67
+e2
+4e
+3c
+98
+46
+04
+00
+df
+e0
+01
+40
+98
+46
+7c
+00
+20
+21
+00
+9b
+70
+4e
+40
+01
+70
+4e
+37
+01
+70
+49
+39
+00
+20
+60
+00
+00
+70
+4e
+40
+00
+20
+60
+00
+00
+20
+40
+7e
+56
+20
+40
+79
+89
+20
+7a
+00
+00
+6f
+e1
+44
+8a
+1f
+e0
+a4
+02
+e8
+40
+80
+12
+18
+40
+84
+01
+e0
+40
+80
+12
+e8
+40
+80
+3f
+18
+42
+72
+00
+1f
+e0
+a4
+02
+ef
+e0
+80
+12
+1f
+e0
+ff
+ff
+98
+4f
+fe
+00
+d8
+c0
+49
+3c
+98
+c0
+8a
+00
+1a
+22
+0c
+00
+20
+40
+7d
+5f
+20
+20
+7e
+54
+26
+ad
 aa
 55
 40
@@ -622,11 +894,27 @@
 ee
 41
 00
+aa
+55
+02
+00
+8a
+44
+37
+49
+aa
+55
+02
+00
+37
+49
+05
+ff
 55
 aa
 aa
 55
-09
-23
-cf
-c2
+dd
+27
+7a
+d5
Index: output/memmap.format
===================================================================
--- /YC1308AC/branch/mouse_project/YDN_Project/usb_16M/output/memmap.format	(revision 640)
+++ /YC1308AC/branch/mouse_project/YDN_Project/usb_16M/output/memmap.format	(working copy)
@@ -1903,6 +1903,17 @@
 0x490a mem_dg_usb_vid_pid
 0x4913 mem_dg_usb_tx_interval
 0x4914 mem_dg_usb_device_name
+0x4932 mem_clkn_bt_temp
+0x4937 mem_usb_queue_each_size
+0x4938 mem_usb_queue_length
+0x4939 mem_usb_queue_curr_num
+0x493a mem_usb_queue_read_ptr
+0x493b mem_usb_queue_write_ptr
+0x493c mem_usb_queue_ele0
+0x4e37 mem_package_count
+0x4e38 mem_first_packet_clkn_bt
+0x4e3c mem_currenr_packet_clkn_bt
+0x4e40 mem_tx_enable
 0x487e mem_rssi_hex_received
 0x487f mem_24g_pair_sm
 0x4880 mem_24g_pair_no_ack
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/YDN_Project/usb_16M/output/program.lis	(revision 640)
+++ /YC1308AC/branch/mouse_project/YDN_Project/usb_16M/output/program.lis	(working copy)
@@ -4,15 +4,15 @@
 0001 c041801c beq patch10_3 ,p_set_sync_on 
 0002 c0458012 beq patch11_3 ,p_initialize_radio_cont 
 0003 c0570025 beq patch15_6 ,p_app_init 
-0004 c05d802e beq patch17_3 ,p_dongle_usb_dispatch 
-0005 c05e0034 beq patch17_4 ,p_dongle_work_mode_auto 
+0004 c05d802f beq patch17_3 ,p_dongle_usb_dispatch 
+0005 c05e0035 beq patch17_4 ,p_dongle_work_mode_auto 
 0006 2020137c branch loop 
 
 pf_patch_ext:
-0007 c0480055 beq patch32_0 ,p_usb_class_type 
-0008 c04a8066 beq patch32_5 ,p_usb_tx 
+0007 c0480056 beq patch32_0 ,p_usb_class_type 
+0008 c04a8067 beq patch32_5 ,p_usb_tx 
 0009 c054800c beq patch35_1 ,p_le_enable 
-000a c0730030 beq patch3c_6 ,p_g24_bind_mode_auto 
+000a c0730031 beq patch3c_6 ,p_g24_bind_mode_auto 
 000b 2020137c branch loop 
 
 p_le_enable:
@@ -55,95 +55,181 @@
 0028 70486502 jam 0x02 ,mem_24g_tx_phy 
 0029 70487b4a jam 0x4a ,mem_24g_pair_ch 
 002a 20403620 call dongle_init 
-002b 2040623c call wdt_set_enable 
+002b 704e4001 jam on ,mem_tx_enable 
+002c 2040623c call wdt_set_enable 
 
 p_wdt_kick:
-002c 5800007d setarg 125 
-002d 2020622d branch wdt_init_config 
+002d 5800007d setarg 125 
+002e 2020622d branch wdt_init_config 
 
 p_dongle_usb_dispatch:
-002e 2040002c call p_wdt_kick 
-002f 202036b5 branch dongle_usb_dispatch + 1 
+002f 2040002d call p_wdt_kick 
+0030 202036b5 branch dongle_usb_dispatch + 1 
 
 p_g24_bind_mode_auto:
-0030 6fe0c8bf fetch 1 ,mem_24g_work_mode 
-0031 c1808000 rtnne dongle_bind 
-0032 7041e885 jam tx_power_f5db ,mem_tx_power 
-0033 20202499 branch g24_bind_mode_auto + 3 
+0031 6fe0c8bf fetch 1 ,mem_24g_work_mode 
+0032 c1808000 rtnne dongle_bind 
+0033 7041e885 jam tx_power_f5db ,mem_tx_power 
+0034 20202499 branch g24_bind_mode_auto + 3 
 
 p_dongle_work_mode_auto:
-0034 6fe0c8bf fetch 1 ,mem_24g_work_mode 
-0035 c1800000 rtnne dongle_work 
-0036 20402491 call g24_work_mode_start 
-0037 20400039 call p_dongle_g24_blank_data_process 
-0038 202036f2 branch dongle_work_mode_auto + 5 
+0035 6fe0c8bf fetch 1 ,mem_24g_work_mode 
+0036 c1800000 rtnne dongle_work 
+0037 20402491 call g24_work_mode_start 
+0038 2040003a call p_dongle_g24_blank_data_process 
+0039 202036f2 branch dongle_work_mode_auto + 5 
 
 p_dongle_g24_blank_data_process:
-0039 2040368a call dongle_g24_ms_blank_data 
-003a 2040003c call p_dongle_g24_kb_blank_data 
-003b 20200048 branch p_dongle_g24_kb_mul_blank_data 
+003a 2040368a call dongle_g24_ms_blank_data 
+003b 2040003d call p_dongle_g24_kb_blank_data 
+003c 20200049 branch p_dongle_g24_kb_mul_blank_data 
 
 p_dongle_g24_kb_blank_data:
-003c 6fe0c906 fetch 1 ,mem_dg_kb_blank_data_enable 
-003d 207a0000 rtn blank 
-003e d8e0000e arg timer_kb_blank ,queue 
-003f 20407d74 call timer_check 
-0040 247a0000 nrtn blank 
-0041 70490600 jam 0 ,mem_dg_kb_blank_data_enable 
-0042 d8a00c0f arg mem_usb_kb_data ,contw 
-0043 df200002 arg 2 ,loopcnt 
-0044 20407d17 call memset0 
-0045 6fe40c0f fetch 8 ,mem_usb_kb_data 
-0046 67e448f2 store 8 ,mem_dg_kb_data_last_data 
-0047 202036a2 branch dongle_usb_tx_kb_data 
+003d 6fe0c906 fetch 1 ,mem_dg_kb_blank_data_enable 
+003e 207a0000 rtn blank 
+003f d8e0000e arg timer_kb_blank ,queue 
+0040 20407d74 call timer_check 
+0041 247a0000 nrtn blank 
+0042 70490600 jam 0 ,mem_dg_kb_blank_data_enable 
+0043 d8a00c0f arg mem_usb_kb_data ,contw 
+0044 df200002 arg 2 ,loopcnt 
+0045 20407d17 call memset0 
+0046 6fe40c0f fetch 8 ,mem_usb_kb_data 
+0047 67e448f2 store 8 ,mem_dg_kb_data_last_data 
+0048 202036a2 branch dongle_usb_tx_kb_data 
 
 p_dongle_g24_kb_mul_blank_data:
-0048 6fe0c907 fetch 1 ,mem_dg_kb_mul_blank_data_enable 
-0049 207a0000 rtn blank 
-004a d8e0000c arg timer_kb_mul_blank ,queue 
-004b 20407d74 call timer_check 
-004c 247a0000 nrtn blank 
-004d 70490700 jam 0 ,mem_dg_kb_mul_blank_data_enable 
-004e d8a00c1f arg mem_usb_kb_multikey ,contw 
-004f df200002 arg 2 ,loopcnt 
-0050 20407d17 call memset0 
-0051 700c1f03 jam kb_multikey_report_id ,mem_usb_kb_multikey 
-0052 6fe18c1f fetch 3 ,mem_usb_kb_multikey 
-0053 67e1c8fd store 3 ,mem_dg_kb_multikey_last_data 
-0054 202036b2 branch dongle_usb_tx_multikey_data 
+0049 6fe0c907 fetch 1 ,mem_dg_kb_mul_blank_data_enable 
+004a 207a0000 rtn blank 
+004b d8e0000c arg timer_kb_mul_blank ,queue 
+004c 20407d74 call timer_check 
+004d 247a0000 nrtn blank 
+004e 70490700 jam 0 ,mem_dg_kb_mul_blank_data_enable 
+004f d8a00c1f arg mem_usb_kb_multikey ,contw 
+0050 df200002 arg 2 ,loopcnt 
+0051 20407d17 call memset0 
+0052 700c1f03 jam kb_multikey_report_id ,mem_usb_kb_multikey 
+0053 6fe18c1f fetch 3 ,mem_usb_kb_multikey 
+0054 67e1c8fd store 3 ,mem_dg_kb_multikey_last_data 
+0055 202036b2 branch dongle_usb_tx_multikey_data 
 
 p_usb_class_type:
-0055 793f8023 set0 mark_isstr ,mark 
-0056 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
-0057 1fe17e80 and_into 0x80 ,pdata 
-0058 c000005a beq out_device ,p_usb_out_device 
-0059 20207a34 branch usb_class_type + 4 
+0056 793f8023 set0 mark_isstr ,mark 
+0057 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+0058 1fe17e80 and_into 0x80 ,pdata 
+0059 c000005b beq out_device ,p_usb_out_device 
+005a 20207a34 branch usb_class_type + 4 
 
 p_usb_out_device:
-005a 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
-005b 1ff1fe00 rshift4 pdata ,pdata 
-005c 1fe37e00 rshift pdata ,pdata 
-005d 1fe17e03 and_into 0x03 ,pdata 
-005e c0007a53 beq standard_req ,usb_out_standard_req 
-005f c0008061 beq class_req ,p_usb_out_class_req 
-0060 20207a43 branch usb_out_device + 4 
+005b 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+005c 1ff1fe00 rshift4 pdata ,pdata 
+005d 1fe37e00 rshift pdata ,pdata 
+005e 1fe17e03 and_into 0x03 ,pdata 
+005f c0007a53 beq standard_req ,usb_out_standard_req 
+0060 c0008062 beq class_req ,p_usb_out_class_req 
+0061 20207a43 branch usb_out_device + 4 
 
 p_usb_out_class_req:
-0061 6fe08b5a fetch 1 ,mem_usb_setup_brequest 
-0062 c0048064 beq set_report ,p_usb_set_report 
-0063 20207a5c branch usb_out_class_req + 1 
+0062 6fe08b5a fetch 1 ,mem_usb_setup_brequest 
+0063 c0048065 beq set_report ,p_usb_set_report 
+0064 20207a5c branch usb_out_class_req + 1 
 
 p_usb_set_report:
-0064 20003a98 nop 15000 
-0065 20207bd8 branch usb_set_report 
+0065 20003a98 nop 15000 
+0066 20207bd8 branch usb_set_report 
 
 p_usb_tx:
-0066 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
-0067 207a0000 rtn blank 
-0068 6ff08c24 fetch 1 ,core_usb_txbusy 
-0069 1fe17e0f and_into 0x0f ,pdata 
-006a 243a7ca4 nbranch usb_inwake_state_tx_dispose ,blank 
-006b 20207c59 branch usb_tx + 3 
+0067 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
+0068 207a0000 rtn blank 
+0069 6ff08c24 fetch 1 ,core_usb_txbusy 
+006a 1fe17e0f and_into 0x0f ,pdata 
+006b 243a7ca4 nbranch usb_inwake_state_tx_dispose ,blank 
+006c 6fe08bfa fetch 1 ,mem_usb_device_enumeration_endflag 
+006d 203a7c7a branch usb_tx_fifo_release ,blank 
+006e 6fe08bec fetch 1 ,mem_usb_state 
+006f c001fcb4 beq usb_sleep ,usb_windows_wakeup 
+0070 c0817c7a bne usb_connected ,usb_tx_fifo_release 
+0071 6fe08bee fetch 1 ,mem_usb_clear_remote_wakeup 
+0072 243a7c7a nbranch usb_tx_fifo_release ,blank 
+0073 6fe3c894 fetch 7 ,mem_24g_rxdata_temp + 3 
+0074 207a0000 rtn blank 
+0075 2040007b call p_packet_num_increase 
+0076 20400081 call p_packet_timer_store 
+0077 6fe0ce40 fetch 1 ,mem_tx_enable 
+0078 c1808000 rtnne on 
+0079 20407c62 call usb_tx_data_ep1 
+007a 20207c6d branch usb_tx_data_ep2 
+
+p_packet_num_increase:
+007b 6fe0ce37 fetch 1 ,mem_package_count 
+007c 1fe0fe01 increase 1 ,pdata 
+007d 67e0ce37 store 1 ,mem_package_count 
+007e 1fe67c1a sub pdata ,26 ,null 
+007f 24410087 ncall p_packet_1s_timer_check ,positive 
+0080 20600000 rtn 
+
+p_packet_timer_store:
+0081 6fe0ce37 fetch 1 ,mem_package_count 
+0082 67e0c932 store 1 ,mem_clkn_bt_temp 
+0083 1c427e00 copy clkn_bt ,pdata 
+0084 67e24933 store 4 ,mem_clkn_bt_temp + 1 
+0085 da204932 arg mem_clkn_bt_temp ,rega 
+0086 2020009d branch p_queue_push 
+
+p_packet_1s_timer_check:
+0087 d8400001 arg 1 ,temp 
+0088 d8c0493c arg mem_usb_queue_ele0 ,contr 
+
+p_first_packet_timer_get_loop:
+0089 efe08006 ifetch 1 ,contr 
+008a 98467c00 isub temp ,null 
+008b 2022808f branch p_get_first_packet_info ,zero 
+008c dfe00004 arg 4 ,pdata 
+008d 98c08c00 iadd contr ,contr 
+008e 20200089 branch p_first_packet_timer_get_loop 
+
+p_get_first_packet_info:
+008f e8420006 ifetcht 4 ,contr 
+0090 604a4e38 storet 4 ,mem_first_packet_clkn_bt 
+0091 1c427e00 copy clkn_bt ,pdata 
+0092 67e24e3c store 4 ,mem_currenr_packet_clkn_bt 
+0093 98460400 isub temp ,temp 
+0094 dfe00140 arg 0x0140 ,pdata 
+0095 98467c00 isub temp ,null 
+0096 2021009b branch p_time_less_than_1s ,positive 
+
+p_timer_more_than_1s:
+0097 704e4001 jam on ,mem_tx_enable 
+0098 704e3701 jam 1 ,mem_package_count 
+0099 70493900 jam 0 ,mem_usb_queue_curr_num 
+009a 20600000 rtn 
+
+p_time_less_than_1s:
+009b 704e4000 jam off ,mem_tx_enable 
+009c 20600000 rtn 
+
+p_queue_push:
+009d 20407e56 call disable_user 
+009e 20407989 call queue_full 
+009f 207a0000 rtn blank 
+00a0 6fe1448a fetch 2 ,mem_queue_ptr 
+00a1 1fe0a402 add pdata ,queue_offset_curr_num ,regb 
+00a2 e8408012 ifetcht 1 ,regb 
+00a3 18408401 increase 1 ,temp 
+00a4 e0408012 istoret 1 ,regb 
+00a5 e840803f ifetcht 1 ,pdata 
+00a6 18427200 copy temp ,loopcnt 
+00a7 1fe0a402 add pdata ,queue_offset_curr_num ,regb 
+00a8 efe08012 ifetch 1 ,regb 
+00a9 1fe0ffff increase -1 ,pdata 
+00aa 984ffe00 imul32 temp ,pdata 
+00ab d8c0493c arg mem_usb_queue_ele0 ,contr 
+00ac 98c08a00 iadd contr ,contw 
+00ad 1a220c00 copy rega ,contr 
+
+p_calc_queue_next_ptr:
+00ae 20407d5f call memcpy 
+00af 20207e54 branch enable_user 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YDN_Project/usb_16M/program/patch.prog	(revision 640)
+++ /YC1308AC/branch/mouse_project/YDN_Project/usb_16M/program/patch.prog	(working copy)
@@ -54,7 +54,6 @@
 p_set_sync_on_16m:
 	jam 0x29,core_syn_afc_cfg1
 	branch set_sync_on_16m
-
 p_app_init:
 /********************dongle rx window patch************************/
 	arg 0xaa00,temp
@@ -64,6 +63,7 @@
 	jam 0x4a,mem_24g_pair_ch
 
 	call dongle_init
+	jam ON,mem_tx_enable
 	
 	//watch dog enable
 	call wdt_set_enable
@@ -163,8 +163,98 @@
 	fetch 1,core_usb_txbusy
 	and_into 0x0f,pdata
 	nbranch usb_inwake_state_tx_dispose,blank
-	branch usb_tx+3
 
+	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
+
+	fetch 7,mem_24g_rxdata_temp+3
+	rtn blank
+
+	call p_packet_num_increase
+	call p_packet_timer_store
+	fetch 1,mem_tx_enable
+	rtnne ON
+
+	call usb_tx_data_ep1
+	branch usb_tx_data_ep2
+
+
+/************************report rate patch**********/
+
+p_packet_num_increase:
+	fetch 1,mem_package_count
+	increase 1,pdata
+	store 1,mem_package_count
+	sub pdata,26,null
+	ncall p_packet_1s_timer_check,positive
+	rtn
+
+p_packet_timer_store:
+	fetch 1,mem_package_count
+	store 1,mem_clkn_bt_temp
+	copy clkn_bt,pdata
+	store 4,mem_clkn_bt_temp+1
+	arg mem_clkn_bt_temp,rega
+	branch p_queue_push
+
+p_packet_1s_timer_check:
+	arg 1,temp
+	arg mem_usb_queue_ele0,contr
+p_first_packet_timer_get_loop:
+	ifetch 1,contr
+	isub temp,null
+	branch p_get_first_packet_info,zero
+	arg 4,pdata	//length
+	iadd contr,contr
+	branch p_first_packet_timer_get_loop
+
+p_get_first_packet_info:
+	ifetcht 4,contr
+	storet 4,mem_first_packet_clkn_bt
+	copy clkn_bt,pdata
+	store 4,mem_currenr_packet_clkn_bt
+	isub temp,temp
+	arg 0x0140,pdata	//100ms
+	isub temp,null
+	branch p_time_less_than_1s,positive
+p_timer_more_than_1s:
+	jam ON,mem_tx_enable
+	jam 1,mem_package_count
+	jam 0,mem_usb_queue_curr_num
+	rtn
+
+p_time_less_than_1s:
+	jam OFF,mem_tx_enable
+	rtn
+
+//input:rega:the address of the data to which you want to input queue
+//output:if user is disable,mean queue no have space
+p_queue_push:
+	call disable_user
+	call queue_full
+	rtn blank
+	fetch 2,mem_queue_ptr
+	add pdata,QUEUE_OFFSET_CURR_NUM,regb
+	ifetcht 1,regb
+	increase 1,temp
+	istoret 1,regb	//number add 
+
+	ifetcht 1,pdata	//temp:each length
+	copy temp,loopcnt
+	add pdata,QUEUE_OFFSET_CURR_NUM,regb
+	ifetch 1,regb
+	increase -1,pdata
+	imul32 temp,pdata	//offset
+	arg mem_usb_queue_ele0,contr
+	iadd contr,contw
+	copy rega,contr
+p_calc_queue_next_ptr:
+	call memcpy
+	branch enable_user
 
-	
 
Index: sched/dongle.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YDN_Project/usb_16M/sched/dongle.dat	(revision 640)
+++ /YC1308AC/branch/mouse_project/YDN_Project/usb_16M/sched/dongle.dat	(working copy)
@@ -62,6 +62,13 @@
 mem_gain_fix:ff
 mem_gain_second_agc_en:00
 
+
+mem_queue_ptr:mem_usb_queue_each_size
+mem_usb_queue_each_size:
+05	#buf length
+ff	#buf number
+
+
 #mem_rf_debug_rx_gpio:92
 #mem_rf_debug_tx_gpio:92
 
