diff options
author | Stephane D'Alu <sdalu@sdalu.com> | 2016-07-10 10:48:04 +0200 |
---|---|---|
committer | Stephane D'Alu <sdalu@sdalu.com> | 2016-07-10 10:48:04 +0200 |
commit | 5259158d1727f3703bc90f88d50938eada316f67 (patch) | |
tree | f1e53477749e537639585384cbdc1bad2b21c5d6 /os/hal/ports/NRF5/NRF52832 | |
parent | ba393d3ae1c78c881ff3bf67c68c1f7c7642bcb0 (diff) | |
download | ChibiOS-Contrib-5259158d1727f3703bc90f88d50938eada316f67.tar.gz ChibiOS-Contrib-5259158d1727f3703bc90f88d50938eada316f67.tar.bz2 ChibiOS-Contrib-5259158d1727f3703bc90f88d50938eada316f67.zip |
renamed NRF51_* to NRF5_*
Diffstat (limited to 'os/hal/ports/NRF5/NRF52832')
-rw-r--r-- | os/hal/ports/NRF5/NRF52832/hal_lld.h | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/os/hal/ports/NRF5/NRF52832/hal_lld.h b/os/hal/ports/NRF5/NRF52832/hal_lld.h index c376b11..28d3f19 100644 --- a/os/hal/ports/NRF5/NRF52832/hal_lld.h +++ b/os/hal/ports/NRF5/NRF52832/hal_lld.h @@ -30,24 +30,30 @@ /*===========================================================================*/ /** + * @name Platform identification + * @{ + */ +#define PLATFORM_NAME "Nordic Semiconductor nRF52832" + +/** * @name Chip series */ -#define NRF_SERIES 52 +#define NRF_SERIES 52 /** - * @name Platform identification - * @{ + * @brief Frequency value for the Low Frequency Clock */ -#define PLATFORM_NAME "Nordic Semiconductor nRF52832" +#define NRF5_LFCLK_FREQUENCY 32768 /** - * @} + * @brief Frequency value for the High Frequency Clock */ +#define NRF5_HFCLK_FREQUENCY 64000000 /** - * @brief Frequency valuefor the Low Frequency Clock + * @} */ -#define NRF51_LFCLK_FREQUENCY 32768 + /*===========================================================================*/ /* Driver pre-compile time settings. */ @@ -62,16 +68,16 @@ * When cristal is not available it's preferable to use the * internal RC oscillator that synthezing the clock. */ -#if !defined(NRF51_LFCLK_SOURCE) || defined(__DOXYGEN__) -#define NRF51_LFCLK_SOURCE 0 +#if !defined(NRF5_LFCLK_SOURCE) || defined(__DOXYGEN__) +#define NRF5_LFCLK_SOURCE 0 #endif /*===========================================================================*/ /* Derived constants and error checks. */ /*===========================================================================*/ -#if (NRF51_LFCLK_SOURCE < 0) || (NRF51_LFCLK_SOURCE > 2) -#error "Possible value for NRF51_LFCLK_SOURCE are 0=RC, 1=XTAL, 2=Synth" +#if (NRF5_LFCLK_SOURCE < 0) || (NRF5_LFCLK_SOURCE > 2) +#error "Possible value for NRF5_LFCLK_SOURCE are 0=RC, 1=XTAL, 2=Synth" #endif /*===========================================================================*/ @@ -88,8 +94,6 @@ #include "nvic.h" -#define NRF51_LFCLK_FREQUENCY 32768 -#define NRF51_HFCLK_FREQUENCY 16000000 #ifdef __cplusplus extern "C" { |