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

boards/stm32f1*: adapt to new clock configuration

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

View File

@ -25,7 +25,14 @@
#define PERIPH_CONF_H
/* blxxxpill boards provide an LSE */
#define CLOCK_LSE (1)
#ifndef CONFIG_BOARD_HAS_LSE
#define CONFIG_BOARD_HAS_LSE 1
#endif
/* blxxxpill boards provide 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,13 +21,15 @@
#define PERIPH_CONF_COMMON_H
/* iotlab boards provide an LSE */
#define CLOCK_LSE (1)
#ifndef CONFIG_BOARD_HAS_LSE
#define CONFIG_BOARD_HAS_LSE 1
#endif
/* HSE is clocked at 16MHz */
#define CLOCK_HSE MHZ(16)
/* Adjust PLL predevider to reach 72MHz sysclock */
#define CLOCK_PLL_PREDIV (2)
#ifndef CONFIG_BOARD_HAS_HSE
#define CONFIG_BOARD_HAS_HSE 1
#endif
#define CLOCK_HSE MHZ(16)
#include "periph_cpu.h"
#include "f1f3/cfg_clock_default.h"

View File

@ -19,14 +19,16 @@
#ifndef PERIPH_CONF_H
#define PERIPH_CONF_H
/* iotlab boards provide an LSE */
#define CLOCK_LSE (1)
/* This board provides an LSE */
#ifndef CONFIG_BOARD_HAS_LSE
#define CONFIG_BOARD_HAS_LSE 1
#endif
/* HSE is clocked at 16MHz */
#define CLOCK_HSE MHZ(16)
/* Adjust PLL predevider to reach 72MHz sysclock */
#define CLOCK_PLL_PREDIV (2)
#ifndef CONFIG_BOARD_HAS_HSE
#define CONFIG_BOARD_HAS_HSE 1
#endif
#define CLOCK_HSE MHZ(16)
#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

@ -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

@ -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"