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

📄 k44lib.h

📁 Dignostic test program for SMDK441f board chip peripellel. ADS1.2 compiler
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -