Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
811c1594
Commit
811c1594
authored
7 years ago
by
Alexandre Abadie
Browse files
Options
Downloads
Patches
Plain Diff
boards/nucleo144-f412: fix clock configuration
parent
c59a7d83
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
boards/nucleo144-f412/include/periph_conf.h
+13
-14
13 additions, 14 deletions
boards/nucleo144-f412/include/periph_conf.h
with
13 additions
and
14 deletions
boards/nucleo144-f412/include/periph_conf.h
+
13
−
14
View file @
811c1594
...
@@ -31,22 +31,21 @@ extern "C" {
...
@@ -31,22 +31,21 @@ extern "C" {
* @name Clock system configuration
* @name Clock system configuration
* @{
* @{
*/
*/
#define CLOCK_HSE (8000000U)
/**< external oscillator */
/* 0: no external high speed crystal available
#define CLOCK_CORECLOCK (100000000U)
/**< desired core clock frequency */
* else: actual crystal frequency [in Hz] */
#define CLOCK_HSE (8000000U)
/* the actual PLL values are automatically generated */
/* 0: no external low speed crystal available,
#define CLOCK_PLL_M (CLOCK_HSE / 1000000)
* 1: external crystal available (always 32.768kHz) */
#define CLOCK_PLL_N ((CLOCK_CORECLOCK / 1000000) * 2)
#define CLOCK_LSE (1)
#define CLOCK_PLL_P (2U)
/* give the target core clock (HCLK) frequency [in Hz],
#define CLOCK_PLL_Q (CLOCK_PLL_N / 48)
* maximum: 100MHz */
#define CLOCK_AHB_DIV RCC_CFGR_HPRE_DIV1
#define CLOCK_CORECLOCK (96000000U)
#define CLOCK_APB1_DIV RCC_CFGR_PPRE1_DIV2
/* peripheral clock setup */
#define CLOCK_APB2_DIV RCC_CFGR_PPRE2_DIV1
#define CLOCK_AHB_DIV RCC_CFGR_HPRE_DIV1
/* min 25MHz */
#define CLOCK_FLASH_LATENCY FLASH_ACR_LATENCY_5WS
/* bus clocks for simplified peripheral initialization, UPDATE MANUALLY! */
#define CLOCK_AHB (CLOCK_CORECLOCK / 1)
#define CLOCK_AHB (CLOCK_CORECLOCK / 1)
#define CLOCK_APB1_DIV RCC_CFGR_PPRE1_DIV2
/* max 50MHz */
#define CLOCK_APB1 (CLOCK_CORECLOCK / 2)
#define CLOCK_APB1 (CLOCK_CORECLOCK / 2)
#define CLOCK_APB2_DIV RCC_CFGR_PPRE2_DIV1
/* max 100MHz */
#define CLOCK_APB2 (CLOCK_CORECLOCK / 1)
#define CLOCK_APB2 (CLOCK_CORECLOCK / 1)
/** @} */
/** @} */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment