50 #define __USBDEVICECMSISDAP_C__
58 #if ((FM_PERIPHERAL_USB_DEVICE_ENABLED == ON) && (USBDEVICECMSISDAP_ENABLED == ON))
60 #include "DAP_config.h"
79 #if (64 != DAP_PACKET_SIZE)
80 #error "USB HID Output Report Size must match DAP Packet Size"
82 #if (64 != DAP_PACKET_SIZE)
83 #error "USB HID Input Report Size must match DAP Packet Size"
146 LED_CONNECTED_OUT(1);
150 LED_CONNECTED_OUT(0);
173 volatile uint8_t u8EndpointIndex = 0xFF;
183 DAP_TransferAbort = 1;
193 if (USB_RequestIn == DAP_PACKET_COUNT) {
217 uint8_t* pu8Interface = NULL;
218 uint8_t u8InterfaceLength = 0;
223 pstcEndpointIN = NULL;
224 pstcEndpointOUT = NULL;
244 for(u8i = 0;u8i < u8InterfaceLength;)
246 u8i += pu8Interface[u8i];
263 if ((pstcEndpointIN != NULL) && (pstcEndpointOUT != NULL))
323 n = USB_RequestOut + 1;
324 if (n == DAP_PACKET_COUNT) {
335 #if USB_USES_DMA == ON
342 n = USB_ResponseIn + 1;
343 if (n == DAP_PACKET_COUNT) {