Skip to content

Commit 4f4e6f9

Browse files
committed
stm32f4: use 168MHz instead of intermediate 120MHz
120MHz is being removed in the library.
1 parent fed62e7 commit 4f4e6f9

10 files changed

Lines changed: 12 additions & 12 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
static void clock_setup(void)
2727
{
28-
/* Enable high-speed clock at 120MHz */
29-
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_120MHZ]);
28+
/* Enable high-speed clock */
29+
rcc_clock_setup_hse_3v3(&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_120MHZ]);
28+
rcc_clock_setup_hse_3v3(&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/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_120MHZ]);
229+
rcc_clock_setup_hse_3v3(&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_120MHZ]);
368+
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
369369

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

examples/stm32/f4/stm32f4-discovery/usb_msc/msc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static uint8_t usbd_control_buffer[128];
104104

105105
int main(void)
106106
{
107-
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_120MHZ]);
107+
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
108108

109109
rcc_periph_clock_enable(RCC_GPIOA);
110110
rcc_periph_clock_enable(RCC_OTGFS);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626

2727
static void clock_setup(void)
2828
{
29-
/* Enable high-speed clock at 120MHz */
30-
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_120MHZ]);
29+
/* Enable high-speed clock */
30+
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
3131

3232
/* Enable GPIOG clock for LED & USARTs. */
3333
rcc_periph_clock_enable(RCC_GPIOG);

examples/stm32/f4/stm32f429i-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_120MHZ]);
28+
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
2929

3030
/* Enable GPIOG clock for onboard leds. */
3131
rcc_periph_clock_enable(RCC_GPIOG);

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

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

230-
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_120MHZ]);
230+
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
231231

232232
rcc_periph_clock_enable(RCC_GPIOB);
233233
rcc_periph_clock_enable(RCC_OTGHS);

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

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

369-
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_120MHZ]);
369+
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
370370

371371
rcc_periph_clock_enable(RCC_GPIOA);
372372
rcc_periph_clock_enable(RCC_GPIOB);

examples/stm32/f4/stm32f429i-discovery/usb_msc/msc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static uint8_t usbd_control_buffer[128];
105105

106106
int main(void)
107107
{
108-
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_120MHZ]);
108+
rcc_clock_setup_hse_3v3(&rcc_hse_8mhz_3v3[RCC_CLOCK_3V3_168MHZ]);
109109

110110
rcc_periph_clock_enable(RCC_GPIOB);
111111
rcc_periph_clock_enable(RCC_OTGHS);

0 commit comments

Comments
 (0)