我现在用了W90P710,代理商提供了一些设计文档,但都是用ADS设计的。现在我要使用keil来移植芯唐许多已经设计好了的源文件,但现在遇到了困难,就是如下的一些函数,我没有它的源代码,移植没法进行。
我觉得这些函数的源文件应该不属于十分机密的内容,所以请哪位能否慷慨大方的给小弟一份资料,不胜感激!
/* Define system library Timer functions */
UINT32 sysGetTicks (INT32 nTimeNo);
INT32 sysResetTicks (INT32 nTimeNo);
INT32 sysUpdateTickCount(INT32 nTimeNo, UINT32 uCount);
INT32 sysSetTimerReferenceClock (UINT32 nTimeNo, UINT32 uClockRate);
INT32 sysStartTimer (INT32 nTimeNo, UINT32 uTicksPerSecond, INT32 nOpMode);
INT32 sysStopTimer (INT32 nTimeNo);
VOID sysClearWatchDogTimerCount (VOID);
VOID sysClearWatchDogTimerInterruptStatus(VOID);
VOID sysDisableWatchDogTimer (VOID);
VOID sysDisableWatchDogTimerReset(VOID);
VOID sysEnableWatchDogTimer (VOID);
VOID sysEnableWatchDogTimerReset(VOID);
PVOID sysInstallWatchDogTimerISR (INT32 nIntTypeLevel, PVOID pvNewISR);
INT32 sysSetWatchDogTimerInterval (INT32 nWdtInterval);
INT32 sysSetTimerEvent(UINT32 nTimeNo, UINT32 nTimeTick, PVOID pvFun);
VOID sysClearTimerEvent(UINT32 nTimeNo, UINT32 nTimeEventNo);
VOID sysSetLocalTime(DateTime_T ltime);
VOID sysGetCurrentTime(DateTime_T *curTime);
VOID sysDelay(UINT32 uTicks);
/* Define system library UART functions */
INT8 sysGetChar(VOID);
INT32 sysInitializeUART(WB_UART_T *uart);
VOID sysPrintf(PINT8 pcStr,...);
VOID sysprintf(PINT8 pcStr,...);
VOID sysPutChar(UINT8 ch);
/* Define system library AIC functions */
INT32 sysDisableInterrupt (UINT32 intNo);
INT32 sysEnableInterrupt (UINT32 intNo);
PVOID sysInstallExceptionHandler (INT32 exceptType, PVOID pNewHandler);
PVOID sysInstallFiqHandler (PVOID pNewISR);
PVOID sysInstallIrqHandler (PVOID pNewISR);
PVOID sysInstallISR (INT32 intTypeLevel, INT32 intNo, PVOID pNewISR, PVOID pParam);
INT32 sysSetGlobalInterrupt (INT32 intState);
INT32 sysSetInterruptPriorityLevel (UINT32 intNo, UINT32 intLevel);
INT32 sysSetInterruptType (UINT32 intNo, UINT32 intSourceType);
INT32 sysSetLocalInterrupt (INT32 intState);
INT32 sysSetAIC2SWMode(VOID);
UINT32 sysGetInterruptEnableStatus(VOID);
/* Define system library Cache functions */
VOID sysEnableCache(VOID);
VOID sysDisableCache(VOID);
VOID sysFlushCache(INT32 cacheType);
/* Define system library External IO functions */
VOID sysSetExternalIO(INT extNo, UINT32 extBaseAddr, UINT32 extSize, INT extBusWidth);
VOID sysSetExternalIOTiming1(INT extNo, INT tACC, INT tACS);
VOID sysSetExternalIOTiming2(INT extNo, INT tCOH, INT tCOS);
/* Define system library power management functions */
INT sysEnablePM_IRQ(INT irq_no);
VOID sysDisableAllPM_IRQ(VOID);
INT sysPMStart(INT pd_type); |