From 7e27ef22799671db4f882f832c263b7b439a5a94 Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Wed, 20 Apr 2016 11:21:44 +0100 Subject: [PATCH] pdm_process() now in top-level main. This allows use of .core[] and thus can force compiler to combine. --- module_usb_audio/main.xc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/module_usb_audio/main.xc b/module_usb_audio/main.xc index ee2b068d..9f7d1797 100755 --- a/module_usb_audio/main.xc +++ b/module_usb_audio/main.xc @@ -549,6 +549,7 @@ int main() #if (NUM_PDM_MICS > 0) chan c_pdm_pcm; + streaming chan c_ds_output[2]; #ifdef MIC_PROCESSING_USE_INTERFACE interface mic_process_if i_mic_process; #endif @@ -668,12 +669,9 @@ int main() #endif #if (NUM_PDM_MICS > 0) - on stdcore[PDM_TILE]: pcm_pdm_mic(c_pdm_pcm -#ifdef MIC_PROCESSING_USE_INTERFACE - , i_mic_process -#endif - ); + on stdcore[PDM_TILE]: pcm_pdm_mic(c_ds_output); #endif + on stdcore[PDM_TILE].core[0]: pdm_process(c_ds_output, c_pdm_pcm, i_mic_process); // TODO move this to USER_MAIN_CORES or guard with RUN_DSP_TASK // TODO NUM_DSP_CTRL_INTS