In order to use the midi capabilities of my Daisy Seed, I connected a DIN-midi connector to USART1_RX via an opto coupler following the gist of the POD-design.
Now as recommended I want to include the MIDI library written by Francois Best to my program and added /home/jos/projects/arduino/libraries/MIDI/src to the C_INCLUDES so that the compiler can find MIDI.h
C_INCLUDES +=
-I$(SYSTEM_FILES_DIR)/
-I$(LIBDAISY_DIR)
-I$(LIBDAISY_DIR)/src/
-I$(LIBDAISY_DIR)/Drivers/CMSIS/Include/
-I$(LIBDAISY_DIR)/Drivers/CMSIS/Device/ST/STM32H7xx/Include
-I$(LIBDAISY_DIR)/Drivers/STM32H7xx_HAL_Driver/Inc/
-I$(DAISYSP_DIR)
-I/home/jos/projects/arduino/libraries/MIDI/src \
When I try to compile this, the MIDI.h appears to include a HardwareSerial.h file which can not be found:
filter.cpp:36:10: fatal error: HardwareSerial.h: No such file or directory
36 | #include <HardwareSerial.h>
I found several on my machine and they seem to be hardware dependent. I found one for Arduino, est8266, stm32 but not one specific for the Daisy Seed. I’m sort of guessing that it should be stm32 based, but after experimenting with adding
-I/home/jos/.arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino
-I/home/jos/.arduino15/packages/STM32/hardware/stm32/1.9.0/cores/arduino/stm32 \
I get some more errors among which
#error “STM32YYxx chip series is not defined in boards.txt.”
suggests to I’m probably hiking up the wrong road.
My question is, which HardwareSerial.h do I need to use? Or am I missing a general include dir to hardware specific objects of the Daisy Seed?