PDM related build fixes

This commit is contained in:
xross
2018-04-04 15:16:29 +01:00
parent 14af847ddb
commit 72c32e2828
3 changed files with 13 additions and 8 deletions

View File

@@ -11,11 +11,12 @@
#include "xua_endpoint0.h" #include "xua_endpoint0.h"
#include "xua_buffer.h" #include "xua_buffer.h"
#endif
#if __XC__ #if __XC__
#if XUA_NUM_PDM_MICS > 0
#include "xua_pdm_mic.h" #include "xua_pdm_mic.h"
#endif #endif
#endif #endif
#endif #endif

View File

@@ -1,5 +1,8 @@
// Copyright (c) 2015-2018, XMOS Ltd, All rights reserved // Copyright (c) 2015-2018, XMOS Ltd, All rights reserved
#ifndef XUA_PDM_MIC_H
#define XUA_PDM_MIC_H
/* Included from lib_mic_array */ /* Included from lib_mic_array */
#include "mic_array.h" #include "mic_array.h"
@@ -44,4 +47,5 @@ void XUA_PdmBuffer(streaming chanend c_ds_output[2], chanend c_audio);
void xua_pdm_mic(streaming chanend c_ds_output[2]); void xua_pdm_mic(streaming chanend c_ds_output[2]);
#endif #endif
#endif

View File

@@ -760,9 +760,9 @@ int main()
#endif #endif
#ifdef MIC_PROCESSING_USE_INTERFACE #ifdef MIC_PROCESSING_USE_INTERFACE
on stdcore[PDM_TILE].core[0]: xua_pdm_buffer(c_ds_output, c_pdm_pcm, i_mic_process); on stdcore[PDM_TILE].core[0]: XUA_PdmBuffer(c_ds_output, c_pdm_pcm, i_mic_process);
#else #else
on stdcore[PDM_TILE].core[0]: xua_pdm_buffer(c_ds_output, c_pdm_pcm); on stdcore[PDM_TILE].core[0]: XUA_PdmBuffer(c_ds_output, c_pdm_pcm);
#endif /*MIC_PROCESSING_USE_INTERFACE*/ #endif /*MIC_PROCESSING_USE_INTERFACE*/
#endif /*XUA_NUM_PDM_MICS > 0*/ #endif /*XUA_NUM_PDM_MICS > 0*/
#endif /*PDM_RECORD*/ #endif /*PDM_RECORD*/