diff --git a/Examples/MAX32690/USB/.gitignore b/Examples/MAX32690/USB/.gitignore new file mode 100644 index 00000000000..378eac25d31 --- /dev/null +++ b/Examples/MAX32690/USB/.gitignore @@ -0,0 +1 @@ +build diff --git a/Examples/MAX32690/USB/MAXUSB/USB_CDCACM/Makefile b/Examples/MAX32690/USB/MAXUSB/USB_CDCACM/Makefile index d6ae4b890bf..d71c288e05a 100644 --- a/Examples/MAX32690/USB/MAXUSB/USB_CDCACM/Makefile +++ b/Examples/MAX32690/USB/MAXUSB/USB_CDCACM/Makefile @@ -100,7 +100,7 @@ $(info Loaded project.mk) ifeq "$(MAXIM_PATH)" "" # MAXIM_PATH is still not defined... -DEPTH := ../../../../ +DEPTH := ../../../../.. MAXIM_PATH := $(abspath $(DEPTH)) $(warning Warning: MAXIM_PATH is not set! Set MAXIM_PATH in your environment or in project.mk to clear this warning.) $(warning Warning: Attempting to use $(MAXIM_PATH) calculated from relative path) diff --git a/Examples/MAX32690/USB/MAXUSB/USB_CompositeDevice_MSC_CDC/Makefile b/Examples/MAX32690/USB/MAXUSB/USB_CompositeDevice_MSC_CDC/Makefile index d6ae4b890bf..d71c288e05a 100644 --- a/Examples/MAX32690/USB/MAXUSB/USB_CompositeDevice_MSC_CDC/Makefile +++ b/Examples/MAX32690/USB/MAXUSB/USB_CompositeDevice_MSC_CDC/Makefile @@ -100,7 +100,7 @@ $(info Loaded project.mk) ifeq "$(MAXIM_PATH)" "" # MAXIM_PATH is still not defined... -DEPTH := ../../../../ +DEPTH := ../../../../.. MAXIM_PATH := $(abspath $(DEPTH)) $(warning Warning: MAXIM_PATH is not set! Set MAXIM_PATH in your environment or in project.mk to clear this warning.) $(warning Warning: Attempting to use $(MAXIM_PATH) calculated from relative path) diff --git a/Examples/MAX32690/USB/MAXUSB/USB_CompositeDevice_MSC_HID/Makefile b/Examples/MAX32690/USB/MAXUSB/USB_CompositeDevice_MSC_HID/Makefile index d6ae4b890bf..d71c288e05a 100644 --- a/Examples/MAX32690/USB/MAXUSB/USB_CompositeDevice_MSC_HID/Makefile +++ b/Examples/MAX32690/USB/MAXUSB/USB_CompositeDevice_MSC_HID/Makefile @@ -100,7 +100,7 @@ $(info Loaded project.mk) ifeq "$(MAXIM_PATH)" "" # MAXIM_PATH is still not defined... -DEPTH := ../../../../ +DEPTH := ../../../../.. MAXIM_PATH := $(abspath $(DEPTH)) $(warning Warning: MAXIM_PATH is not set! Set MAXIM_PATH in your environment or in project.mk to clear this warning.) $(warning Warning: Attempting to use $(MAXIM_PATH) calculated from relative path) diff --git a/Examples/MAX32690/USB/MAXUSB/USB_HIDKeyboard/Makefile b/Examples/MAX32690/USB/MAXUSB/USB_HIDKeyboard/Makefile index d6ae4b890bf..d71c288e05a 100644 --- a/Examples/MAX32690/USB/MAXUSB/USB_HIDKeyboard/Makefile +++ b/Examples/MAX32690/USB/MAXUSB/USB_HIDKeyboard/Makefile @@ -100,7 +100,7 @@ $(info Loaded project.mk) ifeq "$(MAXIM_PATH)" "" # MAXIM_PATH is still not defined... -DEPTH := ../../../../ +DEPTH := ../../../../.. MAXIM_PATH := $(abspath $(DEPTH)) $(warning Warning: MAXIM_PATH is not set! Set MAXIM_PATH in your environment or in project.mk to clear this warning.) $(warning Warning: Attempting to use $(MAXIM_PATH) calculated from relative path) diff --git a/Examples/MAX32690/USB/MAXUSB/USB_MassStorage/Makefile b/Examples/MAX32690/USB/MAXUSB/USB_MassStorage/Makefile index d6ae4b890bf..d71c288e05a 100644 --- a/Examples/MAX32690/USB/MAXUSB/USB_MassStorage/Makefile +++ b/Examples/MAX32690/USB/MAXUSB/USB_MassStorage/Makefile @@ -100,7 +100,7 @@ $(info Loaded project.mk) ifeq "$(MAXIM_PATH)" "" # MAXIM_PATH is still not defined... -DEPTH := ../../../../ +DEPTH := ../../../../.. MAXIM_PATH := $(abspath $(DEPTH)) $(warning Warning: MAXIM_PATH is not set! Set MAXIM_PATH in your environment or in project.mk to clear this warning.) $(warning Warning: Attempting to use $(MAXIM_PATH) calculated from relative path) diff --git a/Examples/MAX32690/USB/TinyUSB/cdc_msc/Makefile b/Examples/MAX32690/USB/TinyUSB/cdc_msc/Makefile index 83cdb608d37..4c3120018cd 100644 --- a/Examples/MAX32690/USB/TinyUSB/cdc_msc/Makefile +++ b/Examples/MAX32690/USB/TinyUSB/cdc_msc/Makefile @@ -100,7 +100,7 @@ $(info Loaded project.mk) ifeq "$(MAXIM_PATH)" "" # MAXIM_PATH is still not defined... -DEPTH := ../../../../ +DEPTH := ../../../../.. MAXIM_PATH := $(abspath $(DEPTH)) $(warning Warning: MAXIM_PATH is not set! Set MAXIM_PATH in your environment or in project.mk to clear this warning.) $(warning Warning: Attempting to use $(MAXIM_PATH) calculated from relative path) diff --git a/Examples/MAX32690/USB/TinyUSB/cdc_msc_freertos/Makefile b/Examples/MAX32690/USB/TinyUSB/cdc_msc_freertos/Makefile index 83cdb608d37..4c3120018cd 100644 --- a/Examples/MAX32690/USB/TinyUSB/cdc_msc_freertos/Makefile +++ b/Examples/MAX32690/USB/TinyUSB/cdc_msc_freertos/Makefile @@ -100,7 +100,7 @@ $(info Loaded project.mk) ifeq "$(MAXIM_PATH)" "" # MAXIM_PATH is still not defined... -DEPTH := ../../../../ +DEPTH := ../../../../.. MAXIM_PATH := $(abspath $(DEPTH)) $(warning Warning: MAXIM_PATH is not set! Set MAXIM_PATH in your environment or in project.mk to clear this warning.) $(warning Warning: Attempting to use $(MAXIM_PATH) calculated from relative path) diff --git a/Examples/MAX32690/USB/TinyUSB/hid_composite/Makefile b/Examples/MAX32690/USB/TinyUSB/hid_composite/Makefile index 83cdb608d37..4c3120018cd 100644 --- a/Examples/MAX32690/USB/TinyUSB/hid_composite/Makefile +++ b/Examples/MAX32690/USB/TinyUSB/hid_composite/Makefile @@ -100,7 +100,7 @@ $(info Loaded project.mk) ifeq "$(MAXIM_PATH)" "" # MAXIM_PATH is still not defined... -DEPTH := ../../../../ +DEPTH := ../../../../.. MAXIM_PATH := $(abspath $(DEPTH)) $(warning Warning: MAXIM_PATH is not set! Set MAXIM_PATH in your environment or in project.mk to clear this warning.) $(warning Warning: Attempting to use $(MAXIM_PATH) calculated from relative path) diff --git a/Examples/MAX32690/USB/TinyUSB/msc_dual_lun/Makefile b/Examples/MAX32690/USB/TinyUSB/msc_dual_lun/Makefile index 83cdb608d37..4c3120018cd 100644 --- a/Examples/MAX32690/USB/TinyUSB/msc_dual_lun/Makefile +++ b/Examples/MAX32690/USB/TinyUSB/msc_dual_lun/Makefile @@ -100,7 +100,7 @@ $(info Loaded project.mk) ifeq "$(MAXIM_PATH)" "" # MAXIM_PATH is still not defined... -DEPTH := ../../../../ +DEPTH := ../../../../.. MAXIM_PATH := $(abspath $(DEPTH)) $(warning Warning: MAXIM_PATH is not set! Set MAXIM_PATH in your environment or in project.mk to clear this warning.) $(warning Warning: Attempting to use $(MAXIM_PATH) calculated from relative path) diff --git a/Examples/MAX32690/USB/TinyUSB/msc_ext_flash/Makefile b/Examples/MAX32690/USB/TinyUSB/msc_ext_flash/Makefile index b210c698c06..4934437ed19 100644 --- a/Examples/MAX32690/USB/TinyUSB/msc_ext_flash/Makefile +++ b/Examples/MAX32690/USB/TinyUSB/msc_ext_flash/Makefile @@ -100,7 +100,7 @@ $(info Loaded project.mk) ifeq "$(MAXIM_PATH)" "" # MAXIM_PATH is still not defined... -DEPTH := ../../../../ +DEPTH := ../../../../.. MAXIM_PATH := $(abspath $(DEPTH)) $(warning Warning: MAXIM_PATH is not set! Set MAXIM_PATH in your environment or in project.mk to clear this warning.) $(warning Warning: Attempting to use $(MAXIM_PATH) calculated from relative path) diff --git a/Examples/MAX32690/USB/TinyUSB/msc_ext_flash/msc_ext_flash.c b/Examples/MAX32690/USB/TinyUSB/msc_ext_flash/msc_ext_flash.c index e604c4cd1cf..f942c12d468 100644 --- a/Examples/MAX32690/USB/TinyUSB/msc_ext_flash/msc_ext_flash.c +++ b/Examples/MAX32690/USB/TinyUSB/msc_ext_flash/msc_ext_flash.c @@ -220,7 +220,7 @@ int32_t tud_msc_scsi_cb(uint8_t lun, uint8_t const scsi_cmd[16], void *buffer, u void spixf_disk_init() { - uint32_t id; + if (!is_initialized) { Ext_Flash_Init(); Ext_Flash_Reset(); @@ -231,8 +231,6 @@ void spixf_disk_init() Ext_Flash_Quad(0); } - id = Ext_Flash_ID(); - is_initialized = true; } }