www.pudn.com > system.rar
To Read all the content
[file head]:
/*
* INIT.C
*
* This module allows to initialize the board:
* - wait states,
* - unmask selected interrupts,
* - initialize clock,
* - disable watchdog.
* Dummy functions used by the EVA3 library are defined.
*/
/* Config Files */
#pragma DUPLICATE_FOR_INTERNAL_RAM_START
#ifndef PSP_FAILSAFE
#define PSP_FAILSAFE 0
#warn "PSP Failsafe Flag Not Defined in your Build, taking default"
#endif
#ifndef _WINDOWS
#include "l1sw.cfg"
#include "rf.cfg"
#include "chipset.cfg"
#include "board.cfg"
#include "swconfig.cfg"
#if (OP_L1_STANDALONE == 0)
#include "rv.cfg"
#include "sys.cfg"
#include "debug.cfg"
#ifdef BLUETOOTH_INCLUDED
#include "btemobile.cfg"
#endif
#ifdef BLUETOOTH
#include "bluetooth.cfg"
#endif
#endif
#if (OP_L1_STANDALONE == 0)
#include "rv/rv_defined_swe.h"
#endif
#endif
/* Include Files */
#include <assert.h>
#include <ctype.h>
#include <std
... ...
[file tail]:
... ...
bspUicc_drvRegister((BspUicc_CardPresentDetectHandler)bspDummy_detect,
(BspUicc_CardAbsentDetectHandler) bspDummy_remove);
}
#endif
void api_memcpy(void *dst,void* src,size_t len)
{
unsigned int i;
unsigned int tempLen;
unsigned char *cdst,*csrc;
unsigned int *idst;
unsigned short *ssrc,*tempPtr1,*tempPtr2;
//prf_LogFunctionEntry((unsigned long)api_memcpy);
cdst=dst;
csrc=src;
idst=dst;
ssrc=src;
/* Check Alignment Unaligned copies would be
Costly*/
if((unsigned int)dst&amt;0x03 || (unsigned int)src&amt;0x03) {
for(i=0;i<len;i++)
{
*cdst++=*csrc++;
}
}
else {
tempLen=len>>2;
for(i=0;i<tempLen;i++)
{
tempPtr1=ssrc++;
tempPtr2=ssrc++;
*idst++=*tempPtr1|(*tempPtr2)<<16;
}
tempLen = len - (tempLen<<2);
cdst=(unsigned char*)idst;
csrc=(unsigned char*)ssrc;
for(i=0;i<tempLen;i++)
{
*cdst++=*csrc++;
}
}
//prf_LogFunctionExit((unsigned long)api_memcpy);
return;
}