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/NRF51822/hal_qei_lld.h | |
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/NRF51822/hal_qei_lld.h')
-rw-r--r-- | os/hal/ports/NRF5/NRF51822/hal_qei_lld.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/os/hal/ports/NRF5/NRF51822/hal_qei_lld.h b/os/hal/ports/NRF5/NRF51822/hal_qei_lld.h index 5037591..f9a87b0 100644 --- a/os/hal/ports/NRF5/NRF51822/hal_qei_lld.h +++ b/os/hal/ports/NRF5/NRF51822/hal_qei_lld.h @@ -71,8 +71,8 @@ * is included.
* @note The default is @p FALSE.
*/
-#if !defined(NRF51_QEI_USE_LED) || defined(__DOXYGEN__)
-#define NRF51_QEI_USE_LED FALSE
+#if !defined(NRF5_QEI_USE_LED) || defined(__DOXYGEN__)
+#define NRF5_QEI_USE_LED FALSE
#endif
/**
@@ -81,8 +81,8 @@ * is included.
* @note The default is @p FALSE.
*/
-#if !defined(NRF51_QEI_USE_ACC_OVERFLOWED_CB) || defined(__DOXYGEN__)
-#define NRF51_QEI_USE_ACC_OVERFLOWED_CB FALSE
+#if !defined(NRF5_QEI_USE_ACC_OVERFLOWED_CB) || defined(__DOXYGEN__)
+#define NRF5_QEI_USE_ACC_OVERFLOWED_CB FALSE
#endif
/**
@@ -90,15 +90,15 @@ * @details If set to @p TRUE the support for QEID1 is included.
* @note The default is @p FALSE.
*/
-#if !defined(NRF51_QEI_USE_QDEC0) || defined(__DOXYGEN__)
-#define NRF51_QEI_USE_QDEC0 FALSE
+#if !defined(NRF5_QEI_USE_QDEC0) || defined(__DOXYGEN__)
+#define NRF5_QEI_USE_QDEC0 FALSE
#endif
/**
* @brief QEID interrupt priority level setting for QDEC0.
*/
-#if !defined(NRF51_QEI_QDEC0_IRQ_PRIORITY) || defined(__DOXYGEN__)
-#define NRF51_QEI_QDEC0_IRQ_PRIORITY 2
+#if !defined(NRF5_QEI_QDEC0_IRQ_PRIORITY) || defined(__DOXYGEN__)
+#define NRF5_QEI_QDEC0_IRQ_PRIORITY 2
#endif
/** @} */
@@ -106,12 +106,12 @@ /* Derived constants and error checks. */
/*===========================================================================*/
-#if NRF51_QEI_USE_QDEC0 && \
- !OSAL_IRQ_IS_VALID_PRIORITY(NRF51_QEI_QDEC0_IRQ_PRIORITY)
+#if NRF5_QEI_USE_QDEC0 && \
+ !OSAL_IRQ_IS_VALID_PRIORITY(NRF5_QEI_QDEC0_IRQ_PRIORITY)
#error "Invalid IRQ priority assigned to QDEC0"
#endif
-#if NRF51_QEI_USE_QDEC0 == FALSE
+#if NRF5_QEI_USE_QDEC0 == FALSE
#error "Requesting QEI driver, but no QDEC peripheric attached"
#endif
@@ -238,7 +238,7 @@ typedef struct { * @brief Line for reading Phase B
*/
ioline_t phase_b;
-#if (NRF51_QEI_USE_LED == TRUE) || defined(__DOXYGEN__)
+#if (NRF5_QEI_USE_LED == TRUE) || defined(__DOXYGEN__)
/**
* @brief Line used to control LED
*
@@ -276,7 +276,7 @@ typedef struct { * @details Default to QEI_REPORT_10
*/
qeireport_t report;
-#if NRF51_QEI_USE_ACC_OVERFLOWED_CB == TRUE
+#if NRF5_QEI_USE_ACC_OVERFLOWED_CB == TRUE
/**
* @brief Notify of internal accumulator overflowed
* (ie: MCU discarding samples)
@@ -311,7 +311,7 @@ struct QEIDriver { * @brief Counter
*/
qeicnt_t count;
-#if NRF51_QEI_USE_ACC_OVERFLOWED_CB == TRUE
+#if NRF5_QEI_USE_ACC_OVERFLOWED_CB == TRUE
/**
* @brief Number of time the MCU discarded updates due to
* accumulator overflow
@@ -359,7 +359,7 @@ struct QEIDriver { /* External declarations. */
/*===========================================================================*/
-#if NRF51_QEI_USE_QDEC0 && !defined(__DOXYGEN__)
+#if NRF5_QEI_USE_QDEC0 && !defined(__DOXYGEN__)
extern QEIDriver QEID1;
#endif
|