This commit is contained in:
qiyongshuang
2023-12-01 10:33:09 +08:00
parent de6d68c654
commit ec059e0b18
395 changed files with 37947 additions and 28760 deletions
+15 -2
View File
@@ -10,9 +10,9 @@
* microcontroller manufactured by Nanjing Qinheng Microelectronics.
*******************************************************************************/
#include "uart.h"
#include "config.h"
#include "test_dtm.h"
#include "uart.h"
tmosTaskID test_taskid = INVALID_TASK_ID;
@@ -37,10 +37,23 @@ static void test_dtm_process_msg(tmos_event_hdr_t *pMsg) {
if(evt)
uart_send(evt);
uart_start_receiving();
uart_start_receiving();
}
break;
case USB_PROCESS_EVT:{
struct simple_buf *evt = NULL;
struct usb_process_msg *msg = \
(struct usb_process_msg *)pMsg;
evt = hci_cmd_handle((struct simple_buf*)msg->data);
if(evt)
usb_send(evt);
usb_start_receiving();
}
break;
default:
break;
}