fix incorrect setup packet
also increase usbd stack in example when debug is enabled
This commit is contained in:
		| @@ -56,7 +56,13 @@ StaticTimer_t blinky_tmdef; | ||||
| TimerHandle_t blinky_tm; | ||||
|  | ||||
| // static task for usbd | ||||
| #define USBD_STACK_SIZE     (3*configMINIMAL_STACK_SIZE/2) | ||||
| // Increase stack size when debug log is enabled | ||||
| #if CFG_TUSB_DEBUG | ||||
|   #define USBD_STACK_SIZE     (3*configMINIMAL_STACK_SIZE) | ||||
| #else | ||||
|   #define USBD_STACK_SIZE     (3*configMINIMAL_STACK_SIZE/2) | ||||
| #endif | ||||
|  | ||||
| StackType_t  usb_device_stack[USBD_STACK_SIZE]; | ||||
| StaticTask_t usb_device_taskdef; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach