Hi,
I am trying to include ZOOM R16/24 USB host support for axoloti experimental branch.
Object file can be build, but I think it is not linked.
Which switch do I need to enable during build to have HAL_USE_USBH := TRUE and HAL_USBH_USE_ADDITIONAL_CLASS_DRIVERS := TRUE?
The changes in firmware/axoloti_defines.h doesn't seems to work.
What am I doing wrong?
I have done the following changes:
firmware/Makefile:
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -234,6 +234,7 @@ CSRC = $(STARTUPSRC) \
${FIRMWARE}/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.c \
${FIRMWARE}/usbh_midi_class.c \
${FIRMWARE}/usbh_virus_class.c \
+ ${FIRMWARE}/usbh_zoom_class.c \
${FIRMWARE}/usbh_conf.c \
${FIRMWARE}/serial_midi.c \
${FIRMWARE}/spilink.c \
~
firmware/axoloti_defines.h
--- a/firmware/axoloti_defines.h
+++ b/firmware/axoloti_defines.h
@@ -34,4 +34,7 @@ typedef int32_t int32buffer[BUFSIZE];
#define FWVERSION3 0
#define FWVERSION4 1
+#define HAL_USE_USBH TRUE
+#define HAL_USBH_USE_ADDITIONAL_CLASS_DRIVERS TRUE
+
#endif
firmware/usbh_additional_class_drivers.h
--- a/firmware/usbh_additional_class_drivers.h
+++ b/firmware/usbh_additional_class_drivers.h
@@ -18,19 +18,20 @@
#include "hal_usbh.h"
#include "usbh_midi_class.h"
-#if HAL_USE_USBH && HAL_USBH_USE_ADDITIONAL_CLASS_DRIVERS
+/*#if HAL_USE_USBH && HAL_USBH_USE_ADDITIONAL_CLASS_DRIVERS*/
/* Declarations */
extern const usbh_classdriverinfo_t usbhMidiClassDriverInfo;
extern const usbh_classdriverinfo_t usbhVirusClassDriverInfo;
+extern const usbh_classdriverinfo_t usbhZoomClassDriverInfo;
/* Comma separated list of additional class drivers */
#define HAL_USBH_ADDITIONAL_CLASS_DRIVERS \
- &usbhMidiClassDriverInfo, &usbhVirusClassDriverInfo,
+ &usbhMidiClassDriverInfo, &usbhVirusClassDriverInfo, &usbhZoomClassDriverInfo,
-#endif
+/*#endif*/
#endif /* USBH_ADDITIONAL_H_ */
and added
firmware/usbh_zoom_class.c
looks quite like the virus one.
Thanks.