📄 wlibdef.h
字号:
/**************************************************************************
NAME:WLIBDEF.H
copyright:wzz at Qingdao University 2008
**************************************************************************/
#ifndef __WLIBDEF_H__
#define __WLIBDEF_H__
//--------------------------------------------------------------------------
#ifdef __cplusplus
extern "C" {
#endif
//--------------------------------------------------------------------------
void Delay(int time); //Watchdog Timer is used.
void Port_Init(void);
//**************************************************************************
#if UART_METHOD==1
/*METHOD:1 FOR UP-NET ARM3000
2 FOR FHRF BORAD
3WRITEN MY OWN*/
int Uart_Init(int whichUart,int baud);
void Uart_RxEmpty(int whichUart);
void Uart_TxEmpty(int whichUart);
int Set_UartLoopFunc(serial_loop_func_t func);
int Clear_UartLoopFunc(int index);
char Uart_Getch(int whichUart);
int Uart_Poll(int whichUart);
int Uart_SendByte(int whichUart, int data);
int Uart_GetIntNum(void);
void Uart_Printf(char *fmt,...);
void Uart_SendString(char *pt);
#endif
//**************************************************************************
#if UART_METHOD==2
void Uart_Select(int ch);
void Uart_TxEmpty(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);
#endif
//**************************************************************************
#if UART_METHOD==3
#endif
extern void testuart(void);
//**************************************************************************
//==========================================================================
#ifdef __cplusplus
}
#endif
//--------------------------------------------------------------------------
#endif
//==========================================================================
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -