44blib.h
来自「在VC6环境下开发」· C头文件 代码 · 共 56 行
H
56 行
/***********************************************
* NAME : 44BLIB.H *
* Version : 17.Apr.00 *
***********************************************/
#ifndef __44blib_h__
#define __44blib_h__
#ifdef __cplusplus
extern "C" {
#endif
//MCLK= 60000000
//60000000hz/125/32= 15000hz
#define _TICK 1000 // 1/1000 sec
//#define _TICK 100 // 1/100 sec
//#define _TICK 10 // 1/10 sec
#define _CLOCK (15000/_TICK)
#define min(x1,x2) ((x1<x2)? x1:x2)
#define max(x1,x2) ((x1>x2)? x1:x2)
#define NULL 0
/*44blib.c*/
void Delay(int time); //Watchdog Timer is used.
void Port_Init(void);
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(int data);
void Uart_Printf(char *fmt,...);
void Uart_SendString(char *pt);
void ChangePllValue(int m,int p,int s);
/*
** interrupters
*/
void uHALr_InitInterrupts(void);
void uHALr_EnableSystemInterrupt(void);
/*
** Functions specific to uHAL
*/
void IrqStart(void);
void* IrqFinish(void);
void ARMTargetInit(void);
void ARMTargetStart(void);
#ifdef __cplusplus
}
#endif
#endif /*__44blib_h__*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?