Do not enable the Mode mismatch interrupt source, it is not cleared
If this interrupt ever hits it will result in an infinite interrupt loop as it is never cleared.
This commit is contained in:
		 Chris Desjardins
					Chris Desjardins
				
			
				
					committed by
					
						 Chris Desjardins
						Chris Desjardins
					
				
			
			
				
	
			
			
			 Chris Desjardins
						Chris Desjardins
					
				
			
						parent
						
							b60d0ff1d4
						
					
				
				
					commit
					5ca9980060
				
			| @@ -462,9 +462,7 @@ void dcd_init(uint8_t rhport) { | ||||
|   dwc2->gotgint |= int_mask; | ||||
|  | ||||
|   // Required as part of core initialization. | ||||
|   // TODO: How should mode mismatch be handled? It will cause | ||||
|   // the core to stop working/require reset. | ||||
|   dwc2->gintmsk = GINTMSK_OTGINT | GINTMSK_MMISM | GINTMSK_RXFLVLM | | ||||
|   dwc2->gintmsk = GINTMSK_OTGINT | GINTMSK_RXFLVLM | | ||||
|                   GINTMSK_USBSUSPM | GINTMSK_USBRST | GINTMSK_ENUMDNEM | GINTMSK_WUIM; | ||||
|  | ||||
|   // Enable global interrupt | ||||
|   | ||||
		Reference in New Issue
	
	Block a user