⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 appthreads.c

📁 g.726编解码源程序
💻 C
字号:
/*
 *  Copyright 2002 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  
 */
/* "@(#) RF3_UART_G726 1.00.00 07-18-02 (swat-c03)" */
/*
 *  ======== appThreads.c ========
 *
 *  Initialization of all threads, definition of global variables
 *  and buffers
 */
#include <std.h>

#include <string.h>

#include <algrf.h>
#include <utl.h>                /* debug/diagnostics utility functions */

#include "appResources.h"       /* application-wide common info */
#include "appThreads.h"         /* thread-wide common info */
#include "thrEncode.h"          /* definition of thread Encode */
#include "thrDecode.h"          /* definition of thread Decode */

/* 
 *  Definition of intermediate buffers used by threads' algorithms 
 */
/* this buffer is used by the Encode & Decode thread */ 
Sample bufAudioproc[ FRAMELEN ];

/*
 *  ========= thrInit ========
 *  initialize all the threads that have Init() function
 */
Void thrInit( Void ) 
{
    /* 
     *  Configure the ALGRF module to tell it the names of heaps for algorithms:
     *  1st argument - name of the heap in internal memory: INTERNALHEAP
     *  2nd argument - name of the heap in external memory: EXTERNALHEAP
     */
    ALGRF_setup( INTERNALHEAP, EXTERNALHEAP ); 
    
    /* 
     *  Here we invoke specific individual initialization functions 
     *  for all the threads that have one (some of them may be empty)
     */
    thrEncodeInit();     /* Encode thread */
    thrDecodeInit();     /* Decode thread */
    
    /* show heap usage, now that all threads are initialized */
    UTL_showHeapUsage( INTERNALHEAP );
    UTL_showHeapUsage( EXTERNALHEAP );
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -