diff --git a/cores/arduino/stm32/usb/usbd_conf.c b/cores/arduino/stm32/usb/usbd_conf.c index 109f2f56f5..6040c5dede 100644 --- a/cores/arduino/stm32/usb/usbd_conf.c +++ b/cores/arduino/stm32/usb/usbd_conf.c @@ -465,7 +465,15 @@ USBD_StatusTypeDef USBD_LL_Init(USBD_HandleTypeDef *pdev) USBD_reenumerate(); /* Set common LL Driver parameters */ g_hpcd.Init.dev_endpoints = DEV_NUM_EP; +#ifdef DEP0CTL_MPS_64 g_hpcd.Init.ep0_mps = DEP0CTL_MPS_64; +#else +#ifdef EP_MPS_64 + g_hpcd.Init.ep0_mps = EP_MPS_64; +#else +#error "Missing EP0 MPS definition: DEP0CTL_MPS_64 or EP_MPS_64!" +#endif +#endif #if !defined(STM32F1xx) && !defined(STM32F2xx) || defined(USB) g_hpcd.Init.lpm_enable = DISABLE; g_hpcd.Init.battery_charging_enable = DISABLE; diff --git a/system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l412xx.h b/system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l412xx.h index 24b71a35b3..8fbdf4a298 100644 --- a/system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l412xx.h +++ b/system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l412xx.h @@ -15,10 +15,10 @@ *
Licensed by ST under BSD 3-Clause license (the "License"). You may not use this package except in compliance with the License. You may obtain a copy of the License at:
-https://opensource.org/licenses/BSD-3-Clause
+This software component is licensed by ST under Apache-2.0 license, the "License"; You may not use this component except in compliance with the License. You may obtain a copy of the License at:
+This driver provides the CMSIS device for the stm32l4xx products. This covers
All stm32l4XXxx.h device description files
stm32l4r5xx.h and stm32l4s5xx.h description files
Add the support of STM32L4R5xx/STM32L4R7xx/STM32L4R9xx/STM32L4S5xx/STM32L4S7xx/STM32L4S9xx devices
stm32l451xx.h, stm32l452xx.h, stm32l462xx.h description files
stm32l496xx.h and stm32l4a6xx.h device description files
Add the support of STM32L496xx/STM32L4A6xx devices
Add the support of STM32L451xx/STM32L452xx/STM32L462xx devices
Fix DAC_SR_BWST1 bit definition
Fix SDMMC_DCTRL_DBLOCKSIZE_2 and SDMMC_DCTRL_DBLOCKSIZE_3 bits definition
All device register description files enriched with _Pos and _Msk defines to be used with _VAL2FLD(field, value) and _FLD2VAL(field, value) from CMSIS Core (previous defines are kept for compatibility)
stm32l471xx.h, stm32l475xx.h, stm32l476xx.h, stm32l485xx.h and stm32l486xx.h device description files
@@ -461,7 +489,7 @@Add the support of STM32L431xx/STM32L432xx/STM32L433xx/STM32L442xx/STM32L443xx devices
stm32l471xx.h, stm32l475xx.h, stm32l476xx.h, stm32l485xx.h and stm32l486xx.h device description files
stm32l471xx.h, stm32l475xx.h, stm32l476xx.h, stm32l485xx.h and stm32l486xx.h device description files
stm32l471xx.h, stm32l475xx.h, stm32l476xx.h, stm32l485xx.h and stm32l486xx.h devicedescription files
HAL drivers changes
HAL drivers changes
HAL drivers changes
HAL drivers changes
MISRA C:2012 corrections listed hereafter are applicable to LL driver as well.
Maintenance Release of HAL and Low Layer drivers
Add support of HAL callback registration feature
The feature may be enabled individually per HAL PPP driver by setting the corresponding definition USE_HAL_PPP_REGISTER_CALLBACKS to 1U in stm32l4xx_hal_conf.h project configuration file (template file stm32l4xx_hal_conf_template.h available from Drivers/STM32L4xx_HAL_Driver/Inc)
Once enabled, the user application may resort to HAL_PPP_RegisterCallback() to register specific callback function(s) and unregister it(them) with HAL_PPP_UnRegisterCallback().
MISRAC-2012 corrections
-MISRA C:2012 corrections
+HAL drivers changes
HAL generic driver
@@ -1287,11 +1457,11 @@HAL drivers changes
HAL drivers changes
HAL generic driver
@@ -1451,7 +1621,7 @@Release of HAL and Low Layer drivers to add support of STM32L4R5xx/STM32L4R7xx/STM32L4R9xx/STM32L4S5xx/STM32L4S7xx/STM32L4S9xx devices
New OctoSPI, DSI, LTDC, GFXMMU peripherals supported in new HAL OSPI, HAL DSI, HAL LTDC and HAL GFXMMU drivers
HAL drivers changes
HAL CAN driver
@@ -1764,11 +1934,11 @@HAL drivers changes
HAL generic driver
@@ -1808,7 +1978,7 @@HAL drivers changes
HAL drivers changes
HAL CRYP driver
@@ -1982,7 +2152,7 @@HAL drivers changes
HAL ADC driver
@@ -2074,7 +2244,7 @@HAL drivers changes
HAL ADC driver
@@ -2102,11 +2272,11 @@HAL drivers changes
Enhance HAL delay and timebase implementation
HAL drivers changes
HAL generic update
@@ -2424,7 +2594,7 @@HAL drivers changes
HAL generic update
@@ -2585,7 +2755,7 @@HAL generic update
Add Low Layer drivers allowing performance and footprint optimization
Low Layer drivers APIs are implemented as static inline function in new Inc/stm32l4xx_ll_ppp.h files for PPP peripherals, there is no configuration file and each stm32l4xx_ll_ppp.h file must be included in user code.
HAL ADC update