44blib.h
来自「开发环境:ADS 1.2 目标平台:ARM:S3C44B0 显示屏:tft」· C头文件 代码 · 共 50 行
H
50 行
/***********************************************
* NAME : 44BLIB.H *
* Version : 17.Apr.00 *
***********************************************/
#ifndef __44BLIB_H__
#define __44BLIB_H__
#include "..\target\def.h"
#define DebugOut Uart_Printf
#define _mini_(x1,x2) ((x1<x2)? x1:x2)
#define _maxi_(x1,x2) ((x1>x2)? x1:x2)
#define ONESEC0 (62500) //16us resolution, max 1.04 sec
#define ONESEC1 (31250) //32us resolution, max 2.09 sec
#define ONESEC2 (15625) //64us resolution, max 4.19 sec
#define ONESEC3 (7812) //128us resolution, max 8.38 sec
#define ONESEC4 (MCLK/128/(0xff+1)) //@60Mhz, 128*4us resolution, max 32.53 sec
//#define NULL 0
#define DOWNLOAD_ADDRESS _RAM_STARTADDRESS
/*44blib.c*/
void Delay(int time); //Watchdog Timer is used.
void SoftDelay(int ms);
int _atoi_(char *str);
void Port_Init(void);
void Uart_TxEmpty(int ch);
void Uart_Init(void);
char Uart_Getch(void);
char Uart_GetKey(void);
void Uart_SendByte(int data);
void Uart_SendString(char *pt);
void Uart_GetString(char *string);
int Uart_RxReady(void);
//void restart(void);
//void run(void);
//#define kbhit Uart_RxReady
//#define getkey Uart_GetKey
//#define getch Uart_Getch
//#define getchar getch
//#define putch Uart_SendByte
//#define putchar putch
//#define puts Uart_SendString
#endif /*__44BLIB_H___*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?