From e3c78b88251c68b6b87240e6ed86f825a16a18ac Mon Sep 17 00:00:00 2001 From: Amitesh Singh Date: Fri, 1 Sep 2017 23:32:46 +0900 Subject: [PATCH] stm32f1:rcc: fix typo in usb prescaler api document usb scalar value 1.5 is used when clock runs at 72MHz not 64MHz Reviewed-by: Karl Palsson --- lib/stm32/f1/rcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stm32/f1/rcc.c b/lib/stm32/f1/rcc.c index af02d752..3db39f23 100644 --- a/lib/stm32/f1/rcc.c +++ b/lib/stm32/f1/rcc.c @@ -556,7 +556,7 @@ void rcc_set_hpre(uint32_t hpre) /** @brief RCC Set the USB Prescale Factor. The prescale factor can be set to 1 (no prescale) for use when the PLL clock is -48MHz, or 1.5 to generate the 48MHz USB clock from a 64MHz PLL clock. +48MHz, or 1.5 to generate the 48MHz USB clock from a 72MHz PLL clock. @note This bit cannot be reset while the USB clock is enabled.