Skip to content
Snippets Groups Projects
Commit 7b9d3b32 authored by Hauke Petersen's avatar Hauke Petersen
Browse files

boards/nrf51-based: share CLOCK_CORECLOCK define

parent 8816a3e8
Branches
No related tags found
No related merge requests found
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
* *
* @{ * @{
*/ */
#define CLOCK_CORECLOCK (16000000U) /* fixed for all nRF51822 */
#define CLOCK_HFCLK (16U) /* set to 0: internal RC oscillator #define CLOCK_HFCLK (16U) /* set to 0: internal RC oscillator
16: 16MHz crystal 16: 16MHz crystal
32: 32MHz crystal */ 32: 32MHz crystal */
......
...@@ -32,7 +32,6 @@ extern "C" { ...@@ -32,7 +32,6 @@ extern "C" {
* *
* @{ * @{
*/ */
#define CLOCK_CORECLOCK (16000000U) /* fixed for all nRF51822 */
#define CLOCK_HFCLK (16U) /* set to 0: internal RC oscillator #define CLOCK_HFCLK (16U) /* set to 0: internal RC oscillator
16: 16MHz crystal 16: 16MHz crystal
32: 32MHz crystal */ 32: 32MHz crystal */
......
...@@ -32,7 +32,6 @@ extern "C" { ...@@ -32,7 +32,6 @@ extern "C" {
* *
* @{ * @{
*/ */
#define CLOCK_CORECLOCK (16000000U) /* fixed for all nRF51822 */
#define CLOCK_HFCLK (16U) /* set to 0: internal RC oscillator #define CLOCK_HFCLK (16U) /* set to 0: internal RC oscillator
16: 16MHz crystal 16: 16MHz crystal
32: 32MHz crystal */ 32: 32MHz crystal */
......
...@@ -32,7 +32,6 @@ extern "C" { ...@@ -32,7 +32,6 @@ extern "C" {
* *
* @{ * @{
*/ */
#define CLOCK_CORECLOCK (16000000U) /* fixed for all nRF51822 */
#define CLOCK_HFCLK (16U) /* set to 0: internal RC oscillator #define CLOCK_HFCLK (16U) /* set to 0: internal RC oscillator
16: 16MHz crystal 16: 16MHz crystal
32: 32MHz crystal */ 32: 32MHz crystal */
......
...@@ -35,7 +35,6 @@ extern "C" { ...@@ -35,7 +35,6 @@ extern "C" {
* *
* @{ * @{
*/ */
#define CLOCK_CORECLOCK (16000000U) /* fixed for all nRF51822 */
#define CLOCK_HFCLK (16U) /* set to 0: internal RC oscillator #define CLOCK_HFCLK (16U) /* set to 0: internal RC oscillator
16: 16MHz crystal 16: 16MHz crystal
32: 32MHz crystal */ 32: 32MHz crystal */
......
...@@ -34,7 +34,6 @@ extern "C" { ...@@ -34,7 +34,6 @@ extern "C" {
* *
* @{ * @{
*/ */
#define CLOCK_CORECLOCK (16000000U) /* fixed for all nRF51822 */
#define CLOCK_HFCLK (16U) /* set to 0: internal RC oscillator #define CLOCK_HFCLK (16U) /* set to 0: internal RC oscillator
16: 16MHz crystal 16: 16MHz crystal
32: 32MHz crystal */ 32: 32MHz crystal */
......
...@@ -34,7 +34,6 @@ extern "C" { ...@@ -34,7 +34,6 @@ extern "C" {
* *
* @{ * @{
*/ */
#define CLOCK_CORECLOCK (16000000U) /* fixed for all nRF51822 */
#define CLOCK_HFCLK (16U) /* set to 0: internal RC oscillator #define CLOCK_HFCLK (16U) /* set to 0: internal RC oscillator
16: 16MHz crystal 16: 16MHz crystal
32: 32MHz crystal */ 32: 32MHz crystal */
......
...@@ -32,7 +32,6 @@ extern "C" { ...@@ -32,7 +32,6 @@ extern "C" {
* *
* @{ * @{
*/ */
#define CLOCK_CORECLOCK (16000000U) /* fixed for all nRF51822 */
#define CLOCK_HFCLK (16U) /* set to 0: internal RC oscillator #define CLOCK_HFCLK (16U) /* set to 0: internal RC oscillator
16: 16MHz crystal 16: 16MHz crystal
32: 32MHz crystal */ 32: 32MHz crystal */
......
...@@ -25,6 +25,11 @@ ...@@ -25,6 +25,11 @@
extern "C" { extern "C" {
#endif #endif
/**
* @brief System core clock speed, fixed to 16MHz for all NRF51x CPUs
*/
#define CLOCK_CORECLOCK (16000000U)
/** /**
* @brief Redefine some peripheral names to unify them between nRF51 and 52 * @brief Redefine some peripheral names to unify them between nRF51 and 52
* @{ * @{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment