mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-22 08:18:32 +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,
|
void USBD_RequestHandler(uint8_t bEndpoint,
|
||||||
const USBGenericRequest* pRequest)
|
const USBGenericRequest* pRequest)
|
||||||
{
|
{
|
||||||
|
TRACE_DEBUG("%s\n\r", "USBD_RequestHandler");
|
||||||
if (bEndpoint != 0) {
|
if (bEndpoint != 0) {
|
||||||
TRACE_WARNING("EP%d request not supported, default EP only",
|
TRACE_WARNING("EP%d request not supported, default EP only",
|
||||||
bEndpoint);
|
bEndpoint);
|
||||||
@@ -366,6 +367,7 @@ void USBD_Init(void)
|
|||||||
/* Upper Layer Initialize */
|
/* Upper Layer Initialize */
|
||||||
if (USBDCallbacks_Initialized)
|
if (USBDCallbacks_Initialized)
|
||||||
USBDCallbacks_Initialized();
|
USBDCallbacks_Initialized();
|
||||||
|
TRACE_DEBUG("%s\n\r", "..");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -36,6 +36,8 @@
|
|||||||
* Headers
|
* Headers
|
||||||
*------------------------------------------------------------------------------*/
|
*------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#include <board.h>
|
||||||
|
|
||||||
#include <USBLib_Trace.h>
|
#include <USBLib_Trace.h>
|
||||||
|
|
||||||
#include "USBDDriver.h"
|
#include "USBDDriver.h"
|
||||||
@@ -82,6 +84,7 @@ static void SetConfiguration(USBDDriver *pDriver, uint8_t cfgnum)
|
|||||||
const USBConfigurationDescriptor *pConfiguration;
|
const USBConfigurationDescriptor *pConfiguration;
|
||||||
|
|
||||||
/* Use different descriptor depending on device speed */
|
/* Use different descriptor depending on device speed */
|
||||||
|
TRACE_DEBUG("%s\n\r", "SetConfiguration");
|
||||||
|
|
||||||
if (USBD_IsHighSpeed()) {
|
if (USBD_IsHighSpeed()) {
|
||||||
|
|
||||||
@@ -229,7 +232,7 @@ static void GetDescriptor(
|
|||||||
|
|
||||||
if (USBD_IsHighSpeed()) {
|
if (USBD_IsHighSpeed()) {
|
||||||
|
|
||||||
TRACE_DEBUG("HS ");
|
TRACE_DEBUG("%s", "HS ");
|
||||||
pDevice = pDriver->pDescriptors->pHsDevice;
|
pDevice = pDriver->pDescriptors->pHsDevice;
|
||||||
pConfiguration = pDriver->pDescriptors->pHsConfiguration;
|
pConfiguration = pDriver->pDescriptors->pHsConfiguration;
|
||||||
pQualifier = pDriver->pDescriptors->pHsQualifier;
|
pQualifier = pDriver->pDescriptors->pHsQualifier;
|
||||||
@@ -237,7 +240,7 @@ static void GetDescriptor(
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
TRACE_DEBUG("FS ");
|
TRACE_DEBUG("%s", "FS ");
|
||||||
pDevice = pDriver->pDescriptors->pFsDevice;
|
pDevice = pDriver->pDescriptors->pFsDevice;
|
||||||
pConfiguration = pDriver->pDescriptors->pFsConfiguration;
|
pConfiguration = pDriver->pDescriptors->pFsConfiguration;
|
||||||
pQualifier = pDriver->pDescriptors->pFsQualifier;
|
pQualifier = pDriver->pDescriptors->pFsQualifier;
|
||||||
|
|||||||
Reference in New Issue
Block a user