diff --git a/file_demo_bios/k2g/components/sysbf.c b/file_demo_bios/k2g/components/sysbf.c
+++ /dev/null
@@ -1,144 +0,0 @@
-/*
- * Copyright (c) 2016, Texas Instruments Incorporated
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * * Neither the name of Texas Instruments Incorporated nor the names of
- * its contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
- * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
- * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- */
-\r
-/*=================================================================\r
- * sysbf.c: BF creation routines.\r
- *=================================================================*/\r
-\r
-#include <xdc/std.h>\r
-#include <ti/sysbios/BIOS.h>\r
-#include <xdc/runtime/System.h>\r
-\r
-#include <ti/mas/types/types.h>\r
-#include <ti/mas/util/ecomem.h>\r
-#include <ti/mas/aer/bf.h>\r
-\r
-#include "sysbfflt.h"\r
-#include "sys.h"\r
-\r
-bfSizeConfig_t bfSizeConfig = {\r
- bf_SAMP_RATE_16K, /* 16kHz sampling rate */\r
- SYS_MICS_MAX, /* Maximum number of mics in the system */\r
- 32, /* Maximum beamformer filter length */\r
- bf_TYPE_FIXED /* Fixed beamformer type */\r
-};\r
-\r
-bfConfig_t bfConfig = {\r
- bf_SAMP_RATE_16K, /* use 16kHz sampling rate */\r
- SYS_MICS_MAX, /* use all mics */\r
-};\r
-\r
-/*=================================================================\r
- * void sysBfCreate(void) Create beamformers\r
- *=================================================================*/\r
-void sysBfCreate(void)\r
-{\r
- int k, n, err;\r
- tint nbufs;\r
- Fract *coeff_p;\r
- const ecomemBuffer_t *bufs;\r
- bfNewConfig_t bfNewConfig;\r
- bfControl_t bfCtl;\r
-\r
- System_printf("...Initializing beamformers\n");\r
- System_flush();\r
-\r
- /* Configure Beamformers (use same configuration for all) */\r
- err = bfGetSizes(&nbufs, &bufs, &bfSizeConfig);\r
- if (err != bf_NOERR) {\r
- System_printf("*** beamformer getsizes error: %d\n", err);\r
- BIOS_exit(0);\r
- }\r
- /* Allocate memory for beamformer */\r
- if (nbufs > SYS_COMP_MAXBUFS) {\r
- System_printf("*** not enough buffer descriptors");\r
- BIOS_exit(0);\r
- }\r
-\r
- bfNewConfig.sizeCfg = bfSizeConfig; /* Use same configuration for all */\r
- for (k = 0; k < sysContext.nvmics; k++) {\r
- err = sysHeapAllocAll(nbufs, sysCompBufs, (const void*)bufs);\r
- SYS_CHECK_ERROR(err);\r
- \r
- /* Give memory to beamformer #k */\r
- bfNewConfig.handle = (void*)k; /* Indicate BF instance #k */\r
- sysContext.bfInst_p[k] = NULL;\r
- err = bfNew(&sysContext.bfInst_p[k], nbufs, sysCompBufs, &bfNewConfig);\r
- if (err != bf_NOERR) {\r
- System_printf("*** beamformer #%d new error: %d\n", k, err);\r
- BIOS_exit(0);\r
- }\r
- }\r
-\r
- /* Open BF for business */\r
- for (k = 0; k < sysContext.nvmics; k++) {\r
- err = bfOpen(sysContext.bfInst_p[k],&bfConfig);\r
- if (err != bf_NOERR) {\r
- System_printf("*** beamformer #%d open error: %d\n", k, err);\r
- BIOS_exit(0);\r
- }\r
- }\r
- /* At this point BF's are open, but DISABLED! */\r
- /* We need to initialize filters prior to enabling them. */\r
-\r
- for (k = 0; k < sysContext.nvmics; k++) {\r
- coeff_p = sysBfFilters[sysContext.vmicangles[k]];\r
- for (n = 0; n < sysContext.nmics; n++) {\r
- err = bfPutFilter (sysContext.bfInst_p[k], coeff_p, bf_FG_BF, n, SYS_BF_FILTER_LENGTH);\r
- if (err != bf_NOERR) {\r
- System_printf("*** beamformer #%d put-filter error: %d\n", k, err);\r
- BIOS_exit(0);\r
- }\r
- coeff_p += SYS_BF_FILTER_LENGTH; /* point to the filter for next mic */\r
- }\r
- }\r
-\r
- /* Now we can enable beamformers */\r
- bfCtl.valid_bitfield = bf_CTL_CONFIG;\r
- bfCtl.config.mask = bf_CTL_CFG_ENABLE;\r
- bfCtl.config.value = bf_ENABLE;\r
- for (k = 0; k < sysContext.nvmics; k++) {\r
- err = bfControl (sysContext.bfInst_p[k], &bfCtl);\r
- if (err != bf_NOERR) {\r
- System_printf("*** beamformer #%d control error: %d\n", k, err);\r
- BIOS_exit(0);\r
- }\r
- }\r
-\r
- System_printf("Done with beamformers\n");\r
- System_flush();\r
-\r
-} /* sysBfCreate */\r
-\r
-/* nothing past this point */\r
-\r