This commit is contained in:
Steven Dan
2025-12-11 09:43:42 +08:00
commit d8b2974133
1822 changed files with 280037 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
// Copyright 2015-2024 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#pragma once
#ifdef __XS3A__ // Only available for xcore.ai
#include "mic_array/api.h"
#endif // __XS3A__
#include "mic_array/pdm_resources.h"
#include "mic_array/dc_elimination.h"
#include "mic_array/frame_transfer.h"
#include "mic_array/setup.h"
#ifdef __cplusplus
# include "mic_array/cpp/Decimator.hpp"
# include "mic_array/cpp/MicArray.hpp"
# include "mic_array/cpp/OutputHandler.hpp"
# include "mic_array/cpp/PdmRx.hpp"
# include "mic_array/cpp/Prefab.hpp"
# include "mic_array/cpp/SampleFilter.hpp"
#endif

View File

@@ -0,0 +1,16 @@
set(LIB_NAME lib_mic_array)
set(LIB_VERSION 5.5.0)
set(LIB_DEPENDENT_MODULES "lib_xcore_math(2.4.0)")
set(LIB_INCLUDES
api
api/mic_array
api/mic_array/cpp
api/mic_array/etc
api/mic_array/impl
src
src/etc
../etc/vanilla
)
set(LIB_COMPILER_FLAGS -g -Os)
XMOS_REGISTER_MODULE()

View File

@@ -0,0 +1,30 @@
VERSION = 5.5.0
DEPENDENT_MODULES = lib_xcore_math(>=2.4.0)
MODULE_XCC_FLAGS = $(XCC_FLAGS) -g -Os
# there is no MODULE_XCC_CPP_FLAGS
# MODULE_XCC_CPP_FLAGS = -std=c++11
XCC_FLAGS_Util.cpp = -std=c++11 $(XCC_FLAGS)
INCLUDE_DIRS = api
SOURCE_DIRS = src \
src/etc
# If using xmake/module_build_info instead of cmake, the vanilla API can still
# be used by setting VANILLA_API_ENABLED to 1 in your application Makefile.
# This also requires the following compile definitions to be added for your
# application (see /etc/vanilla/vanilla.cmake):
# MIC_ARRAY_CONFIG_MCLK_FREQ # Master audio clock frequency
# MIC_ARRAY_CONFIG_PDM_FREQ # PDM clock frequency
# MIC_ARRAY_CONFIG_MIC_COUNT # Number of microphones
# MIC_ARRAY_CONFIG_SAMPLES_PER_FRAME # Number of samples in each frame of
# # audio delivered by the mic array.
ifeq (1, $(VANILLA_API_ENABLED))
SOURCE_DIRS += ../etc/vanilla
INCLUDE_DIRS += ../etc/vanilla
XCC_FLAGS_mic_array_vanilla.cpp = -std=c++11 $(XCC_FLAGS)
endif