mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
LPC23xx: Several fixes for typos from Lizhuoyi
This commit is contained in:
@@ -130,22 +130,27 @@ config LPC2378_UART2
|
|||||||
default n
|
default n
|
||||||
select ARCH_HAVE_UART2
|
select ARCH_HAVE_UART2
|
||||||
|
|
||||||
|
config LPC2378_UART3
|
||||||
|
bool "UART3"
|
||||||
|
default n
|
||||||
|
select ARCH_HAVE_UART3
|
||||||
|
|
||||||
config LPC2378_USBDEV
|
config LPC2378_USBDEV
|
||||||
bool "USB Device"
|
bool "USB Device"
|
||||||
default n
|
default n
|
||||||
depends on USBDEV
|
depends on USBDEV
|
||||||
|
|
||||||
config LPC2378_IC0
|
config LPC2378_I2C0
|
||||||
bool "I2C0"
|
bool "I2C0"
|
||||||
default n
|
default n
|
||||||
select I2C
|
select I2C
|
||||||
|
|
||||||
config LPC2378_IC1
|
config LPC2378_I2C1
|
||||||
bool "I2C1"
|
bool "I2C1"
|
||||||
default n
|
default n
|
||||||
select I2C
|
select I2C
|
||||||
|
|
||||||
config LPC2378_IC2
|
config LPC2378_I2C2
|
||||||
bool "I2C2"
|
bool "I2C2"
|
||||||
default n
|
default n
|
||||||
select I2C
|
select I2C
|
||||||
|
|||||||
+771
-724
File diff suppressed because it is too large
Load Diff
@@ -377,7 +377,7 @@ static int i2c_interrupt (int irq, FAR void *context)
|
|||||||
/* Reference UM10360 19.10.5 */
|
/* Reference UM10360 19.10.5 */
|
||||||
|
|
||||||
uint32_t state = getreg32(priv->base + I2C_STAT_OFFSET);
|
uint32_t state = getreg32(priv->base + I2C_STAT_OFFSET);
|
||||||
putreg32(I2C_CONCLR_SIC, priv->base + 2C_CONCLR_OFFSET);
|
putreg32(I2C_CONCLR_SIC, priv->base + I2C_CONCLR_OFFSET);
|
||||||
|
|
||||||
priv->state = state;
|
priv->state = state;
|
||||||
state &= 0xf8;
|
state &= 0xf8;
|
||||||
|
|||||||
Reference in New Issue
Block a user