Skip to content

Commit a525077

Browse files
committed
remove debug
1 parent 0994325 commit a525077

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

src/USBHost/USBHost.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -915,8 +915,6 @@ USB_TYPE USBHost::enumerate(USBDeviceConnected * dev, IUSBEnumerator* pEnumerato
915915
// don't enumerate a device which all interfaces are registered to a specific driver
916916
int index = findDevice(dev);
917917

918-
printf("index: %d\n", index);
919-
920918
if (index == -1) {
921919
return USB_TYPE_ERROR;
922920
}

src/USBHost/dbg.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
#define USB_DEBUG_H
1919

2020
//Debug is disabled by default
21-
#define DEBUG 4 /*INFO,ERR,WARN*/
22-
#define DEBUG_TRANSFER 1
23-
#define DEBUG_EP_STATE 1
24-
#define DEBUG_EVENT 1
21+
#define DEBUG 0 /*INFO,ERR,WARN*/
22+
#define DEBUG_TRANSFER 0
23+
#define DEBUG_EP_STATE 0
24+
#define DEBUG_EVENT 0
2525

2626
#if (DEBUG > 3)
2727
#define USB_DBG(x, ...) if (rtos::ThisThread::get_id() != 0) { printf("[USB_DBG: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__); }

src/targets/TARGET_STM/USBHALHost_STM.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ USBHALHost::USBHALHost()
178178
static RCC_CRSInitTypeDef RCC_CRSInitStruct;
179179

180180
/* Default Synchro Signal division factor (not divided) */
181-
RCC_CRSInitStruct.Prescaler = RCC_CRS_SYNC_DIV1;
181+
RCC_CRSInitStruct.Prescaler = RCC_CRS_SYNC_DIV1;
182182
/* Set the SYNCSRC[1:0] bits according to CRS_Source value */
183183
RCC_CRSInitStruct.Source = RCC_CRS_SYNC_SOURCE_USB2;
184184
/* HSI48 is synchronized with USB SOF at 1KHz rate */
@@ -189,8 +189,7 @@ USBHALHost::USBHALHost()
189189
/* Start automatic synchronization */
190190
HAL_RCCEx_CRSConfig(&RCC_CRSInitStruct);
191191

192-
uint32_t res = HAL_RCCEx_CRSWaitSynchronization(4000);
193-
printf("HAL_RCCEx_CRSWaitSynchronization: 0x%x\n", res);
192+
HAL_RCCEx_CRSWaitSynchronization(1000);
194193
#endif
195194

196195
#else

0 commit comments

Comments
 (0)