Fix a few errors that crept in with my review changes.
This commit is contained in:
parent
0960b50f3f
commit
42b3ee4cfc
@ -103,7 +103,6 @@
|
||||
# define NVIC_SYSH_SVCALL_PRIORITY NVIC_SYSH_PRIORITY_MAX
|
||||
#endif
|
||||
|
||||
|
||||
/************************************************************************************
|
||||
* Public Types
|
||||
************************************************************************************/
|
||||
|
@ -154,7 +154,6 @@ int lc823450_dmastart(DMA_HANDLE handle, dma_callback_t callback,
|
||||
void lc823450_dmastop(DMA_HANDLE handle);
|
||||
int lc823450_dmaremain(DMA_HANDLE handle);
|
||||
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
|
@ -173,7 +173,8 @@ static int lc823450_i2c_isr(int irq, FAR void *context, FAR void *arg);
|
||||
static int lc823450_i2c_init(FAR struct lc823450_i2c_priv_s *priv, int port);
|
||||
static int lc823450_i2c_deinit(FAR struct lc823450_i2c_priv_s *priv, int port);
|
||||
|
||||
static int lc823450_i2c_transfer(FAR struct i2c_master_s *dev, FAR struct i2c_msg_s *msgs, int count);
|
||||
static int lc823450_i2c_transfer(FAR struct i2c_master_s *dev,
|
||||
FAR struct i2c_msg_s *msgs, int count);
|
||||
|
||||
#ifdef CONFIG_I2C_RESET
|
||||
static int lc823450_i2c_reset(FAR struct i2c_master_s *priv);
|
||||
@ -808,7 +809,7 @@ static int lc823450_i2c_poll(FAR struct lc823450_i2c_priv_s *priv)
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_I2C_POLLED
|
||||
static int lc823450_i2c0_isr(int irq, FAR void *context, FAR void *arg)
|
||||
static int lc823450_i2c_isr(int irq, FAR void *context, FAR void *arg)
|
||||
{
|
||||
FAR struct lc823450_i2c_priv_s *priv =
|
||||
(FAR struct lc823450_i2c_priv_s *)arg;
|
||||
@ -817,7 +818,6 @@ static int lc823450_i2c0_isr(int irq, FAR void *context, FAR void *arg)
|
||||
return lc823450_i2c_poll(priv);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Initialization and Deinitialization
|
||||
|
@ -503,9 +503,11 @@ static int up_setup(struct uart_dev_s *dev)
|
||||
case 7:
|
||||
ctl &= ~UART_UMD_CL;
|
||||
break;
|
||||
|
||||
case 8:
|
||||
ctl |= UART_UMD_CL;
|
||||
break;
|
||||
|
||||
default:
|
||||
serr("ERROR: bits = %d\n", priv->bits);
|
||||
return -EINVAL;
|
||||
@ -516,12 +518,15 @@ static int up_setup(struct uart_dev_s *dev)
|
||||
{
|
||||
case 0: /* non */
|
||||
break;
|
||||
|
||||
case 1: /* odd */
|
||||
ctl |= UART_UMD_PS0;
|
||||
break;
|
||||
|
||||
case 2: /* even */
|
||||
ctl |= UART_UMD_PS1;
|
||||
break;
|
||||
|
||||
default:
|
||||
serr("ERROR: bits = %d\n", priv->bits);
|
||||
return -EINVAL;
|
||||
@ -547,6 +552,7 @@ static int up_setup(struct uart_dev_s *dev)
|
||||
ctl |= UART_UMD_RTSEN;
|
||||
}
|
||||
else
|
||||
{
|
||||
ctl &= ~UART_UMD_RTSEN;
|
||||
}
|
||||
|
||||
|
@ -35,7 +35,6 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
#ifndef __ARCH_ARM_SRC_LC823450_LC823450_SYSCONTROL_H
|
||||
#define __ARCH_ARM_SRC_LC823450_LC823450_SYSCONTROL_H
|
||||
|
||||
@ -47,7 +46,6 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
#define LC823450_SYSCONTROL_REGBASE 0x40080000
|
||||
|
||||
#define CORECNT (LC823450_SYSCONTROL_REGBASE + 0x0000)
|
||||
@ -208,7 +206,6 @@
|
||||
#define SDCTL_ACSMODE0_MMCDDR (4 << 1)
|
||||
#define SDCTL_SDMMC0_MMC (1 << 0)
|
||||
|
||||
|
||||
#define DREQ0_3 (LC823450_SYSCONTROL_REGBASE + 0x808)
|
||||
#define DREQ4_7 (LC823450_SYSCONTROL_REGBASE + 0x80c)
|
||||
#define DREQ8_C (LC823450_SYSCONTROL_REGBASE + 0x810)
|
||||
@ -245,6 +242,7 @@
|
||||
#define I2CMODE1 (1 << 1)
|
||||
|
||||
/* GPIO */
|
||||
|
||||
#define PORT0_BASE 0x40081000
|
||||
#define rP0DT (PORT0_BASE + 0x0000 + 0x04)
|
||||
#define rP1DT (PORT0_BASE + 0x1000 + 0x04)
|
||||
@ -266,28 +264,22 @@
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define EXTERN extern "C"
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#else
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Inline Functions
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
uint32_t get_cpu_ver(void);
|
||||
void init_default_mux(void);
|
||||
void lc823450_clock_dump(void);
|
||||
@ -300,7 +292,6 @@ void lc823450_mod_stby_regs(uint32_t clearbits, uint32_t setbits);
|
||||
# define lc823450_mod_stby_regs(...)
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user