Prevent USB peripheral fault when restarting USB on WB32 MCUs (#18058)
Co-authored-by: Joy <chang.li@westberrytech.com>
This commit is contained in:
		
							parent
							
								
									6b6cbf6038
								
							
						
					
					
						commit
						b5a52b4cff
					
				
					 3 changed files with 10 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -80,3 +80,7 @@ void __early_init(void) {
 | 
			
		|||
void boardInit(void) {
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void restart_usb_driver(USBDriver *usbp) {
 | 
			
		||||
  // Do nothing. Restarting the USB driver on these boards breaks it.
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -80,3 +80,7 @@ void __early_init(void) {
 | 
			
		|||
void boardInit(void) {
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void restart_usb_driver(USBDriver *usbp) {
 | 
			
		||||
  // Do nothing. Restarting the USB driver on these boards breaks it.
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -18,3 +18,5 @@
 | 
			
		|||
#ifndef EARLY_INIT_PERFORM_BOOTLOADER_JUMP
 | 
			
		||||
#    define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#define USB_ENDPOINTS_ARE_REORDERABLE
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue