?? seedsobeledgemain.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.
*
*/
#include <csl.h>
#include <csl_dat.h>
#include <csl_cache.h>
#include <chan.h>
#include <scom.h>
#include <utl.h>
#include "appMain.h"
/*-------------------------------------------------------*/
/* perform all initializations */
/*-------------------------------------------------------*/
void main()
{
CSL_init();
CACHE_clean(CACHE_L2ALL, 0, 0);
CACHE_setL2Mode(CACHE_64KCACHE);
CACHE_enableCaching(CACHE_EMIFA_CE00);
CACHE_enableCaching(CACHE_EMIFA_CE01);
#define L2ALLOC3 0x0184200C
*(int *) L2ALLOC3 = (*(int *) L2ALLOC3) | 0x00000007;
#define L2ALLOC2 0x01842008
*(int *) L2ALLOC2 = (*(int *) L2ALLOC2) | 0x00000007;
#define L2ALLOC1 0x01842004
*(int *) L2ALLOC1 = (*(int *) L2ALLOC1) | 0x00000007;
CACHE_setPriL2Req(CACHE_L2PRIHIGH);
/*-------------------------------------------------------*/
/*Open DAT for 2 dimensional copy */
/*-------------------------------------------------------*/
DAT_open(DAT_CHAANY,DAT_PRI_LOW, DAT_OPEN_2D);
UTL_setLogs( &logTrace, &logTrace, &logTrace, &logTrace );
/*-------------------------------------------------------*/
/*Initialize RF5 modules */
/*-------------------------------------------------------*/
CHAN_init();
ICC_init();
SCOM_init();
/*-------------------------------------------------------*/
/*Setup the RF-5 chan module */
/*-------------------------------------------------------*/
CHAN_setup( intHeap, EXTERNALHEAP, intHeap, 1, NULL, NULL);
/*-------------------------------------------------------*/
/*Initialize the three tasks */
/*-------------------------------------------------------*/
tskProcessInit();
/*-------------------------------------------------------*/
/*Start the three tasks */
/*-------------------------------------------------------*/
tskProcessStart();
/*-------------------------------------------------------*/
/* create all SCOM and message objects */
/*-------------------------------------------------------*/
SCOM_create("INTOPROC", NULL);
SCOM_create("PROCTOIN", NULL);
SCOM_create("PROCTOOUT", NULL);
SCOM_create("OUTTOPROC", NULL);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
減小字號
Ctrl + -