sscr_exit.c

来自「DSP体系结构实现与应用源代码」· C语言 代码 · 共 42 行

C
42
字号
/*
 *  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)" */
/*
 *  ======== sscr_exit.c ========
 *  SSCR's exit file.
 */

#pragma CODE_SECTION(SSCR_exit, ".text:exit")

#include <std.h>

#include <mem.h>

#include <sscr.h>

/*
 *  ======== SSCR_exit ========
 *  The SSCR module exit. Release the resources used and set into
 *  a known state.
 */
Void SSCR_exit(Void)
{
    /*
     *  Free _SSCR_bucketList. The _SSCR_bucketList is always allocated
     *  from the DSP/BIOS Objects segment which is guaranted to be 0.
     */ 
    MEM_free(0, _SSCR_bucketList, (sizeof(SSCR_Bucket) * _SSCR_bucketCnt));

    /* Set the globals back to an initial state. */
    _SSCR_heapId     = _SSCR_INVALIDHEAP;
    _SSCR_bucketCnt  = 0;
    _SSCR_bucketList = NULL;
}


⌨️ 快捷键说明

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