📄 algrf_setup.c
字号:
/*
* 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)" */
/*
* ======== 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 + -