From 3ce3b1e1c5256b7ed807e32012d3d08e55655d69 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Fri, 19 Mar 2021 08:31:59 +0100 Subject: [PATCH] boards: lpc54xx: fix Mixed case identifier error Fix the Mixed case identifier errors found on lpc54xx family Signed-off-by: Alin Jerpelea --- .../lpcxpresso-lpc54628/src/lpc54_ft5x06.c | 16 ++++++++-------- .../lpc54xx/lpcxpresso-lpc54628/src/lpc54_lcd.c | 2 +- .../src/lpcxpresso-lpc54628.h | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/boards/arm/lpc54xx/lpcxpresso-lpc54628/src/lpc54_ft5x06.c b/boards/arm/lpc54xx/lpcxpresso-lpc54628/src/lpc54_ft5x06.c index f144b38401..44a48d1acd 100644 --- a/boards/arm/lpc54xx/lpcxpresso-lpc54628/src/lpc54_ft5x06.c +++ b/boards/arm/lpc54xx/lpcxpresso-lpc54628/src/lpc54_ft5x06.c @@ -41,7 +41,7 @@ * Pre-processor Definitions ****************************************************************************/ -#define FT5x06_FREQUENCY 400000 /* For now, will boost later */ +#define FT5X06_FREQUENCY 400000 /* For now, will boost later */ /**************************************************************************** * Private Function Ptototypes @@ -65,8 +65,8 @@ static void lpc54_ft5x06_nreset(FAR const struct ft5x06_config_s *config, static const struct ft5x06_config_s g_ft5x06_config = { - .address = FT5x06_I2C_ADDRESS, - .frequency = FT5x06_FREQUENCY, + .address = FT5X06_I2C_ADDRESS, + .frequency = FT5X06_FREQUENCY, #ifndef CONFIG_FT5X06_POLLMODE .attach = lpc54_ft5x06_attach, .enable = lpc54_ft5x06_enable, @@ -163,7 +163,7 @@ static void lpc54_ft5x06_wakeup(FAR const struct ft5x06_config_s *config) static void lpc54_ft5x06_nreset(FAR const struct ft5x06_config_s *config, bool nstate) { - lpc54_gpio_write(GPIO_FT5x06_CTRSTn, nstate); + lpc54_gpio_write(GPIO_FT5X06_CTRSTN, nstate); } /**************************************************************************** @@ -190,8 +190,8 @@ int lpc54_ft5x06_register(void) * early LCD initialization. The Part is in reset now. */ - lpc54_gpio_config(GPIO_FT5x06_INTR); - irq = lpc54_gpio_irqno(GPIO_FT5x06_INTR); + lpc54_gpio_config(GPIO_FT5X06_INTR); + irq = lpc54_gpio_irqno(GPIO_FT5X06_INTR); DEBUGASSERT(irq > 0 && irq < UINT8_MAX); g_ft5x06_irq = (uint8_t)irq; @@ -203,7 +203,7 @@ int lpc54_ft5x06_register(void) /* Take the FT5x06 out of reset */ - lpc54_gpio_write(GPIO_FT5x06_CTRSTn, true); + lpc54_gpio_write(GPIO_FT5X06_CTRSTN, true); /* The FT5x06 is on I2C2. Get the handle and register the F5x06 device */ @@ -221,7 +221,7 @@ int lpc54_ft5x06_register(void) syslog(LOG_ERR, "ERROR: Failed to register FT5x06 driver: %d\n", ret); - lpc54_gpio_write(GPIO_FT5x06_CTRSTn, false); + lpc54_gpio_write(GPIO_FT5X06_CTRSTN, false); lpc54_i2c_free(I2C2NDX); return ret; } diff --git a/boards/arm/lpc54xx/lpcxpresso-lpc54628/src/lpc54_lcd.c b/boards/arm/lpc54xx/lpcxpresso-lpc54628/src/lpc54_lcd.c index 0942636d21..9f000d0f62 100644 --- a/boards/arm/lpc54xx/lpcxpresso-lpc54628/src/lpc54_lcd.c +++ b/boards/arm/lpc54xx/lpcxpresso-lpc54628/src/lpc54_lcd.c @@ -54,7 +54,7 @@ void lpc54_lcd_initialize(void) * (putting it into reset) */ - lpc54_gpio_config(GPIO_FT5x06_CTRSTn); + lpc54_gpio_config(GPIO_FT5X06_CTRSTN); } /**************************************************************************** diff --git a/boards/arm/lpc54xx/lpcxpresso-lpc54628/src/lpcxpresso-lpc54628.h b/boards/arm/lpc54xx/lpcxpresso-lpc54628/src/lpcxpresso-lpc54628.h index f7337ddfd3..3a393fabca 100644 --- a/boards/arm/lpc54xx/lpcxpresso-lpc54628/src/lpcxpresso-lpc54628.h +++ b/boards/arm/lpc54xx/lpcxpresso-lpc54628/src/lpcxpresso-lpc54628.h @@ -272,18 +272,18 @@ * The FT4x06's WAKE-UP interrupt pin is not brought out. */ -#define GPIO_FT5x06_CTRSTn \ +#define GPIO_FT5X06_CTRSTN \ (GPIO_PORT2 | GPIO_PIN27 | GPIO_VALUE_ZERO | GPIO_OUTPUT | \ GPIO_MODE_DIGITAL | GPIO_FILTER_OFF | GPIO_PUSHPULL | GPIO_PULLUP) -#define GPIO_FT5x06_INTR \ +#define GPIO_FT5X06_INTR \ (GPIO_PORT4 | GPIO_PIN20 | GPIO_INTFE | GPIO_MODE_DIGITAL | GPIO_FILTER_OFF) /* I2C addresses (7-bit): */ #define CODEC_I2C_ADDRESS 0x1a #define ACCEL_I2C_ADDRESS 0x1d -#define FT5x06_I2C_ADDRESS 0x38 +#define FT5X06_I2C_ADDRESS 0x38 /**************************************************************************** * Public Types