1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

boards/stm32f3*: adapt to new clock configuration

This commit is contained in:
Alexandre Abadie 2020-08-31 10:48:52 +02:00
parent e9bf08e6d5
commit dd8eec540a
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
6 changed files with 45 additions and 10 deletions

View File

@ -24,7 +24,14 @@
#define PERIPH_CONF_H
/* This board provides an LSE */
#define CLOCK_LSE (1)
#ifndef CONFIG_BOARD_HAS_LSE
#define CONFIG_BOARD_HAS_LSE 1
#endif
/* This board provides an HSE */
#ifndef CONFIG_BOARD_HAS_HSE
#define CONFIG_BOARD_HAS_HSE 1
#endif
#include "periph_cpu.h"
#include "f1f3/cfg_clock_default.h"

View File

@ -19,12 +19,14 @@
#ifndef PERIPH_CONF_H
#define PERIPH_CONF_H
/* No HSE available for this board */
#define CLOCK_HSE (0U)
/* Adjust PLL prescalers to reach 72MHz sysclock */
#define CLOCK_PLL_PREDIV (2)
#define CLOCK_PLL_MUL (16)
/* Adjust PLL factors:
- On nucleo-f303k8, there's no HSE and PREDIV is hard-wired to 2
- to reach the maximum possible system clock (64MHz) set PLL_MUL to 16
so system clock = (HSI8 / 2) * 16 = 64MHz */
#define CONFIG_CLOCK_PLL_PREDIV (2)
#ifndef CONFIG_CLOCK_PLL_MUL
#define CONFIG_CLOCK_PLL_MUL (16)
#endif
#include "periph_cpu.h"
#include "f1f3/cfg_clock_default.h"

View File

@ -22,7 +22,14 @@
#define PERIPH_CONF_H
/* This board provides an LSE */
#define CLOCK_LSE (1)
#ifndef CONFIG_BOARD_HAS_LSE
#define CONFIG_BOARD_HAS_LSE 1
#endif
/* This board provides an HSE */
#ifndef CONFIG_BOARD_HAS_HSE
#define CONFIG_BOARD_HAS_HSE 1
#endif
#include "periph_cpu.h"
#include "f1f3/cfg_clock_default.h"

View File

@ -20,7 +20,14 @@
#define PERIPH_CONF_H
/* This board provides an LSE */
#define CLOCK_LSE (1)
#ifndef CONFIG_BOARD_HAS_LSE
#define CONFIG_BOARD_HAS_LSE 1
#endif
/* This board provides an HSE */
#ifndef CONFIG_BOARD_HAS_HSE
#define CONFIG_BOARD_HAS_HSE 1
#endif
#include "periph_cpu.h"
#include "f1f3/cfg_clock_default.h"

View File

@ -21,7 +21,14 @@
#define PERIPH_CONF_H
/* This board provides an LSE */
#define CLOCK_LSE (1)
#ifndef CONFIG_BOARD_HAS_LSE
#define CONFIG_BOARD_HAS_LSE 1
#endif
/* This board provides an HSE */
#ifndef CONFIG_BOARD_HAS_HSE
#define CONFIG_BOARD_HAS_HSE 1
#endif
#include "periph_cpu.h"
#include "f1f3/cfg_clock_default.h"

View File

@ -19,6 +19,11 @@
#ifndef PERIPH_CONF_H
#define PERIPH_CONF_H
/* This board provides an HSE */
#ifndef CONFIG_BOARD_HAS_HSE
#define CONFIG_BOARD_HAS_HSE 1
#endif
#include "periph_cpu.h"
#include "f1f3/cfg_clock_default.h"