mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
22 lines
706 B
Makefile
22 lines
706 B
Makefile
INCLUDES += -I$(RIOTBASE)/pkg/tinyusb/contrib
|
|
INCLUDES += -I$(RIOTBASE)/pkg/tinyusb/contrib/include
|
|
INCLUDES += -I$(RIOTBASE)/pkg/tinyusb/hw/include
|
|
INCLUDES += -I$(PKGDIRBASE)/tinyusb/src
|
|
|
|
CFLAGS += -DCFG_TUSB_OS=OPT_OS_CUSTOM
|
|
CFLAGS += -Wno-format-nonliteral
|
|
|
|
ifeq (esp32s2,$(CPU_FAM))
|
|
CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_ESP32S2
|
|
else ifeq (esp32s3,$(CPU_FAM))
|
|
CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_ESP32S3
|
|
else ifeq (stm32,$(CPU))
|
|
CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_STM32$(call uppercase_and_underscore,$(CPU_FAM))
|
|
else
|
|
$(error CPU $(CPU) or CPU family $(CPU_FAM) not supported)
|
|
endif
|
|
|
|
ifneq (,$(filter tinyusb_class_net_ecm_rndis,$(USEMODULE)))
|
|
INCLUDES += -I$(PKGDIRBASE)/tinyusb/lib/networking
|
|
endif
|