Fixed !MIC_PROCESSING_USE_INTERFACE build

This commit is contained in:
Ross Owen
2016-05-20 15:05:37 +01:00
parent 1e25625106
commit 2e97824604
3 changed files with 14 additions and 5 deletions

View File

@@ -678,7 +678,11 @@ int main()
#if (NUM_PDM_MICS > 0)
on stdcore[PDM_TILE]: pdm_mic(c_ds_output);
#ifdef MIC_PROCESSING_USE_INTERFACE
on stdcore[PDM_TILE].core[0]: pdm_buffer(c_ds_output, c_pdm_pcm, i_mic_process);
#else
on stdcore[PDM_TILE]: pdm_buffer(c_ds_output, c_pdm_pcm);
#endif
#endif
USER_MAIN_CORES

View File

@@ -29,12 +29,14 @@ int data_1[4*THIRD_STAGE_COEFS_PER_STAGE * MAX_DECIMATION_FACTOR] = {0};
mic_array_frame_time_domain mic_audio[2];
[[combinable]]
void pdm_buffer(streaming chanend c_ds_output[2], chanend c_audio
#ifdef MIC_PROCESSING_USE_INTERFACE
, client mic_process_if i_mic_process
[[combinable]]
#pragma unsafe arrays
void pdm_buffer(streaming chanend c_ds_output[2], chanend c_audio, client mic_process_if i_mic_process)
#else
#pragma unsafe arrays
void pdm_buffer(streaming chanend c_ds_output[2], chanend c_audio)
#endif
)
{
unsigned buffer;
int output[NUM_PDM_MICS];

View File

@@ -26,10 +26,13 @@ void pdm_mic(streaming chanend c_ds_output[2]);
#else
/* Simple user hooks/call-backs */
unsafe void user_pdm_process(mic_array_frame_time_domain * unsafe audio, int output[]);
void user_pdm_process(mic_array_frame_time_domain * unsafe audio, int output[]);
void user_pdm_init();
/* PDM interface and decimation cores */
void pdm_buffer(streaming chanend c_ds_output[2], chanend c_audio);
/* PDM interface and decimation cores */
void pdm_mic(streaming chanend c_ds_output[2]);