?? k401lib.h
字號:
/************************************************************************/
/* Header file for k401lib.c */
/************************************************************************/
/* Modified and programmed by Yong-Hyeon Kim */
/* Description : 1999. 12. 20 first edited */
/* 2000. 06. 10 added for definition */
/************************************************************************/
#ifndef __k401lib_h__
#define __k401lib_h__
#ifdef __cplusplus
extern "C" {
#endif
#define DebugOut Uart_Printf
#define min(x1,x2) ((x1<x2)? x1:x2)
#define max(x1,x2) ((x1>x2)? x1:x2)
#define ONESEC (MCLK/256/16) //5.12us resolution, max 0.3355sec
#define NULL 0
#define EnterPWDN(clkcon) ((void (*)(int))0xf0)(clkcon)
/*k41lib.c*/
void Delay(int time); //Watchdog Timer is used.
void *malloc(unsigned nbyte);
void free(void *pt);
void Uart_TxEmpty(void);
void Uart_Init(int baud);
char Uart_Getch(void);
void Uart_GetString(char *string);
int Uart_GetIntNum(void);
char Uart_GetKey(void);
void Uart_SendByte(int data);
void Uart_Printf(char *fmt,...);
void Uart_SendString(char *pt);
void Timer_Start(void);
int Timer_Stop(void);
void Led_Display(int data);
void Flush_Cache(void);
#ifdef __cplusplus
}
#endif
#endif /*__k41lib_h__*/
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -