📄 chan_setup.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)" */
/*
* ======== chan_setup.c ========
*/
#pragma CODE_SECTION(CHAN_setup, ".text:setup")
#include <std.h>
#include <algrf.h>
#include <sscr.h>
#include <chan.h>
/*
* ======== CHAN_setup ========
* Sets-up heap ids and the other modules that CHAN uses.
*
* algrfInternalHeap - heap from which algrf allocates internal non-scratch
* memory requested by XDAIS algorithms.
* algrfExternalHeap - heap from which algrf allocates external memory
* requested by XDAIS algorithms.
* sscrInternalHeap - heap from which sscr allocates internal scratch
* memory requested by XDAIS algorithms.
*/
Bool CHAN_setup(Int algrfInternalHeap, Int algrfExternalHeap,
Int sscrInternalHeap, Uns bucketCnt, Ptr bucketBuf[],
Uns bucketSize[])
{
/* Set-up the ALGRF module */
ALGRF_setup(algrfInternalHeap, algrfExternalHeap);
/* Set-up the SSCR module */
return (SSCR_setup(sscrInternalHeap, bucketCnt, bucketBuf, bucketSize));
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -