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
b1de432c
Commit
b1de432c
authored
6 years ago
by
Alexandre Abadie
Browse files
Options
Downloads
Patches
Plain Diff
boards/common/nrf51: add common clock configuration
parent
b603c298
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
boards/common/nrf51/include/cfg_clock_16_0.h
+47
-0
47 additions, 0 deletions
boards/common/nrf51/include/cfg_clock_16_0.h
boards/common/nrf51/include/cfg_clock_16_1.h
+47
-0
47 additions, 0 deletions
boards/common/nrf51/include/cfg_clock_16_1.h
with
94 additions
and
0 deletions
boards/common/nrf51/include/cfg_clock_16_0.h
0 → 100644
+
47
−
0
View file @
b1de432c
/*
* Copyright (C) 2018 Inria
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup boards_common_nrf51
* @{
*
* @file
* @brief Common clock configuration for some nrf51 based boards
*
* @author Alexandre Abadie <alexandre.abadie@inria.fr>
*/
#ifndef CFG_CLOCK_16_0_H
#define CFG_CLOCK_16_0_H
#include
"periph_cpu.h"
#ifdef __cplusplus
extern
"C"
{
#endif
/**
* @name Clock configuration
*
* @note The radio will not work with the internal RC oscillator!
*
* @{
*/
#define CLOCK_HFCLK (16U)
/* set to 0: internal RC oscillator
16: 16MHz crystal
32: 32MHz crystal */
#define CLOCK_LFCLK (0)
/* set to 0: internal RC oscillator
* 1: 32.768 kHz crystal
* 2: derived from HFCLK */
/** @} */
#ifdef __cplusplus
}
/* end extern "C" */
#endif
#endif
/* CFG_CLOCK_16_0_H */
This diff is collapsed.
Click to expand it.
boards/common/nrf51/include/cfg_clock_16_1.h
0 → 100644
+
47
−
0
View file @
b1de432c
/*
* Copyright (C) 2018 Inria
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup boards_common_nrf51
* @{
*
* @file
* @brief Common clock configuration for some nrf51 based boards
*
* @author Alexandre Abadie <alexandre.abadie@inria.fr>
*/
#ifndef CFG_CLOCK_16_1_H
#define CFG_CLOCK_16_1_H
#include
"periph_cpu.h"
#ifdef __cplusplus
extern
"C"
{
#endif
/**
* @name Clock configuration
*
* @note The radio will not work with the internal RC oscillator!
*
* @{
*/
#define CLOCK_HFCLK (16U)
/* set to 0: internal RC oscillator
16: 16MHz crystal
32: 32MHz crystal */
#define CLOCK_LFCLK (1)
/* set to 0: internal RC oscillator
* 1: 32.768 kHz crystal
* 2: derived from HFCLK */
/** @} */
#ifdef __cplusplus
}
/* end extern "C" */
#endif
#endif
/* CFG_CLOCK_16_1_H */
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