Skip to content

Commit 2994318

Browse files
committed
enable USBDEVICE on STM32L1 series, except for XDOT_L151CC
1 parent c734138 commit 2994318

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

targets/TARGET_STM/USBPhyHw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
#if MBED_CONF_TARGET_USB_SPEED == USE_USB_NO_OTG
4545

46-
#if defined(TARGET_STM32F1) || defined(TARGET_STM32F3) || defined(TARGET_STM32WB) || defined(TARGET_STM32G4)
46+
#if defined(TARGET_STM32F1) || defined(TARGET_STM32F3) || defined(TARGET_STM32L1) || defined(TARGET_STM32WB) || defined(TARGET_STM32G4)
4747
#define USBHAL_IRQn USB_LP_IRQn
4848
#elif defined(TARGET_STM32L5)
4949
#define USBHAL_IRQn USB_FS_IRQn

targets/targets.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3401,7 +3401,8 @@
34013401
"ANALOGOUT",
34023402
"SERIAL_ASYNCH",
34033403
"FLASH",
3404-
"MPU"
3404+
"MPU",
3405+
"USBDEVICE"
34053406
]
34063407
},
34073408
"MCU_STM32L151xC": {
@@ -3430,7 +3431,8 @@
34303431
}
34313432
},
34323433
"device_has_remove": [
3433-
"SERIAL_FC"
3434+
"SERIAL_FC",
3435+
"USBDEVICE"
34343436
],
34353437
"device_name": "STM32L151CC",
34363438
"detect_code": [

0 commit comments

Comments
 (0)