⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lib.h

📁 博创时s3c2410试验箱的串口实验 值得下载
💻 H
字号:

#ifndef __LIB_H__
#define __LIB_H__

//#include	"io.h"
//#include	"sysdrv.h"		//驱动抽象层头文件
//#include	"../inc/macro.h"

#define printk		printf




/***********************System define***************************************/
extern unsigned int PCLK, HCLK, FCLK;



/***********************macro define***************************************/
#define mdelay(n)	hudelay(n*10)

/***********************function define***************************************/
typedef void (*serial_loop_func_t)(void);

/***********************arm define***************************************/
//#define FlushCache()		__asm{mcr p15, 0, r0, c7, c7, 0}

/*lib.c*/
void hudelay(int time); //Watchdog Timer is used.


int Uart_Init(int whichUart,int baud);

int Uart_SendByte(int whichUart, int data);

void Uart_Printf(int whichUart, char *fmt,...);
void Uart_SendString(int whichUart, char *pt);




#endif

⌨️ 快捷键说明

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