mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-22 15:40:06 +00:00
Add STM32L5 support - no OTG similar to some L4s
This commit is contained in:
parent
5add4c97fa
commit
718bcdb8bc
@ -229,6 +229,12 @@
|
|||||||
#define TUP_USBIP_DWC2_STM32
|
#define TUP_USBIP_DWC2_STM32
|
||||||
#define TUP_DCD_ENDPOINT_MAX 6
|
#define TUP_DCD_ENDPOINT_MAX 6
|
||||||
|
|
||||||
|
#elif TU_CHECK_MCU(OPT_MCU_STM32L5)
|
||||||
|
#define TUP_USBIP_FSDEV
|
||||||
|
#define TUP_USBIP_FSDEV_STM32
|
||||||
|
#define TUP_DCD_ENDPOINT_MAX 8
|
||||||
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// Sony
|
// Sony
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
@ -362,6 +362,9 @@ void dcd_int_enable (uint8_t rhport)
|
|||||||
NVIC_EnableIRQ(USB_HP_IRQn);
|
NVIC_EnableIRQ(USB_HP_IRQn);
|
||||||
NVIC_EnableIRQ(USB_LP_IRQn);
|
NVIC_EnableIRQ(USB_LP_IRQn);
|
||||||
|
|
||||||
|
#elif CFG_TUSB_MCU == OPT_MCU_STM32L5
|
||||||
|
NVIC_EnableIRQ(USB_FS_IRQn);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#error Unknown arch in USB driver
|
#error Unknown arch in USB driver
|
||||||
#endif
|
#endif
|
||||||
@ -409,6 +412,9 @@ void dcd_int_disable(uint8_t rhport)
|
|||||||
NVIC_DisableIRQ(USB_HP_IRQn);
|
NVIC_DisableIRQ(USB_HP_IRQn);
|
||||||
NVIC_DisableIRQ(USB_LP_IRQn);
|
NVIC_DisableIRQ(USB_LP_IRQn);
|
||||||
|
|
||||||
|
#elif CFG_TUSB_MCU == OPT_MCU_STM32L5
|
||||||
|
NVIC_DisableIRQ(USB_FS_IRQn);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#error Unknown arch in USB driver
|
#error Unknown arch in USB driver
|
||||||
#endif
|
#endif
|
||||||
|
@ -93,6 +93,14 @@
|
|||||||
#include "stm32l4xx.h"
|
#include "stm32l4xx.h"
|
||||||
#define PMA_LENGTH (1024u)
|
#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
|
#else
|
||||||
#error You are using an untested or unimplemented STM32 variant. Please update the driver.
|
#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
|
// This includes L1x0, L1x1, L1x2, L4x2 and L4x3, G1x1, G1x3, and G1x4
|
||||||
|
@ -82,6 +82,7 @@
|
|||||||
#define OPT_MCU_STM32G4 311 ///< ST G4
|
#define OPT_MCU_STM32G4 311 ///< ST G4
|
||||||
#define OPT_MCU_STM32WB 312 ///< ST WB
|
#define OPT_MCU_STM32WB 312 ///< ST WB
|
||||||
#define OPT_MCU_STM32U5 313 ///< ST U5
|
#define OPT_MCU_STM32U5 313 ///< ST U5
|
||||||
|
#define OPT_MCU_STM32L5 314 ///< ST L5
|
||||||
|
|
||||||
// Sony
|
// Sony
|
||||||
#define OPT_MCU_CXD56 400 ///< SONY CXD56
|
#define OPT_MCU_CXD56 400 ///< SONY CXD56
|
||||||
|
Loading…
x
Reference in New Issue
Block a user