boards: added CLOCK defines to NRF based boards

This commit is contained in:
Hauke Petersen 2014-11-12 13:17:41 +01:00
parent 2278e72952
commit edea23299b
4 changed files with 53 additions and 0 deletions

View File

@ -14,6 +14,7 @@
* @brief Peripheral MCU configuration for the Airfy Beacon board * @brief Peripheral MCU configuration for the Airfy Beacon board
* *
* @author Christian Mehlis <mehlis@inf.fu-berlin.de> * @author Christian Mehlis <mehlis@inf.fu-berlin.de>
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef __PERIPH_CONF_H
@ -23,6 +24,19 @@
extern "C" { extern "C" {
#endif #endif
/**
* @name Clock configuration
*
* @note: the radio will not work with the internal RC oscillator!
*
* @{
*/
#define CLOCK_CORECLOCK (16000000U) /* fixed for all NRF51822 */
#define CLOCK_CRYSTAL (16U) /* set to 0: internal RC oscillator
16: 16MHz crystal
32: 32MHz crystal */
/** @} */
/** /**
* @name Timer configuration * @name Timer configuration
* @{ * @{

View File

@ -25,6 +25,19 @@
extern "C" { extern "C" {
#endif #endif
/**
* @name Clock configuration
*
* @note: the radio will not work with the internal RC oscillator!
*
* @{
*/
#define CLOCK_CORECLOCK (16000000U) /* fixed for all NRF51822 */
#define CLOCK_CRYSTAL (16U) /* set to 0: internal RC oscillator
16: 16MHz crystal
32: 32MHz crystal */
/** @} */
/** /**
* @name Timer configuration * @name Timer configuration
* @{ * @{

View File

@ -25,6 +25,19 @@
extern "C" { extern "C" {
#endif #endif
/**
* @name Clock configuration
*
* @note: the radio will not work with the internal RC oscillator!
*
* @{
*/
#define CLOCK_CORECLOCK (16000000U) /* fixed for all NRF51822 */
#define CLOCK_CRYSTAL (16U) /* set to 0: internal RC oscillator
16: 16MHz crystal
32: 32MHz crystal */
/** @} */
/** /**
* @name Timer configuration * @name Timer configuration
* @{ * @{

View File

@ -23,6 +23,19 @@
extern "C" { extern "C" {
#endif #endif
/**
* @name Clock configuration
*
* @note: the radio will not work with the internal RC oscillator!
*
* @{
*/
#define CLOCK_CORECLOCK (16000000U) /* fixed for all NRF51822 */
#define CLOCK_CRYSTAL (16U) /* set to 0: internal RC oscillator
16: 16MHz crystal
32: 32MHz crystal */
/** @} */
/** /**
* @name Timer configuration * @name Timer configuration
* @{ * @{