chan_unregcell.c

来自「使用CCS信息DSP编程,适用于6713B的启动程序。」· C语言 代码 · 共 49 行

C
49
字号
/*
 *  Copyright 2003 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.
 *  
 */
/* "@(#) ReferenceFrameworks 2.20.00.08 07-18-03 (swat-f02)" */
/*
 *  ======== chan_unregcell.c ========
 *  Cell registration.
 */

#pragma CODE_SECTION(CHAN_unregCell, ".text:CHAN_unregCell")

#include <std.h>

#include <mem.h>

#include <icell.h>
#include <chan.h>
#include <icc.h>
#include <utl.h>

/*
 *  ======== CHAN_unregCell ========
 *  This function frees the memory allocated in CHAN_regCell.
 */
Void CHAN_unregCell(ICELL_Handle cellHandle)
{
    /* Make sure parameters are valid */
    UTL_assert(cellHandle != NULL);    

    // Free the input array
    if (cellHandle->inputIcc != NULL) {
        MEM_free(0, cellHandle->inputIcc, 
                 sizeof(ICC_Handle) * cellHandle->inputIccCnt);
    }

    // Free the output array
    if (cellHandle->outputIcc != NULL) {
        MEM_free(0, cellHandle->outputIcc, 
                 sizeof(ICC_Handle) * cellHandle->outputIccCnt); 
    }
   
    return;
}

⌨️ 快捷键说明

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