www.pudn.com > S3C2410_USB_Device.rar > board.h


#ifndef __BOARD_H 
#define __BOARD_H 
 
#include "../inc/def.h" 
 
#ifdef __cplusplus 
extern "C" { 
#endif 
 
extern void __ENTRY(void); 
 
void EnableInt(void);	 
void CacheDisable(void); 
void CacheEnable(void); 
void CacheFlush(void); 
 
void PortInit(void); 
 
void SystemClockInit(void); 
 
U32  GetCpuClock(void); 
U32  GetMasterClock(void); 
 
void SerialTxChar(char); 
void SerialTxString(char *); 
 
int  SerialRxReady(void); 
char SerialRxKey(void); 
 
void SerialChgBaud(U32); 
U16  SerialSwitch(U16); 
 
 
int kbhit(void); 
int getkey(void); 
 
void putch(char ch); 
void puts(char *str); 
char getch(void); 
 
 
void Delay(U32 time); 
 
 
void EnableIrq(int); 
void DisableIrq(int); 
 
 
void MemCfgInit(void); 
 
void BoardInitStart(void); 
void BoardInitEnd(void); 
 
 
void printf(char *f, ...); 
 
void memcpy(void *s1, const void *s2, int n); 
 
int strlen(const char *s); 
 
void LedSet(U32 led); 
 
#ifdef __cplusplus 
} 
#endif 
 
#endif /*__BOARD_H*/