cpu/stm32/stmclk: enable 48MHz when usbdev is used

This commit is contained in:
Alexandre Abadie 2021-12-01 09:09:35 +01:00
parent f07696e7a2
commit 337b99002a
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -347,8 +347,8 @@
#define CLOCK48MHZ_SELECT (0)
#endif
/* Only periph_hwrng requires 48MHz for the moment */
#if IS_USED(MODULE_PERIPH_HWRNG)
/* periph_hwrng and periph_usbdev require a 48MHz clock source */
#if IS_USED(MODULE_PERIPH_HWRNG) || IS_USED(MODULE_PERIPH_USBDEV)
#if !IS_ACTIVE(CLOCK48MHZ_USE_PLLQ) && !IS_ACTIVE(CLOCK48MHZ_USE_MSI)
#error "No 48MHz clock source available, HWRNG cannot work"
#endif