stm32f4: use new rcc_clock_setup_pll()
Batch replaced to use new api. User code doesn't need this, but examples should be up to date, and this avoids deprecation warnings.
This commit is contained in:
@@ -36,7 +36,7 @@ int _write(int file, char *ptr, int len);
|
||||
|
||||
static void clock_setup(void)
|
||||
{
|
||||
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
|
||||
rcc_clock_setup_pll(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
|
||||
/* Enable GPIOD clock for LED & USARTs. */
|
||||
rcc_periph_clock_enable(RCC_GPIOD);
|
||||
rcc_periph_clock_enable(RCC_GPIOA);
|
||||
|
||||
Reference in New Issue
Block a user