mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-21 11:54:15 +01:00
f4 usb: configure and build ST USB OTG and USB DEV libraries
This commit is contained in:
parent
1e79ed6d54
commit
57f9f6e3d1
@ -31,11 +31,8 @@
|
|||||||
/** @defgroup USB_CONF_Exported_Defines
|
/** @defgroup USB_CONF_Exported_Defines
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define USE_USB_OTG_HS
|
|
||||||
|
|
||||||
#define USBD_CFG_MAX_NUM 1
|
#define USBD_CFG_MAX_NUM 1
|
||||||
#define USB_MAX_STR_DESC_SIZ 64
|
#define USB_MAX_STR_DESC_SIZ 64
|
||||||
#define USBD_EP0_MAX_PACKET_SIZE 64
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
#define USBD_ITF_MAX_NUM 2
|
@ -46,7 +46,7 @@
|
|||||||
compiler preprocessor.
|
compiler preprocessor.
|
||||||
*/
|
*/
|
||||||
#ifndef USE_USB_OTG_FS
|
#ifndef USE_USB_OTG_FS
|
||||||
//#define USE_USB_OTG_FS
|
#define USE_USB_OTG_FS
|
||||||
#endif /* USE_USB_OTG_FS */
|
#endif /* USE_USB_OTG_FS */
|
||||||
|
|
||||||
#ifndef USE_USB_OTG_HS
|
#ifndef USE_USB_OTG_HS
|
||||||
@ -58,7 +58,7 @@
|
|||||||
#endif /* USE_ULPI_PHY */
|
#endif /* USE_ULPI_PHY */
|
||||||
|
|
||||||
#ifndef USE_EMBEDDED_PHY
|
#ifndef USE_EMBEDDED_PHY
|
||||||
//#define USE_EMBEDDED_PHY
|
#define USE_EMBEDDED_PHY
|
||||||
#endif /* USE_EMBEDDED_PHY */
|
#endif /* USE_EMBEDDED_PHY */
|
||||||
|
|
||||||
#ifndef USE_I2C_PHY
|
#ifndef USE_I2C_PHY
|
||||||
|
@ -45,6 +45,21 @@ PERIPHLIB = $(PIOS_DEVLIB)/Libraries/STM32F4xx_StdPeriph_Driver
|
|||||||
SRC += $(wildcard $(PERIPHLIB)/src/*.c)
|
SRC += $(wildcard $(PERIPHLIB)/src/*.c)
|
||||||
EXTRAINCDIRS += $(PERIPHLIB)/inc
|
EXTRAINCDIRS += $(PERIPHLIB)/inc
|
||||||
|
|
||||||
|
#
|
||||||
|
# ST USB OTG library
|
||||||
|
#
|
||||||
|
USBOTGLIB = $(PIOS_DEVLIB)/Libraries/STM32_USB_OTG_Driver
|
||||||
|
USBOTGLIB_SRC = usb_core.c usb_dcd.c usb_dcd_int.c
|
||||||
|
SRC += $(addprefix $(USBOTGLIB)/src/,$(USBOTGLIB_SRC))
|
||||||
|
EXTRAINCDIRS += $(USBOTGLIB)/inc
|
||||||
|
|
||||||
|
#
|
||||||
|
# ST USB Device library
|
||||||
|
#
|
||||||
|
USBDEVLIB = $(PIOS_DEVLIB)/Libraries/STM32_USB_Device_Library
|
||||||
|
SRC += $(wildcard $(USBDEVLIB)/Core/src/*.c)
|
||||||
|
EXTRAINCDIRS += $(USBDEVLIB)/Core/inc
|
||||||
|
|
||||||
#
|
#
|
||||||
# FreeRTOS
|
# FreeRTOS
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user