You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
127 lines
3.4 KiB
127 lines
3.4 KiB
GEX_SRC_DIR = \
|
|
User \
|
|
User/utils \
|
|
User/comm \
|
|
User/framework \
|
|
User/platform \
|
|
User/units \
|
|
User/units/neopixel \
|
|
User/units/test \
|
|
User/units/digital_out \
|
|
User/units/digital_in \
|
|
User/units/usart \
|
|
User/units/1wire \
|
|
User/units/i2c \
|
|
User/units/spi \
|
|
User/units/adc \
|
|
User/units/sipo \
|
|
User/units/fcap \
|
|
User/TinyFrame \
|
|
User/CWPack \
|
|
User/tasks
|
|
|
|
GEX_SOURCES = \
|
|
User/USB/usb_device.c \
|
|
User/USB/usbd_cdc_if.c \
|
|
User/USB/usbd_conf.c \
|
|
User/USB/usbd_desc.c \
|
|
User/USB/STM32_USB_Device_Library/Class/CDC/Src/usbd_cdc.c \
|
|
User/USB/STM32_USB_Device_Library/Class/MSC_CDC/usbd_msc_cdc.c \
|
|
User/USB/STM32_USB_Device_Library/Core/Src/usbd_core.c \
|
|
User/USB/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.c \
|
|
User/USB/STM32_USB_Device_Library/Core/Src/usbd_ioreq.c
|
|
|
|
GEX_INCLUDES = \
|
|
-IUser \
|
|
-IUser/USB \
|
|
-IUser/USB/MSC_CDC \
|
|
-IUser/TinyFrame \
|
|
-IUser/vfs \
|
|
-IUser/utils \
|
|
-IUser/units \
|
|
-IUser/framework \
|
|
-IUser/platform \
|
|
-IUser/tasks \
|
|
-IUser/USB/STM32_USB_Device_Library/Core/Inc \
|
|
-IUser/USB/STM32_USB_Device_Library/Class/AUDIO/Inc \
|
|
-IUser/USB/STM32_USB_Device_Library/Class/CDC/Inc \
|
|
-IUser/USB/STM32_USB_Device_Library/Class/CustomHID/Inc \
|
|
-IUser/USB/STM32_USB_Device_Library/Class/DFU/Inc \
|
|
-IUser/USB/STM32_USB_Device_Library/Class/HID/Inc \
|
|
-IUser/USB/STM32_USB_Device_Library/Class/MSC/Inc \
|
|
-IUser/USB/STM32_USB_Device_Library/Class/MSC_CDC
|
|
|
|
GEX_CFLAGS = \
|
|
-D__weak="__attribute__((weak))" -D__packed="__attribute__((__packed__))" \
|
|
-std=gnu99 -Wfatal-errors \
|
|
-Wall -Wextra -Wshadow \
|
|
-Wwrite-strings -Wold-style-definition -Winline -Wstrict-prototypes -Wreturn-type \
|
|
-Wredundant-decls -Wfloat-equal -Wsign-compare \
|
|
-fno-common -ffunction-sections -fdata-sections -Wno-unused-function \
|
|
-MD -Wno-redundant-decls -Wno-unused-parameter \
|
|
-Wno-unused-variable -Wno-inline \
|
|
-fmerge-constants -fmerge-all-constants -Wno-implicit-fallthrough \
|
|
-fno-exceptions -finline-small-functions -findirect-inlining -Wno-strict-aliasing -Wno-float-equal \
|
|
-Wno-discarded-qualifiers -fstack-usage
|
|
|
|
GEX_CDEFS_BASE = \
|
|
-D__weak="__attribute__((weak))" \
|
|
-D__packed="__attribute__((__packed__))" \
|
|
-DUSE_FULL_LL_DRIVER \
|
|
|
|
|
|
|
|
ifeq '$(DISABLE_DEBUG)' '1'
|
|
|
|
GEX_CDEFS = $(GEX_CDEFS_BASE) \
|
|
-DUSE_FULL_ASSERT=0 \
|
|
-DASSERT_FILENAMES=0 \
|
|
-DDEBUG_VFS=0 \
|
|
-DDEBUG_FLASH_WRITE=0 \
|
|
-DVERBOSE_HARDFAULT=0 \
|
|
-DUSE_STACK_MONITOR=0 \
|
|
-DUSE_DEBUG_UART=0 \
|
|
-DDEBUG_MALLOC=0 \
|
|
-DDEBUG_RSC=0
|
|
|
|
else
|
|
|
|
GEX_CDEFS = $(GEX_CDEFS_BASE) \
|
|
-DUSE_FULL_ASSERT=1 \
|
|
-DASSERT_FILENAMES=1 \
|
|
-DDEBUG_VFS=0 \
|
|
-DDEBUG_FLASH_WRITE=0 \
|
|
-DVERBOSE_HARDFAULT=1 \
|
|
-DUSE_STACK_MONITOR=1 \
|
|
-DUSE_DEBUG_UART=1 \
|
|
-DDEBUG_MALLOC=0 \
|
|
-DDEBUG_RSC=1
|
|
|
|
endif
|
|
|
|
|
|
ifeq '$(DISABLE_MSC)' '1'
|
|
|
|
GEX_CDEFS += -DDISABLE_MSC
|
|
|
|
else
|
|
|
|
GEX_SOURCES += \
|
|
User/USB/usbd_storage_if.c \
|
|
User/USB/STM32_USB_Device_Library/Class/MSC/Src/usbd_msc.c \
|
|
User/USB/STM32_USB_Device_Library/Class/MSC/Src/usbd_msc_bot.c \
|
|
User/USB/STM32_USB_Device_Library/Class/MSC/Src/usbd_msc_data.c \
|
|
User/USB/STM32_USB_Device_Library/Class/MSC/Src/usbd_msc_scsi.c
|
|
|
|
GEX_SRC_DIR += \
|
|
User/vfs
|
|
|
|
endif
|
|
|
|
ifeq '$(DISABLE_TEST_UNIT)' '1'
|
|
GEX_CDEFS += -DDISABLE_TEST_UNIT=1
|
|
endif
|
|
|
|
ifeq '$(CDC_LOOPBACK_TEST)' '1'
|
|
GEX_CDEFS += -DCDC_LOOPBACK_TEST=1
|
|
endif
|
|
|