1 set(STM32_USBOTG_DIR "${MAIN_LIB_DIR}/main/STM32_USB_OTG_Driver")
2 set(STM32_USBCORE_DIR "${MAIN_LIB_DIR}/main/STM32_USB_Device_Library/Core")
3 set(STM32_USBCDC_DIR "${MAIN_LIB_DIR}/main/STM32_USB_Device_Library/Class/cdc")
4 set(STM32_USBHID_DIR "${MAIN_LIB_DIR}/main/STM32_USB_Device_Library/Class/hid")
5 set(STM32_USBWRAPPER_DIR "${MAIN_LIB_DIR}/main/STM32_USB_Device_Library/Class/hid_cdc_wrapper")
6 set(STM32_USBMSC_DIR "${MAIN_LIB_DIR}/main/STM32_USB_Device_Library/Class/msc")
8 set(STM32F4_USB_INCLUDE_DIRS
9 "${STM32_USBOTG_DIR}/inc"
10 "${STM32_USBCORE_DIR}/inc"
11 "${STM32_USBCDC_DIR}/inc"
12 "${STM32_USBHID_DIR}/inc"
13 "${STM32_USBWRAPPER_DIR}/inc"
14 "${STM32_USBMSC_DIR}/inc"
22 list(TRANSFORM STM32_USBOTG_SRC PREPEND "${STM32_USBOTG_DIR}/src/")
29 list(TRANSFORM STM32_USBCORE_SRC PREPEND "${STM32_USBCORE_DIR}/src/")
32 "${STM32_USBCDC_DIR}/src/usbd_cdc_core.c"
36 "${STM32_USBHID_DIR}/src/usbd_hid_core.c"
39 set(STM32_USBWRAPPER_SRC
40 "${STM32_USBWRAPPER_DIR}/src/usbd_hid_cdc_wrapper.c"
43 set(STM32F4_USBMSC_SRC
49 main_sources(STM32F4_MSC_SRC
52 list(TRANSFORM STM32F4_USBMSC_SRC PREPEND "${STM32_USBMSC_DIR}/src/")
53 list(APPEND STM32F4_USBMSC_SRC ${STM32F4_MSC_SRC})
55 list(APPEND STM32F4_USB_SRC ${STM32_USBOTG_SRC})
56 list(APPEND STM32F4_USB_SRC ${STM32_USBCORE_SRC})
57 list(APPEND STM32F4_USB_SRC ${STM32_USBCDC_SRC})
58 list(APPEND STM32F4_USB_SRC ${STM32_USBHID_SRC})
59 list(APPEND STM32F4_USB_SRC ${STM32_USBWRAPPER_SRC})