2022-09-14 09:03:56 +02:00
|
|
|
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
|
|
|
|
|
2022-09-28 23:52:45 +02:00
|
|
|
ifeq (esp32s2,$(CPU_FAM))
|
|
|
|
CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_ESP32S2
|
|
|
|
else ifeq (esp32s3,$(CPU_FAM))
|
|
|
|
CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_ESP32S3
|
|
|
|
else
|
|
|
|
$(error CPU family not supported)
|
|
|
|
endif
|
|
|
|
|
2022-09-14 09:03:56 +02:00
|
|
|
ifneq (,$(filter tinyusb_class_net_ecm_rndis,$(USEMODULE)))
|
|
|
|
INCLUDES += -I$(PKGDIRBASE)/tinyusb/lib/networking
|
|
|
|
endif
|