boards: added CLOCK defines to NRF based boards
This commit is contained in:
parent
2278e72952
commit
edea23299b
@ -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
|
||||||
* @{
|
* @{
|
||||||
|
|||||||
@ -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
|
||||||
* @{
|
* @{
|
||||||
|
|||||||
@ -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
|
||||||
* @{
|
* @{
|
||||||
|
|||||||
@ -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
|
||||||
* @{
|
* @{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user