cpu/stm32/stmclk: enable 48MHz when usbdev is used
This commit is contained in:
parent
f07696e7a2
commit
337b99002a
@ -347,8 +347,8 @@
|
|||||||
#define CLOCK48MHZ_SELECT (0)
|
#define CLOCK48MHZ_SELECT (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Only periph_hwrng requires 48MHz for the moment */
|
/* periph_hwrng and periph_usbdev require a 48MHz clock source */
|
||||||
#if IS_USED(MODULE_PERIPH_HWRNG)
|
#if IS_USED(MODULE_PERIPH_HWRNG) || IS_USED(MODULE_PERIPH_USBDEV)
|
||||||
#if !IS_ACTIVE(CLOCK48MHZ_USE_PLLQ) && !IS_ACTIVE(CLOCK48MHZ_USE_MSI)
|
#if !IS_ACTIVE(CLOCK48MHZ_USE_PLLQ) && !IS_ACTIVE(CLOCK48MHZ_USE_MSI)
|
||||||
#error "No 48MHz clock source available, HWRNG cannot work"
|
#error "No 48MHz clock source available, HWRNG cannot work"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user