portdrv.h

来自「在ARM7和UC/OSII的平台上实现了GPS自动报站的功能,涉及GPS模块LE」· C头文件 代码 · 共 43 行

H
43
字号
/****************************************************************
**                                                              *
**  FILE         :  PortDrv.h                                   *
**  COPYRIGHT    :  (c) 2001 .Xiamen Yaxon NetWork CO.LTD       *
**                                                              *
**                                                              *
**  By : CCH 2002.1.15                                          *
****************************************************************/
#ifndef DEF_PORTDRV
#define DEF_PORTDRV


/*
********************************************************************************
*                  DEFINE PORT TYPE
********************************************************************************
*/
#define PORT_LEDRED                     0
#define PORT_LEDGREEN                   1
#define PORT_LEDWARN                    2



/*
********************************************************************************
*                  DEFINE PORT CONTROL TYPE
********************************************************************************
*/
#define PORT_PULLUP                     0
#define PORT_PULLDOWN                   1



void    InitPortDrv(void);
void    ControlPort(INT8U type, INT8U ctltype);
void    StartFlashPort(INT8U type, INT8U cycle, INT8U time_high, INT8U time_low, void (*informer)(void));   /* UNIT is 100 ms */
void    StopFlashPort(INT8U type);
void    InstallPermnentPort(INT8U type, INT8U time_high, INT8U time_low);                                   /* UNIT is 100 ms */
void    RemovePermnentPort(INT8U type);
BOOLEAN PortIsFlashing(INT8U type);

#endif

⌨️ 快捷键说明

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