aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/NRF5/NRF51822/hal_lld.h
diff options
context:
space:
mode:
authorStephane D'Alu <sdalu@sdalu.com>2016-07-10 10:48:04 +0200
committerStephane D'Alu <sdalu@sdalu.com>2016-07-10 10:48:04 +0200
commit5259158d1727f3703bc90f88d50938eada316f67 (patch)
treef1e53477749e537639585384cbdc1bad2b21c5d6 /os/hal/ports/NRF5/NRF51822/hal_lld.h
parentba393d3ae1c78c881ff3bf67c68c1f7c7642bcb0 (diff)
downloadChibiOS-Contrib-5259158d1727f3703bc90f88d50938eada316f67.tar.gz
ChibiOS-Contrib-5259158d1727f3703bc90f88d50938eada316f67.tar.bz2
ChibiOS-Contrib-5259158d1727f3703bc90f88d50938eada316f67.zip
renamed NRF51_* to NRF5_*
Diffstat (limited to 'os/hal/ports/NRF5/NRF51822/hal_lld.h')
-rw-r--r--os/hal/ports/NRF5/NRF51822/hal_lld.h31
1 files changed, 18 insertions, 13 deletions
diff --git a/os/hal/ports/NRF5/NRF51822/hal_lld.h b/os/hal/ports/NRF5/NRF51822/hal_lld.h
index c520a43..47b1966 100644
--- a/os/hal/ports/NRF5/NRF51822/hal_lld.h
+++ b/os/hal/ports/NRF5/NRF51822/hal_lld.h
@@ -15,7 +15,7 @@
*/
/**
- * @file NRF51/NRF51822/hal_lld.h
+ * @file NRF5/NRF51822/hal_lld.h
* @brief NRF51822 HAL subsystem low level driver header.
*
* @addtogroup HAL
@@ -30,24 +30,31 @@
/*===========================================================================*/
/**
+ * @name Platform identification
+ * @{
+ */
+#define PLATFORM_NAME "Nordic Semiconductor nRF51822"
+
+/**
* @name Chip series
*/
#define NRF_SERIES 51
/**
- * @name Platform identification
- * @{
+ * @brief Frequency value for the Low Frequency Clock
*/
-#define PLATFORM_NAME "Nordic Semiconductor nRF51822"
+#define NRF5_LFCLK_FREQUENCY 32768
/**
- * @}
+ * @brief Frequency value for the High Frequency Clock
*/
+#define NRF5_HFCLK_FREQUENCY 16000000
/**
- * @brief Frequency valuefor the Low Frequency Clock
+ * @}
*/
-#define NRF51_LFCLK_FREQUENCY 32768
+
+
/*===========================================================================*/
/* Driver pre-compile time settings. */
@@ -62,16 +69,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 +95,6 @@
#include "nvic.h"
-#define NRF51_LFCLK_FREQUENCY 32768
-#define NRF51_HFCLK_FREQUENCY 16000000
#ifdef __cplusplus
extern "C" {