mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/nucleo-f030/70/72: adapt clock configuration
This commit is contained in:
parent
b81094cf7a
commit
eb590c0126
@ -28,19 +28,31 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Clock system configuration
|
* @name Clock settings
|
||||||
|
*
|
||||||
|
* @note This is auto-generated from
|
||||||
|
* `cpu/stm32_common/dist/clk_conf/clk_conf.c`
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define CLOCK_HSE (8000000U) /* external oscillator */
|
/* give the target core clock (HCLK) frequency [in Hz],
|
||||||
#define CLOCK_CORECLOCK (48000000U) /* desired core clock frequency */
|
* maximum: 48MHz */
|
||||||
|
#define CLOCK_CORECLOCK (48000000U)
|
||||||
/* the actual PLL values are automatically generated */
|
/* 0: no external high speed crystal available
|
||||||
#define CLOCK_PLL_MUL (CLOCK_CORECLOCK / CLOCK_HSE)
|
* else: actual crystal frequency [in Hz] */
|
||||||
|
#define CLOCK_HSE (8000000U)
|
||||||
/* bus clocks for simplified peripheral initialization, UPDATE MANUALLY! */
|
/* 0: no external low speed crystal available,
|
||||||
|
* 1: external crystal available (always 32.768kHz) */
|
||||||
|
#define CLOCK_LSE (1)
|
||||||
|
/* peripheral clock setup */
|
||||||
|
#define CLOCK_AHB_DIV RCC_CFGR_HPRE_DIV1
|
||||||
#define CLOCK_AHB (CLOCK_CORECLOCK / 1)
|
#define CLOCK_AHB (CLOCK_CORECLOCK / 1)
|
||||||
#define CLOCK_APB2 (CLOCK_CORECLOCK / 1)
|
#define CLOCK_APB1_DIV RCC_CFGR_PPRE_DIV1 /* max 48MHz */
|
||||||
#define CLOCK_APB1 (CLOCK_CORECLOCK / 1)
|
#define CLOCK_APB1 (CLOCK_CORECLOCK / 1)
|
||||||
|
#define CLOCK_APB2 (CLOCK_APB1)
|
||||||
|
|
||||||
|
/* PLL factors */
|
||||||
|
#define CLOCK_PLL_PREDIV (1)
|
||||||
|
#define CLOCK_PLL_MUL (6)
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -28,19 +28,31 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Clock system configuration
|
* @name Clock settings
|
||||||
|
*
|
||||||
|
* @note This is auto-generated from
|
||||||
|
* `cpu/stm32_common/dist/clk_conf/clk_conf.c`
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define CLOCK_HSE (8000000U) /* external oscillator */
|
/* give the target core clock (HCLK) frequency [in Hz],
|
||||||
#define CLOCK_CORECLOCK (48000000U) /* desired core clock frequency */
|
* maximum: 48MHz */
|
||||||
|
#define CLOCK_CORECLOCK (48000000U)
|
||||||
/* the actual PLL values are automatically generated */
|
/* 0: no external high speed crystal available
|
||||||
#define CLOCK_PLL_MUL (CLOCK_CORECLOCK / CLOCK_HSE)
|
* else: actual crystal frequency [in Hz] */
|
||||||
|
#define CLOCK_HSE (8000000U)
|
||||||
/* bus clocks for simplified peripheral initialization, UPDATE MANUALLY! */
|
/* 0: no external low speed crystal available,
|
||||||
|
* 1: external crystal available (always 32.768kHz) */
|
||||||
|
#define CLOCK_LSE (1)
|
||||||
|
/* peripheral clock setup */
|
||||||
|
#define CLOCK_AHB_DIV RCC_CFGR_HPRE_DIV1
|
||||||
#define CLOCK_AHB (CLOCK_CORECLOCK / 1)
|
#define CLOCK_AHB (CLOCK_CORECLOCK / 1)
|
||||||
#define CLOCK_APB2 (CLOCK_CORECLOCK / 1)
|
#define CLOCK_APB1_DIV RCC_CFGR_PPRE_DIV1 /* max 48MHz */
|
||||||
#define CLOCK_APB1 (CLOCK_CORECLOCK / 1)
|
#define CLOCK_APB1 (CLOCK_CORECLOCK / 1)
|
||||||
|
#define CLOCK_APB2 (CLOCK_APB1)
|
||||||
|
|
||||||
|
/* PLL factors */
|
||||||
|
#define CLOCK_PLL_PREDIV (1)
|
||||||
|
#define CLOCK_PLL_MUL (6)
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,19 +27,31 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Clock system configuration
|
* @name Clock settings
|
||||||
|
*
|
||||||
|
* @note This is auto-generated from
|
||||||
|
* `cpu/stm32_common/dist/clk_conf/clk_conf.c`
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define CLOCK_HSE (8000000U) /* external oscillator */
|
/* give the target core clock (HCLK) frequency [in Hz],
|
||||||
#define CLOCK_CORECLOCK (48000000U) /* desired core clock frequency */
|
* maximum: 48MHz */
|
||||||
|
#define CLOCK_CORECLOCK (48000000U)
|
||||||
/* the actual PLL values are automatically generated */
|
/* 0: no external high speed crystal available
|
||||||
#define CLOCK_PLL_MUL (CLOCK_CORECLOCK / CLOCK_HSE)
|
* else: actual crystal frequency [in Hz] */
|
||||||
|
#define CLOCK_HSE (8000000U)
|
||||||
/* bus clocks for simplified peripheral initialization, UPDATE MANUALLY! */
|
/* 0: no external low speed crystal available,
|
||||||
|
* 1: external crystal available (always 32.768kHz) */
|
||||||
|
#define CLOCK_LSE (1)
|
||||||
|
/* peripheral clock setup */
|
||||||
|
#define CLOCK_AHB_DIV RCC_CFGR_HPRE_DIV1
|
||||||
#define CLOCK_AHB (CLOCK_CORECLOCK / 1)
|
#define CLOCK_AHB (CLOCK_CORECLOCK / 1)
|
||||||
#define CLOCK_APB2 (CLOCK_CORECLOCK / 1)
|
#define CLOCK_APB1_DIV RCC_CFGR_PPRE_DIV1 /* max 48MHz */
|
||||||
#define CLOCK_APB1 (CLOCK_CORECLOCK / 1)
|
#define CLOCK_APB1 (CLOCK_CORECLOCK / 1)
|
||||||
|
#define CLOCK_APB2 (CLOCK_APB1)
|
||||||
|
|
||||||
|
/* PLL factors */
|
||||||
|
#define CLOCK_PLL_PREDIV (1)
|
||||||
|
#define CLOCK_PLL_MUL (6)
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user