mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/nrfxx: update LFCLK selection to be more generic
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
This commit is contained in:
parent
f0dc0e7c47
commit
0a5d07c391
@ -34,7 +34,12 @@ extern "C" {
|
||||
* @{
|
||||
*/
|
||||
#define CLOCK_HFCLK (1) /* external crystal */
|
||||
#define CLOCK_LFCLK (0) /* internal RC oscillator */
|
||||
|
||||
/* LFCLK Source clock selection:*/
|
||||
/* - CLOCK_LFCLKSRC_SRC_RC: internal RC oscillator
|
||||
* - CLOCK_LFCLKSRC_SRC_Xtal: 32.768 kHz crystal
|
||||
* - CLOCK_LFCLKSRC_SRC_Synth: derived from HFCLK */
|
||||
#define CLOCK_LFCLK (CLOCK_LFCLKSRC_SRC_RC) /**< LFCLK Source */
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -35,9 +35,11 @@
|
||||
#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 */
|
||||
/* LFCLK Source clock selection:*/
|
||||
/* - CLOCK_LFCLKSRC_SRC_RC: internal RC oscillator
|
||||
* - CLOCK_LFCLKSRC_SRC_Xtal: 32.768 kHz crystal
|
||||
* - CLOCK_LFCLKSRC_SRC_Synth: derived from HFCLK */
|
||||
#define CLOCK_LFCLK (CLOCK_LFCLKSRC_SRC_RC) /**< LFCLK Source */
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -35,9 +35,11 @@
|
||||
#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 */
|
||||
/* LFCLK Source clock selection:*/
|
||||
/* - CLOCK_LFCLKSRC_SRC_RC: internal RC oscillator
|
||||
* - CLOCK_LFCLKSRC_SRC_Xtal: 32.768 kHz crystal
|
||||
* - CLOCK_LFCLKSRC_SRC_Synth: derived from HFCLK */
|
||||
#define CLOCK_LFCLK (CLOCK_LFCLKSRC_SRC_Xtal) /**< LFCLK Source */
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -33,9 +33,11 @@ extern "C" {
|
||||
*/
|
||||
#define CLOCK_HFCLK (32U) /* set to 0: internal RC oscillator
|
||||
* 32: 32MHz crystal */
|
||||
#define CLOCK_LFCLK (0) /* set to 0: internal RC oscillator
|
||||
* 1: 32.768 kHz crystal
|
||||
* 2: derived from HFCLK */
|
||||
/* LFCLK Source clock selection:*/
|
||||
/* - CLOCK_LFCLKSRC_SRC_RC: internal RC oscillator
|
||||
* - CLOCK_LFCLKSRC_SRC_Xtal: 32.768 kHz crystal
|
||||
* - CLOCK_LFCLKSRC_SRC_Synth: derived from HFCLK */
|
||||
#define CLOCK_LFCLK (CLOCK_LFCLKSRC_SRC_RC) /**< LFCLK Source */
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -33,9 +33,11 @@ extern "C" {
|
||||
*/
|
||||
#define CLOCK_HFCLK (32U) /* set to 0: internal RC oscillator
|
||||
* 32: 32MHz crystal */
|
||||
#define CLOCK_LFCLK (1) /* set to 0: internal RC oscillator
|
||||
* 1: 32.768 kHz crystal
|
||||
* 2: derived from HFCLK */
|
||||
/* LFCLK Source clock selection:*/
|
||||
/* - CLOCK_LFCLKSRC_SRC_RC: internal RC oscillator
|
||||
* - CLOCK_LFCLKSRC_SRC_Xtal: 32.768 kHz crystal
|
||||
* - CLOCK_LFCLKSRC_SRC_Synth: derived from HFCLK */
|
||||
#define CLOCK_LFCLK (CLOCK_LFCLKSRC_SRC_Xtal) /**< LFCLK Source */
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -31,7 +31,7 @@ extern "C" {
|
||||
#define CLOCK_CORECLOCK MHZ(128)
|
||||
|
||||
/**
|
||||
* @name HF Clock configuration
|
||||
* @name Clock configuration
|
||||
*
|
||||
*
|
||||
* @{
|
||||
@ -40,7 +40,12 @@ extern "C" {
|
||||
/* CLOCK_HFCLKSRC_SRC_HFXO to use external 32MHz crystal
|
||||
* CLOCK_HFCLKSRC_SRC_HFINT to use internal crystal */
|
||||
#define CLOCK_HFCLK (CLOCK_HFCLKSRC_SRC_HFXO) /**< HFCLK Source selection */
|
||||
#define CLOCK_LFCLK (3) /**< LFCLK Source selection */
|
||||
|
||||
/* LFCLK Source clock selection:*/
|
||||
/* - CLOCK_LFCLKSRC_SRC_LFRC: 32.768 kHz RC oscillator
|
||||
* - CLOCK_LFCLKSRC_SRC_LFXO: 32.768 kHz crystal oscillator
|
||||
* - CLOCK_LFCLKSRC_SRC_LFSYNT: 32.768 kHz synthesized from HFCLK*/
|
||||
#define CLOCK_LFCLK (CLOCK_LFCLKSRC_SRC_LFXO) /**< LFCLK Source */
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -34,8 +34,10 @@ extern "C" {
|
||||
*/
|
||||
#define CLOCK_HFCLK (32U) /**< set to 0: internal RC oscillator
|
||||
* 32: 32MHz crystal */
|
||||
#define CLOCK_LFCLK (3) /**< set to 0: internal RC oscillator
|
||||
* 3: High Accuracy oscillator */
|
||||
/* LFCLK Source clock selection:*/
|
||||
/* - CLOCK_LFCLKSRC_SRC_LFRC: 32.768 kHz RC oscillator
|
||||
* - CLOCK_LFCLKSRC_SRC_LFXO: 32.768 kHz crystal oscillator */
|
||||
#define CLOCK_LFCLK (CLOCK_LFCLKSRC_SRC_LFXO) /**< LFCLK Source */
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user