cmake remove EXAMPLE-tinyusb target as library
This commit is contained in:
		
							
								
								
									
										6
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @@ -59,7 +59,7 @@ jobs: | ||||
|         toolchain: | ||||
|           # - 'arm-clang' is built by circle-ci in PR | ||||
|           - 'aarch64-gcc' | ||||
| #          - 'arm-gcc' | ||||
|           - 'arm-gcc' | ||||
|           - 'msp430-gcc' | ||||
|           - 'riscv-gcc' | ||||
|     with: | ||||
| @@ -72,7 +72,7 @@ jobs: | ||||
|   # Build Make (built by circle-ci in PR, only build on push here) | ||||
|   # --------------------------------------- | ||||
|   make: | ||||
|     if: github.event_name == 'push' && false | ||||
|     if: github.event_name == 'push' | ||||
|     needs: set-matrix | ||||
|     uses: ./.github/workflows/build_util.yml | ||||
|     strategy: | ||||
| @@ -113,7 +113,7 @@ jobs: | ||||
|   # Build IAR on HFP self-hosted | ||||
|   # --------------------------------------- | ||||
|   arm-iar: | ||||
|     if: github.repository_owner == 'hathach' && github.event_name == 'push' && false | ||||
|     if: github.repository_owner == 'hathach' && github.event_name == 'push' | ||||
|     needs: set-matrix | ||||
|     runs-on: [self-hosted, Linux, X64, hifiphile] | ||||
|     env: | ||||
|   | ||||
| @@ -95,15 +95,14 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_BCM2835) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/synopsys/dwc2/dcd_dwc2.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/hcd_dwc2.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/dwc2_common.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -102,15 +102,14 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_BCM${BCM_VERSION}) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/synopsys/dwc2/dcd_dwc2.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/hcd_dwc2.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/dwc2_common.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -100,13 +100,12 @@ function(family_configure_example TARGET RTOS) | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_CH32V103) | ||||
|  | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/wch/dcd_ch32_usbfs.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -125,14 +125,13 @@ function(family_configure_example TARGET RTOS) | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_CH32V20X) | ||||
|  | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/wch/dcd_ch32_usbfs.c | ||||
|     ${TOP}/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -114,14 +114,13 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_CH32V307) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/wch/dcd_ch32_usbhs.c | ||||
|     ${TOP}/src/portable/wch/dcd_ch32_usbfs.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -127,13 +127,12 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_DA1469X) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/dialog/da146xx/dcd_da146xx.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -101,13 +101,12 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_F1C100S) | ||||
|   target_sources(${TARGET}-tinyusb PRIVATE | ||||
|   target_sources(${TARGET} PRIVATE | ||||
|     ${TOP}/src/portable/sunxi/dcd_sunxi_musb.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -78,13 +78,12 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_VALENTYUSB_EPTRI) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/valentyusb/eptri/dcd_eptri.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -106,15 +106,14 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_GD32VF103) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/synopsys/dwc2/dcd_dwc2.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/hcd_dwc2.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/dwc2_common.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -139,15 +139,14 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_MIMXRT1XXX) | ||||
|   target_sources(${TARGET}-tinyusb PRIVATE | ||||
|   target_sources(${TARGET} PRIVATE | ||||
|     ${TOP}/src/portable/chipidea/ci_hs/dcd_ci_hs.c | ||||
|     ${TOP}/src/portable/chipidea/ci_hs/hcd_ci_hs.c | ||||
|     ${TOP}/src/portable/ehci/ehci.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -98,14 +98,13 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_KINETIS_K) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/chipidea/ci_fs/dcd_ci_fs.c | ||||
|     ${TOP}/src/portable/nxp/khci/hcd_khci.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -93,14 +93,13 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_KINETIS_K32L) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/nxp/khci/dcd_khci.c | ||||
|     ${TOP}/src/portable/nxp/khci/hcd_khci.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_flash_jlink(${TARGET}) | ||||
|   | ||||
| @@ -97,14 +97,13 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_KINETIS_KL) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/chipidea/ci_fs/dcd_ci_fs.c | ||||
|     ${TOP}/src/portable/nxp/khci/hcd_khci.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -91,13 +91,12 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_LPC11UXX) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -88,13 +88,12 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_LPC13XX) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -90,13 +90,12 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_LPC15XX) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -87,15 +87,14 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_LPC175X_6X) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/nxp/lpc17_40/dcd_lpc17_40.c | ||||
|     ${TOP}/src/portable/nxp/lpc17_40/hcd_lpc17_40.c | ||||
|     ${TOP}/src/portable/ohci/ohci.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -85,15 +85,14 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_LPC18XX) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/chipidea/ci_hs/dcd_ci_hs.c | ||||
|     ${TOP}/src/portable/chipidea/ci_hs/hcd_ci_hs.c | ||||
|     ${TOP}/src/portable/ehci/ehci.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -88,15 +88,14 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_LPC40XX) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/nxp/lpc17_40/dcd_lpc17_40.c | ||||
|     ${TOP}/src/portable/nxp/lpc17_40/hcd_lpc17_40.c | ||||
|     ${TOP}/src/portable/ohci/ohci.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -93,15 +93,14 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_LPC43XX) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/chipidea/ci_hs/dcd_ci_hs.c | ||||
|     ${TOP}/src/portable/chipidea/ci_hs/hcd_ci_hs.c | ||||
|     ${TOP}/src/portable/ehci/ehci.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -107,13 +107,12 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_LPC51) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -140,13 +140,12 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_LPC54) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -141,13 +141,12 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_LPC55) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -131,20 +131,19 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_MAX32650) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/mentor/musb/dcd_musb.c | ||||
|     ) | ||||
|   target_compile_options(${TARGET} PRIVATE | ||||
|     -Wno-error=strict-prototypes | ||||
|     ) | ||||
|  | ||||
|     target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_compile_options(${TARGET}-tinyusb PRIVATE | ||||
|     target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|   target_compile_options(${TARGET} PRIVATE | ||||
|     -Wno-error=strict-prototypes | ||||
|     ) | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -126,20 +126,19 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_MAX32666) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/mentor/musb/dcd_musb.c | ||||
|     ) | ||||
|   target_compile_options(${TARGET} PRIVATE | ||||
|     -Wno-error=strict-prototypes | ||||
|     ) | ||||
|  | ||||
|     target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_compile_options(${TARGET}-tinyusb PRIVATE | ||||
|     target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|   target_compile_options(${TARGET} PRIVATE | ||||
|     -Wno-error=strict-prototypes | ||||
|     ) | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -131,20 +131,19 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_MAX32690) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/mentor/musb/dcd_musb.c | ||||
|     ) | ||||
|   target_compile_options(${TARGET} PRIVATE | ||||
|     -Wno-error=strict-prototypes | ||||
|     ) | ||||
|  | ||||
|     target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_compile_options(${TARGET}-tinyusb PRIVATE | ||||
|     target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|   target_compile_options(${TARGET} PRIVATE | ||||
|     -Wno-error=strict-prototypes | ||||
|     ) | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -135,17 +135,16 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_MAX78002) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/mentor/musb/dcd_musb.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_compile_options(${TARGET}-tinyusb PRIVATE | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|   target_compile_options(${TARGET} PRIVATE | ||||
|     -Wno-error=strict-prototypes | ||||
|     -Wno-error=redundant-decls | ||||
|   ) | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -115,14 +115,13 @@ function(family_configure_example TARGET RTOS) | ||||
|     family_add_tinyusb(${TARGET} OPT_MCU_MCXA15) | ||||
|   endif() | ||||
|  | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     # TinyUSB: Port0 is chipidea FS, Port1 is chipidea HS | ||||
|     ${TOP}/src/portable/chipidea/$<IF:${PORT},ci_hs/dcd_ci_hs.c,ci_fs/dcd_ci_fs.c> | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -88,13 +88,12 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_MM32F327X) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/mindmotion/mm32/dcd_mm32f327x_otg.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -70,13 +70,11 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_MSP430x5xx) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/ti/msp430x5xx/dcd_msp430x5xx.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -86,14 +86,13 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_MSP432E4) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/mentor/musb/dcd_musb.c | ||||
|     ${TOP}/src/portable/mentor/musb/hcd_musb.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -4,9 +4,8 @@ set(NRFX_PATH ${TOP}/hw/mcu/nordic/nrfx) | ||||
| set(CMSIS_DIR ${TOP}/lib/CMSIS_5) | ||||
|  | ||||
| # include board specific, for zephyr BOARD_ALIAS may be used instead | ||||
| if (EXISTS ${CMAKE_CURRENT_LIST_DIR}/boards/${BOARD}/board.cmake) | ||||
|   include(${CMAKE_CURRENT_LIST_DIR}/boards/${BOARD}/board.cmake) | ||||
| else () | ||||
| include(${CMAKE_CURRENT_LIST_DIR}/boards/${BOARD}/board.cmake OPTIONAL RESULT_VARIABLE board_cmake_included) | ||||
| if (NOT board_cmake_included) | ||||
|   include(${CMAKE_CURRENT_LIST_DIR}/boards/${BOARD_ALIAS}/board.cmake) | ||||
| endif () | ||||
|  | ||||
|   | ||||
| @@ -148,15 +148,14 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|     # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_RAXXX) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/renesas/rusb2/dcd_rusb2.c | ||||
|     ${TOP}/src/portable/renesas/rusb2/hcd_rusb2.c | ||||
|     ${TOP}/src/portable/renesas/rusb2/rusb2_common.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_flash_jlink(${TARGET}) | ||||
|   | ||||
| @@ -101,13 +101,12 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_SAMD11) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/microchip/samd/dcd_samd.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -99,13 +99,12 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_SAMG) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/microchip/samg/dcd_samg.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -101,13 +101,12 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_SAML22) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/microchip/samd/dcd_samd.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -103,14 +103,13 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_STM32C0) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c | ||||
|     ${TOP}/src/portable/st/typec/typec_stm32.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -101,13 +101,12 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_STM32F0) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -100,13 +100,12 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_STM32F1) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -100,15 +100,14 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_STM32F2) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/synopsys/dwc2/dcd_dwc2.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/hcd_dwc2.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/dwc2_common.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -98,13 +98,12 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_STM32F3) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -126,15 +126,14 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_STM32F4) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/synopsys/dwc2/dcd_dwc2.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/hcd_dwc2.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/dwc2_common.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -128,15 +128,14 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_STM32F7) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/synopsys/dwc2/dcd_dwc2.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/hcd_dwc2.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/dwc2_common.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -102,14 +102,13 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_STM32G0) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c | ||||
|     ${TOP}/src/portable/st/typec/typec_stm32.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -98,14 +98,13 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_STM32G4) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c | ||||
|     ${TOP}/src/portable/st/typec/typec_stm32.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -102,14 +102,13 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_STM32H5) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c | ||||
|     ${TOP}/src/portable/st/typec/typec_stm32.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -133,15 +133,14 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_STM32H7) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/synopsys/dwc2/dcd_dwc2.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/hcd_dwc2.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/dwc2_common.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -102,13 +102,12 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_STM32L0) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -102,16 +102,15 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_${FAMILY_MCUS}) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/synopsys/dwc2/dcd_dwc2.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/hcd_dwc2.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/dwc2_common.c | ||||
|     ${TOP}/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -102,17 +102,16 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_STM32U5) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/dcd_dwc2.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/hcd_dwc2.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/dwc2_common.c | ||||
|     #${TOP}/src/portable/st/typec/typec_stm32.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -105,13 +105,12 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_${FAMILY_MCUS}) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -80,14 +80,13 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_TM4C123) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/mentor/musb/dcd_musb.c | ||||
|     ${TOP}/src/portable/mentor/musb/hcd_musb.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
| @@ -84,15 +84,14 @@ function(family_configure_example TARGET RTOS) | ||||
|  | ||||
|   # Add TinyUSB target and port source | ||||
|   family_add_tinyusb(${TARGET} OPT_MCU_XMC4000) | ||||
|   target_sources(${TARGET}-tinyusb PUBLIC | ||||
|   target_sources(${TARGET} PUBLIC | ||||
|     ${TOP}/src/portable/synopsys/dwc2/dcd_dwc2.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/hcd_dwc2.c | ||||
|     ${TOP}/src/portable/synopsys/dwc2/dwc2_common.c | ||||
|     ) | ||||
|   target_link_libraries(${TARGET}-tinyusb PUBLIC board_${BOARD}) | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD}) | ||||
|  | ||||
|  | ||||
|   # Link dependencies | ||||
|   target_link_libraries(${TARGET} PUBLIC board_${BOARD} ${TARGET}-tinyusb) | ||||
|  | ||||
|   # Flashing | ||||
|   family_add_bin_hex(${TARGET}) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach