Skip to content

Commit c183739

Browse files
mbrossardmathias-arm
authored andcommitted
CMSIS-DAPv2: blink LED on bulk interface activity
1 parent 8bd821f commit c183739

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/usb/bulk/usbd_bulk.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
#include "usb_for_lib.h"
2626
#include "util.h"
2727
#include "DAP_queue.h"
28+
#include "daplink.h"
29+
#include DAPLINK_MAIN_HEADER
2830

2931
static U8 *ptrDataIn;
3032
static U16 DataInReceLen;
@@ -76,6 +78,7 @@ void USBD_BULK_EP_BULKOUT_Event(U32 event)
7678
if ((DataInReceLen >= USBD_Bulk_BulkBufSize) ||
7779
(bytes_rece < usbd_bulk_maxpacketsize[USBD_HighSpeed])) {
7880
if (DAP_queue_execute_buf(&DAP_Cmd_queue, USBD_Bulk_BulkOutBuf, DataInReceLen, &rbuf)) {
81+
main_blink_hid_led(MAIN_LED_FLASH);
7982
//Trigger the BULKIn for the reply
8083
if (USB_ResponseIdle) {
8184
USBD_BULK_EP_BULKIN_Event(0);

0 commit comments

Comments
 (0)