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

📄 algrf_setup.c

📁 TI公司的算法标准 Framework5的源代码
💻 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.
 *  
 */
/* "@(#) ReferenceFrameworks 2.00.00 11-14-02 (swat-c17)" */
/*
 *  ======== algrf_setup.c ========
 */

#pragma CODE_SECTION(ALGRF_setup, ".text:setup")

#include <std.h>

#include <atm.h>

#include <algrf.h>

ALGRF_Config ALGRF_config = {
        0,  /* default segment for Internal Heap */
        0,  /* default segment for External Heap */
};

ALGRF_Config* ALGRF = &ALGRF_config;

/*
 *  ======== ALGRF_setup ========
 *  Configure the system to use the selected heaps.
 *  
 */
Void ALGRF_setup(Int internalHeap, Int externalHeap)
{
    static Int firstTime = TRUE;

    /* Only set the first time. */
    if (ATM_seti(&firstTime, FALSE) == TRUE) {
        ALGRF->INTHEAP = internalHeap;
        ALGRF->EXTHEAP = externalHeap;
    }
}



⌨️ 快捷键说明

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