From 5259158d1727f3703bc90f88d50938eada316f67 Mon Sep 17 00:00:00 2001 From: Stephane D'Alu Date: Sun, 10 Jul 2016 10:48:04 +0200 Subject: renamed NRF51_* to NRF5_* --- os/hal/ports/NRF5/NRF51822/hal_i2c_lld.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'os/hal/ports/NRF5/NRF51822/hal_i2c_lld.h') diff --git a/os/hal/ports/NRF5/NRF51822/hal_i2c_lld.h b/os/hal/ports/NRF5/NRF51822/hal_i2c_lld.h index e2c3d07..f631368 100644 --- a/os/hal/ports/NRF5/NRF51822/hal_i2c_lld.h +++ b/os/hal/ports/NRF5/NRF51822/hal_i2c_lld.h @@ -49,8 +49,8 @@ * @details If set to @p TRUE the support for I2C0 is included. * @note The default is @p FALSE. */ -#if !defined(NRF51_I2C_USE_I2C0) || defined(__DOXYGEN__) -#define NRF51_I2C_USE_I2C0 FALSE +#if !defined(NRF5_I2C_USE_I2C0) || defined(__DOXYGEN__) +#define NRF5_I2C_USE_I2C0 FALSE #endif /** @@ -58,22 +58,22 @@ * @details If set to @p TRUE the support for I2C1 is included. * @note The default is @p FALSE. */ -#if !defined(NRF51_I2C_USE_I2C1) || defined(__DOXYGEN__) -#define NRF51_I2C_USE_I2C1 FALSE +#if !defined(NRF5_I2C_USE_I2C1) || defined(__DOXYGEN__) +#define NRF5_I2C_USE_I2C1 FALSE #endif /** * @brief I2C0 interrupt priority level setting. */ -#if !defined(NRF51_I2C_I2C0_IRQ_PRIORITY) || defined(__DOXYGEN__) -#define NRF51_I2C_I2C0_IRQ_PRIORITY 3 +#if !defined(NRF5_I2C_I2C0_IRQ_PRIORITY) || defined(__DOXYGEN__) +#define NRF5_I2C_I2C0_IRQ_PRIORITY 3 #endif /** * @brief I2C1 interrupt priority level setting. */ -#if !defined(NRF51_I2C_I2C1_IRQ_PRIORITY) || defined(__DOXYGEN__) -#define NRF51_I2C_I2C1_IRQ_PRIORITY 3 +#if !defined(NRF5_I2C_I2C1_IRQ_PRIORITY) || defined(__DOXYGEN__) +#define NRF5_I2C_I2C1_IRQ_PRIORITY 3 #endif /** @} */ @@ -81,13 +81,13 @@ /* Derived constants and error checks. */ /*===========================================================================*/ -#if NRF51_I2C_USE_I2C0 && \ - !OSAL_IRQ_IS_VALID_PRIORITY(NRF51_I2C_I2C0_IRQ_PRIORITY) +#if NRF5_I2C_USE_I2C0 && \ + !OSAL_IRQ_IS_VALID_PRIORITY(NRF5_I2C_I2C0_IRQ_PRIORITY) #error "Invalid IRQ priority assigned to I2C0" #endif -#if NRF51_I2C_USE_I2C1 && \ - !OSAL_IRQ_IS_VALID_PRIORITY(NRF51_I2C_I2C1_IRQ_PRIORITY) +#if NRF5_I2C_USE_I2C1 && \ + !OSAL_IRQ_IS_VALID_PRIORITY(NRF5_I2C_I2C1_IRQ_PRIORITY) #error "Invalid IRQ priority assigned to I2C1" #endif @@ -198,11 +198,11 @@ struct I2CDriver { #if !defined(__DOXYGEN__) -#if NRF51_I2C_USE_I2C0 +#if NRF5_I2C_USE_I2C0 extern I2CDriver I2CD1; #endif -#if NRF51_I2C_USE_I2C1 +#if NRF5_I2C_USE_I2C1 extern I2CDriver I2CD2; #endif -- cgit v1.2.3