Skip to content

Commit e0f377f

Browse files
committed
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.
1 parent 2cd847e commit e0f377f

28 files changed

Lines changed: 28 additions & 28 deletions

File tree

examples/stm32/f4/stm32f4-discovery/adc-dac-printf/adc-dac-printf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ int _write(int file, char *ptr, int len);
3636

3737
static void clock_setup(void)
3838
{
39-
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
39+
rcc_clock_setup_pll(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
4040
/* Enable GPIOD clock for LED & USARTs. */
4141
rcc_periph_clock_enable(RCC_GPIOD);
4242
rcc_periph_clock_enable(RCC_GPIOA);

examples/stm32/f4/stm32f4-discovery/button/button.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/* Set STM32 to 168 MHz. */
2626
static void clock_setup(void)
2727
{
28-
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
28+
rcc_clock_setup_pll(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
2929
}
3030

3131
static void gpio_setup(void)

examples/stm32/f4/stm32f4-discovery/dac-dma/dac-dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ uint8_t waveform[256];
3333
/*--------------------------------------------------------------------*/
3434
static void clock_setup(void)
3535
{
36-
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
36+
rcc_clock_setup_pll(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
3737
}
3838

3939
/*--------------------------------------------------------------------*/

examples/stm32/f4/stm32f4-discovery/fancyblink/fancyblink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/* Set STM32 to 168 MHz. */
2626
static void clock_setup(void)
2727
{
28-
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
28+
rcc_clock_setup_pll(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
2929

3030
/* Enable GPIOD clock. */
3131
rcc_periph_clock_enable(RCC_GPIOD);

examples/stm32/f4/stm32f4-discovery/mandelbrot/mandel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
static void clock_setup(void)
2727
{
2828
/* Enable high-speed clock */
29-
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
29+
rcc_clock_setup_pll(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
3030

3131
/* Enable GPIOD clock for LED & USARTs. */
3232
rcc_periph_clock_enable(RCC_GPIOD);

examples/stm32/f4/stm32f4-discovery/random/random.c

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

2626
static void rcc_setup(void)
2727
{
28-
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
28+
rcc_clock_setup_pll(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
2929

3030
/* Enable GPIOD clock for onboard leds. */
3131
rcc_periph_clock_enable(RCC_GPIOD);

examples/stm32/f4/stm32f4-discovery/tick_blink/tick_blink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static void systick_setup(void)
5959
/* Set STM32 to 168 MHz. */
6060
static void clock_setup(void)
6161
{
62-
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
62+
rcc_clock_setup_pll(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
6363

6464
/* Enable GPIOD clock. */
6565
rcc_periph_clock_enable(RCC_GPIOD);

examples/stm32/f4/stm32f4-discovery/timer/timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ int frequency_sel = 0;
6363

6464
static void clock_setup(void)
6565
{
66-
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
66+
rcc_clock_setup_pll(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
6767
}
6868

6969
static void gpio_setup(void)

examples/stm32/f4/stm32f4-discovery/usb_cdcacm/cdcacm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ int main(void)
226226
{
227227
usbd_device *usbd_dev;
228228

229-
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
229+
rcc_clock_setup_pll(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
230230

231231
rcc_periph_clock_enable(RCC_GPIOA);
232232
rcc_periph_clock_enable(RCC_OTGFS);

examples/stm32/f4/stm32f4-discovery/usb_midi/usbmidi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ int main(void)
365365
{
366366
usbd_device *usbd_dev;
367367

368-
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
368+
rcc_clock_setup_pll(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
369369

370370
rcc_periph_clock_enable(RCC_GPIOA);
371371
rcc_periph_clock_enable(RCC_OTGFS);

0 commit comments

Comments
 (0)