boards: lpc54xx: fix Mixed case identifier error
Fix the Mixed case identifier errors found on lpc54xx family Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
parent
c2dd3832b3
commit
3ce3b1e1c5
@ -41,7 +41,7 @@
|
|||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#define FT5x06_FREQUENCY 400000 /* For now, will boost later */
|
#define FT5X06_FREQUENCY 400000 /* For now, will boost later */
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Function Ptototypes
|
* 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 =
|
static const struct ft5x06_config_s g_ft5x06_config =
|
||||||
{
|
{
|
||||||
.address = FT5x06_I2C_ADDRESS,
|
.address = FT5X06_I2C_ADDRESS,
|
||||||
.frequency = FT5x06_FREQUENCY,
|
.frequency = FT5X06_FREQUENCY,
|
||||||
#ifndef CONFIG_FT5X06_POLLMODE
|
#ifndef CONFIG_FT5X06_POLLMODE
|
||||||
.attach = lpc54_ft5x06_attach,
|
.attach = lpc54_ft5x06_attach,
|
||||||
.enable = lpc54_ft5x06_enable,
|
.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,
|
static void lpc54_ft5x06_nreset(FAR const struct ft5x06_config_s *config,
|
||||||
bool nstate)
|
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.
|
* early LCD initialization. The Part is in reset now.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
lpc54_gpio_config(GPIO_FT5x06_INTR);
|
lpc54_gpio_config(GPIO_FT5X06_INTR);
|
||||||
irq = lpc54_gpio_irqno(GPIO_FT5x06_INTR);
|
irq = lpc54_gpio_irqno(GPIO_FT5X06_INTR);
|
||||||
DEBUGASSERT(irq > 0 && irq < UINT8_MAX);
|
DEBUGASSERT(irq > 0 && irq < UINT8_MAX);
|
||||||
g_ft5x06_irq = (uint8_t)irq;
|
g_ft5x06_irq = (uint8_t)irq;
|
||||||
|
|
||||||
@ -203,7 +203,7 @@ int lpc54_ft5x06_register(void)
|
|||||||
|
|
||||||
/* Take the FT5x06 out of reset */
|
/* 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 */
|
/* 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",
|
syslog(LOG_ERR, "ERROR: Failed to register FT5x06 driver: %d\n",
|
||||||
ret);
|
ret);
|
||||||
|
|
||||||
lpc54_gpio_write(GPIO_FT5x06_CTRSTn, false);
|
lpc54_gpio_write(GPIO_FT5X06_CTRSTN, false);
|
||||||
lpc54_i2c_free(I2C2NDX);
|
lpc54_i2c_free(I2C2NDX);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@ void lpc54_lcd_initialize(void)
|
|||||||
* (putting it into reset)
|
* (putting it into reset)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
lpc54_gpio_config(GPIO_FT5x06_CTRSTn);
|
lpc54_gpio_config(GPIO_FT5X06_CTRSTN);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -272,18 +272,18 @@
|
|||||||
* The FT4x06's WAKE-UP interrupt pin is not brought out.
|
* 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_PORT2 | GPIO_PIN27 | GPIO_VALUE_ZERO | GPIO_OUTPUT | \
|
||||||
GPIO_MODE_DIGITAL | GPIO_FILTER_OFF | GPIO_PUSHPULL | GPIO_PULLUP)
|
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)
|
(GPIO_PORT4 | GPIO_PIN20 | GPIO_INTFE | GPIO_MODE_DIGITAL | GPIO_FILTER_OFF)
|
||||||
|
|
||||||
/* I2C addresses (7-bit): */
|
/* I2C addresses (7-bit): */
|
||||||
|
|
||||||
#define CODEC_I2C_ADDRESS 0x1a
|
#define CODEC_I2C_ADDRESS 0x1a
|
||||||
#define ACCEL_I2C_ADDRESS 0x1d
|
#define ACCEL_I2C_ADDRESS 0x1d
|
||||||
#define FT5x06_I2C_ADDRESS 0x38
|
#define FT5X06_I2C_ADDRESS 0x38
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Types
|
* Public Types
|
||||||
|
Loading…
Reference in New Issue
Block a user