mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 23:21:36 +08:00
Fix packet size calculation in CDC/ACM and PL2303 USB serial drivers
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4771 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -167,7 +167,7 @@ extern const uint16_t g_commonconfig[NCOMMON_CONFIG];
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
extern void weak_function stm32_spiinitialize(void);
|
||||
void weak_function stm32_spiinitialize(void);
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_usbinitialize
|
||||
@@ -177,7 +177,7 @@ extern void weak_function stm32_spiinitialize(void);
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
extern void weak_function stm32_usbinitialize(void);
|
||||
void weak_function stm32_usbinitialize(void);
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_extcontextsave
|
||||
@@ -188,7 +188,7 @@ extern void weak_function stm32_usbinitialize(void);
|
||||
************************************************************************************/
|
||||
|
||||
#ifdef CONFIG_STM32_FSMC
|
||||
extern void stm32_extcontextsave(struct extmem_save_s *save);
|
||||
void stm32_extcontextsave(struct extmem_save_s *save);
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_extcontextrestore
|
||||
@@ -198,7 +198,7 @@ extern void stm32_extcontextsave(struct extmem_save_s *save);
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
extern void stm32_extcontextrestore(struct extmem_save_s *restore);
|
||||
void stm32_extcontextrestore(struct extmem_save_s *restore);
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_extmemgpios
|
||||
@@ -208,7 +208,7 @@ extern void stm32_extcontextrestore(struct extmem_save_s *restore);
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
extern void stm32_extmemgpios(const uint16_t *gpios, int ngpios);
|
||||
void stm32_extmemgpios(const uint16_t *gpios, int ngpios);
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_enablefsmc
|
||||
@@ -218,7 +218,7 @@ extern void stm32_extmemgpios(const uint16_t *gpios, int ngpios);
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
extern void stm32_enablefsmc(void);
|
||||
void stm32_enablefsmc(void);
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_disablefsmc
|
||||
@@ -228,7 +228,7 @@ extern void stm32_enablefsmc(void);
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
extern void stm32_disablefsmc(void);
|
||||
void stm32_disablefsmc(void);
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_selectnor
|
||||
@@ -238,7 +238,7 @@ extern void stm32_disablefsmc(void);
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
extern void stm32_selectnor(void);
|
||||
void stm32_selectnor(void);
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_deselectnor
|
||||
@@ -248,7 +248,7 @@ extern void stm32_selectnor(void);
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
extern void stm32_deselectnor(void);
|
||||
void stm32_deselectnor(void);
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_selectsram
|
||||
@@ -258,7 +258,7 @@ extern void stm32_deselectnor(void);
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
extern void stm32_selectsram(void);
|
||||
void stm32_selectsram(void);
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_deselectsram
|
||||
@@ -268,7 +268,7 @@ extern void stm32_selectsram(void);
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
extern void stm32_deselectsram(void);
|
||||
void stm32_deselectsram(void);
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_selectlcd
|
||||
@@ -278,7 +278,7 @@ extern void stm32_deselectsram(void);
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
extern void stm32_selectlcd(void);
|
||||
void stm32_selectlcd(void);
|
||||
|
||||
/************************************************************************************
|
||||
* Name: stm32_deselectlcd
|
||||
@@ -288,7 +288,7 @@ extern void stm32_selectlcd(void);
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
extern void stm32_deselectlcd(void);
|
||||
void stm32_deselectlcd(void);
|
||||
|
||||
#endif /* CONFIG_STM32_FSMC */
|
||||
|
||||
|
||||
@@ -88,10 +88,10 @@ void stm32_boardinitialize(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Initialize USB is 1) USBDEV is selected, 2) the USB controller is not
|
||||
* disabled, and 3) the weak function stm32_usbinitialize() has been brought
|
||||
* into the build.
|
||||
*/
|
||||
/* Initialize USB is 1) USBDEV is selected, 2) the USB controller is not
|
||||
* disabled, and 3) the weak function stm32_usbinitialize() has been brought
|
||||
* into the build.
|
||||
*/
|
||||
|
||||
#if defined(CONFIG_USBDEV) && defined(CONFIG_STM32_USB)
|
||||
if (stm32_usbinitialize)
|
||||
|
||||
Reference in New Issue
Block a user