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

📄 44blib.h

📁 S3C44B0X内部共有6个16位的定时器单元这个实验把所有的定时器都用中断方式测试。
💻 H
字号:
/***********************************************
 * NAME    : 44BLIB.H                          *
 * Version : 1.1	                           *
 * 描述: 看本目录下的readme				   *
 ***********************************************/


#ifndef __44blib_h__
#define __44blib_h__

#ifdef __cplusplus
extern "C" {
#endif


#define min(x1,x2) ((x1<x2)? x1:x2)
#define max(x1,x2) ((x1>x2)? x1:x2)


#define NULL 0



/**库函数**/
void _44blib_init(void);

void Delay(int time);     //延时分辨率为100us

void *malloc(unsigned nbyte); 
void free(void *pt);

void Uart_Select(int ch);
void Uart_Init(int mclk,int baud);
char Uart_Getch(void);
char Uart_GetKey(void);
int  Uart_GetIntNum(void);
void Uart_SendByte(char data);
void Uart_Printf(char *fmt,...);
void Uart_SendString(char *pt);

/* 测某段时间间隔 分辨率divider=0:16us,1:32us 2:64us 3:128us*/
void Timer_Start(int divider); //用了Watchdog Timer 
int Timer_Stop(void);          //用了Watchdog Timer 



#ifdef __cplusplus
}
#endif

#endif /*__44blib_h__*/

⌨️ 快捷键说明

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