board.h

来自「优龙电ARM2410开发板GPRS--------GPRS/GSM通讯实验源程序」· C头文件 代码 · 共 66 行

H
66
字号
#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);

extern int strlen(const char *s);

#ifdef __cplusplus
}
#endif

#endif /*__BOARD_H*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?