vtx: fix VTX_SETTINGS_POWER_COUNT and add dummy entries to saPowerNames
[inav.git] / cmake / stm32f4-usb.cmake
blob7f0235a3681b18a458e85c554c0b7d31c6a3d480
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"
17 set(STM32_USBOTG_SRC
18     usb_core.c
19     usb_dcd.c
20     usb_dcd_int.c
22 list(TRANSFORM STM32_USBOTG_SRC PREPEND "${STM32_USBOTG_DIR}/src/")
24 set(STM32_USBCORE_SRC
25     usbd_core.c
26     usbd_ioreq.c
27     usbd_req.c
29 list(TRANSFORM STM32_USBCORE_SRC PREPEND  "${STM32_USBCORE_DIR}/src/")
31 set(STM32_USBCDC_SRC
32     "${STM32_USBCDC_DIR}/src/usbd_cdc_core.c"
35 set(STM32_USBHID_SRC
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
44     usbd_msc_bot.c
45     usbd_msc_core.c
46     usbd_msc_data.c
47     usbd_msc_scsi.c
49 main_sources(STM32F4_MSC_SRC
50     msc/usbd_msc_desc.c
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})