Add STM32L5 support - no OTG similar to some L4s
This commit is contained in:
		@@ -362,6 +362,9 @@ void dcd_int_enable (uint8_t rhport)
 | 
			
		||||
  NVIC_EnableIRQ(USB_HP_IRQn);
 | 
			
		||||
  NVIC_EnableIRQ(USB_LP_IRQn);
 | 
			
		||||
 | 
			
		||||
#elif CFG_TUSB_MCU == OPT_MCU_STM32L5
 | 
			
		||||
  NVIC_EnableIRQ(USB_FS_IRQn);
 | 
			
		||||
 | 
			
		||||
#else
 | 
			
		||||
  #error Unknown arch in USB driver
 | 
			
		||||
#endif
 | 
			
		||||
@@ -409,6 +412,9 @@ void dcd_int_disable(uint8_t rhport)
 | 
			
		||||
  NVIC_DisableIRQ(USB_HP_IRQn);
 | 
			
		||||
  NVIC_DisableIRQ(USB_LP_IRQn);
 | 
			
		||||
 | 
			
		||||
#elif CFG_TUSB_MCU == OPT_MCU_STM32L5
 | 
			
		||||
  NVIC_DisableIRQ(USB_FS_IRQn);
 | 
			
		||||
 | 
			
		||||
#else
 | 
			
		||||
  #error Unknown arch in USB driver
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
@@ -93,6 +93,14 @@
 | 
			
		||||
  #include "stm32l4xx.h"
 | 
			
		||||
  #define PMA_LENGTH (1024u)
 | 
			
		||||
 | 
			
		||||
#elif CFG_TUSB_MCU == OPT_MCU_STM32L5
 | 
			
		||||
  #include "stm32l5xx.h"
 | 
			
		||||
  #define PMA_LENGTH (1024u)
 | 
			
		||||
 | 
			
		||||
  #ifndef USB_PMAADDR
 | 
			
		||||
    #define USB_PMAADDR (USB_BASE + (USB_PMAADDR_NS - USB_BASE_NS))
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
#else
 | 
			
		||||
  #error You are using an untested or unimplemented STM32 variant. Please update the driver.
 | 
			
		||||
  // This includes L1x0, L1x1, L1x2, L4x2 and L4x3, G1x1, G1x3, and G1x4
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user