USBDDriver.c and USBD.c with debug messages

This commit is contained in:
Christina Quast
2015-01-03 21:49:18 +01:00
parent 5c0ea3dd64
commit 0b87d12002
2 changed files with 7 additions and 2 deletions

View File

@@ -143,6 +143,7 @@ void USBD_ResetHandler()
void USBD_RequestHandler(uint8_t bEndpoint,
const USBGenericRequest* pRequest)
{
TRACE_DEBUG("%s\n\r", "USBD_RequestHandler");
if (bEndpoint != 0) {
TRACE_WARNING("EP%d request not supported, default EP only",
bEndpoint);
@@ -366,6 +367,7 @@ void USBD_Init(void)
/* Upper Layer Initialize */
if (USBDCallbacks_Initialized)
USBDCallbacks_Initialized();
TRACE_DEBUG("%s\n\r", "..");
}
/**

View File

@@ -36,6 +36,8 @@
* Headers
*------------------------------------------------------------------------------*/
#include <board.h>
#include <USBLib_Trace.h>
#include "USBDDriver.h"
@@ -82,6 +84,7 @@ static void SetConfiguration(USBDDriver *pDriver, uint8_t cfgnum)
const USBConfigurationDescriptor *pConfiguration;
/* Use different descriptor depending on device speed */
TRACE_DEBUG("%s\n\r", "SetConfiguration");
if (USBD_IsHighSpeed()) {
@@ -229,7 +232,7 @@ static void GetDescriptor(
if (USBD_IsHighSpeed()) {
TRACE_DEBUG("HS ");
TRACE_DEBUG("%s", "HS ");
pDevice = pDriver->pDescriptors->pHsDevice;
pConfiguration = pDriver->pDescriptors->pHsConfiguration;
pQualifier = pDriver->pDescriptors->pHsQualifier;
@@ -237,7 +240,7 @@ static void GetDescriptor(
}
else {
TRACE_DEBUG("FS ");
TRACE_DEBUG("%s", "FS ");
pDevice = pDriver->pDescriptors->pFsDevice;
pConfiguration = pDriver->pDescriptors->pFsConfiguration;
pQualifier = pDriver->pDescriptors->pFsQualifier;