mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-17 05:38:33 +03:00
USBDDriver.c and USBD.c with debug messages
This commit is contained in:
@@ -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", "..");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user