appthreads.c
来自「TI公司的算法标准 Framework5的源代码」· C语言 代码 · 共 75 行
C
75 行
/*
* 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.
*
*/
/* "@(#) RF5_IEK 2.00.02 12-11-02 (swat-c19)" */
/*
* ======== appThreads.c ========
*
* Initialization of all threads, definition of global variables
* and buffers
*/
#include <std.h>
/* CSL modules */
#include <csl_dat.h>
/* RF5 library modules */
#include <chan.h>
#include <icc.h>
#include <scom.h>
#include <utl.h>
#include "appResources.h" /* application-wide common info */
#include "appThreads.h" /* thread-wide common info */
/* invididual threads */
#include "process/thrProcess.h"
#include "capture/thrCapture.h"
#include "display/thrDisplay.h"
#include "control/thrControl.h"
/*
* ======== appThreadInit ========
*
* Initialize application threads.
*/
Void appThreadInit()
{
/*
* Open DAT module to perform DMA transfers.
* Use low priority transfer requests for all data transfers
* submitted by DAT. 2D transfers are allowed.
*/
DAT_open(DAT_CHAANY, DAT_PRI_LOW, DAT_OPEN_2D);
// initialize RF5 modules
CHAN_init();
ICC_init();
SCOM_init();
// set up RF5 modules
CHAN_setup( INTERNALHEAP, EXTERNALHEAP, INTERNALHEAP,
SCRBUCKETS, NULL, NULL );
// initialize tasks
thrDisplayInit();
thrCaptureInit();
thrProcessInit();
thrControlInit();
thrDisplayStartup();
thrCaptureStartup();
thrProcessStartup();
thrControlStartup();
// show heap usage, now that all threads are initialized
UTL_showHeapUsage( INTERNALHEAP );
UTL_showHeapUsage( EXTERNALHEAP );
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?