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:
parent
042a550f0d
commit
e9bf08e6d5
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user