boards/stm32f1*: adapt to new clock configuration
This commit is contained in:
parent
042a550f0d
commit
e9bf08e6d5
@ -25,7 +25,14 @@
|
|||||||
#define PERIPH_CONF_H
|
#define PERIPH_CONF_H
|
||||||
|
|
||||||
/* blxxxpill boards provide an LSE */
|
/* 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 "periph_cpu.h"
|
||||||
#include "f1f3/cfg_clock_default.h"
|
#include "f1f3/cfg_clock_default.h"
|
||||||
|
|||||||
@ -21,14 +21,16 @@
|
|||||||
#define PERIPH_CONF_COMMON_H
|
#define PERIPH_CONF_COMMON_H
|
||||||
|
|
||||||
/* iotlab boards provide an LSE */
|
/* 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 */
|
/* HSE is clocked at 16MHz */
|
||||||
|
#ifndef CONFIG_BOARD_HAS_HSE
|
||||||
|
#define CONFIG_BOARD_HAS_HSE 1
|
||||||
|
#endif
|
||||||
#define CLOCK_HSE MHZ(16)
|
#define CLOCK_HSE MHZ(16)
|
||||||
|
|
||||||
/* Adjust PLL predevider to reach 72MHz sysclock */
|
|
||||||
#define CLOCK_PLL_PREDIV (2)
|
|
||||||
|
|
||||||
#include "periph_cpu.h"
|
#include "periph_cpu.h"
|
||||||
#include "f1f3/cfg_clock_default.h"
|
#include "f1f3/cfg_clock_default.h"
|
||||||
|
|
||||||
|
|||||||
@ -19,15 +19,17 @@
|
|||||||
#ifndef PERIPH_CONF_H
|
#ifndef PERIPH_CONF_H
|
||||||
#define PERIPH_CONF_H
|
#define PERIPH_CONF_H
|
||||||
|
|
||||||
/* iotlab boards provide an LSE */
|
/* This board provides an LSE */
|
||||||
#define CLOCK_LSE (1)
|
#ifndef CONFIG_BOARD_HAS_LSE
|
||||||
|
#define CONFIG_BOARD_HAS_LSE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* HSE is clocked at 16MHz */
|
/* HSE is clocked at 16MHz */
|
||||||
|
#ifndef CONFIG_BOARD_HAS_HSE
|
||||||
|
#define CONFIG_BOARD_HAS_HSE 1
|
||||||
|
#endif
|
||||||
#define CLOCK_HSE MHZ(16)
|
#define CLOCK_HSE MHZ(16)
|
||||||
|
|
||||||
/* Adjust PLL predevider to reach 72MHz sysclock */
|
|
||||||
#define CLOCK_PLL_PREDIV (2)
|
|
||||||
|
|
||||||
#include "periph_cpu.h"
|
#include "periph_cpu.h"
|
||||||
#include "f1f3/cfg_clock_default.h"
|
#include "f1f3/cfg_clock_default.h"
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,14 @@
|
|||||||
#define PERIPH_CONF_H
|
#define PERIPH_CONF_H
|
||||||
|
|
||||||
/* This board provides an LSE */
|
/* 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 "periph_cpu.h"
|
||||||
#include "f1f3/cfg_clock_default.h"
|
#include "f1f3/cfg_clock_default.h"
|
||||||
|
|||||||
@ -20,7 +20,14 @@
|
|||||||
#define PERIPH_CONF_H
|
#define PERIPH_CONF_H
|
||||||
|
|
||||||
/* This board provides an LSE */
|
/* 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 "periph_cpu.h"
|
||||||
#include "f1f3/cfg_clock_default.h"
|
#include "f1f3/cfg_clock_default.h"
|
||||||
|
|||||||
@ -19,6 +19,11 @@
|
|||||||
#ifndef PERIPH_CONF_H
|
#ifndef PERIPH_CONF_H
|
||||||
#define 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 "periph_cpu.h"
|
||||||
#include "f1f3/cfg_clock_default.h"
|
#include "f1f3/cfg_clock_default.h"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user