k44lib.h

来自「Dignostic test program for SMDK441f boar」· C头文件 代码 · 共 46 行

H
46
字号
#ifndef __K44LIB_H__
#define __K44LIB_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 NULL 0

/*k41lib.c*/
void Delay(int time); //Watchdog Timer is used.

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

void Port_Init(void);


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 Timer0_Start(int divider); //Timer0 is used.
int Timer0_Stop(void);          

void Led_Display(int data);

void ChangePllValue(int m,int p,int s);

#ifdef __cplusplus
}
#endif

#endif /*__K44LIB_H__*/

⌨️ 快捷键说明

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