I tried two different ways facing different problems. Not shure wich way would be the best:
1. starting from scratch:
Setting up the PDM-functionalities using the microphone array library seems to be successfull. But I´m struggeling with setting up the usb-functionalities using the usb_library. I read the usb-library-documentation but I still don´t understand how to set up an endpoint0.c for an usb-audio-device. Copying the endpoint0.c from usb_aud_mic_array doesn´t bring me further because it is verry ifdefed and needs a lot of defines.
2. starting with usb_aud_mic_array software
I can run the software successfully on the microphone-array board. But porting it to the explorer kit brings up some problems:
- The explorer-kit hasn´t all the buttons and LEDs. I was able to remove this part of the programm.
- The explorer-kit has no PLL. So i would need to change all the clock-sources wherever they are used. I´m struggeling with this.
- The explorer-kit has no ADC and DAC. So i would need to disable any use of them. I tried to change the customdefines.h like that:
Code: Select all
/* Number of IS2 chans to DAC..*/
#ifndef I2S_CHANS_DAC
#define I2S_CHANS_DAC (2)
#endif
/* Number of I2S chans from ADC */
#ifndef I2S_CHANS_ADC
#define I2S_CHANS_ADC (0)
#endif
Code: Select all
C:/Users/.../module_usb_audio/ports/audioports.c:57:17: error: use of undeclared identifier 'p_lrclk'
p_lrclk,
^
C:/Users/.../module_usb_audio/ports/audioports.c:58:17: error: use of undeclared identifier 'p_bclk'
p_bclk,
^
So I would be happy, if someone could give me an idea how to process with this project. Thanks!