mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 07:23:34 +08:00
Correct a typo in STM32 I2C3 support
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4345 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
+2
-2
@@ -2396,10 +2396,10 @@
|
||||
* arch/arm/src/stm32/stm32_i2c.c: Add support for I2C3
|
||||
* drivers/usbdev/: Lots of name changes: cdc_serial->cdcacm, usbstrg->usbmsc,
|
||||
usbser->pl2303
|
||||
* drivers/usbdev/composite*: Fleshed out support for a composite USB device.
|
||||
* drivers/usbdev/composite: Fleshed out support for a composite USB device.
|
||||
* drivers/stm3210e-eval/composite and drivers/stm3210e-eval/src/up_composite.c:
|
||||
Add a configuration test the USB composite device.
|
||||
* include/nuttx/usb/usb.h, drivers/usbdev/composite_descriptors.c, and
|
||||
drivers/usbdev/cdcacm_descriptors.c: Add support for the USB Interface
|
||||
Association Descriptor (IAD)
|
||||
|
||||
* arch/arm/src/stm32/stm32_i2c.c: Correct a typo in STM32 I2C3 support
|
||||
|
||||
@@ -1209,7 +1209,7 @@ static int stm32_i2c2_isr(int irq, void *context)
|
||||
************************************************************************************/
|
||||
|
||||
#ifdef CONFIG_STM32_I2C3
|
||||
static int stm32_i2c2_isr(int irq, void *context)
|
||||
static int stm32_i2c3_isr(int irq, void *context)
|
||||
{
|
||||
return stm32_i2c_isr(&stm32_i2c3_priv);
|
||||
}
|
||||
|
||||
@@ -489,14 +489,18 @@ static int composite_setup(FAR struct usbdevclass_driver_s *driver,
|
||||
{
|
||||
ret = composite_mkstrdesc(strid, buf);
|
||||
}
|
||||
else if (strid < DEV1_STRIDBASE + DEV1_NSTRIDS)
|
||||
#if DEV1_NSTRIDS > 0
|
||||
else if (strid <= DEV1_STRIDBASE + DEV1_NSTRIDS)
|
||||
{
|
||||
ret = DEV1_MKSTRDESC(strid, buf);
|
||||
}
|
||||
else if (strid < DEV2_STRIDBASE + DEV2_NSTRIDS)
|
||||
#endif
|
||||
#if DEV2_NSTRIDS > 0
|
||||
else if (strid <= DEV2_STRIDBASE + DEV2_NSTRIDS)
|
||||
{
|
||||
ret = DEV2_MKSTRDESC(strid, buf);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user