40 lines
638 B
C
40 lines
638 B
C
/***
|
|
* @Author: shenghao.xu
|
|
* @Date: 2023-04-17 10:51:38
|
|
* @LastEditors: shenghao.xu
|
|
* @LastEditTime: 2023-04-17 10:53:25
|
|
* @Description:
|
|
* @email:545403892@qq.com
|
|
* @Copyright (c) 2023 by shenghao.xu, All Rights Reserved.
|
|
*/
|
|
|
|
#ifndef __FLOW_DEF_
|
|
#define __FLOW_DEF_
|
|
|
|
#define FLOW_WAIT (0)
|
|
#define FLOW_LOCK (1)
|
|
#define FLOW_FINISH (2)
|
|
#define FLOW_END (3)
|
|
|
|
struct flow
|
|
{
|
|
unsigned long line;
|
|
unsigned long time;
|
|
};
|
|
|
|
struct flow_timer
|
|
{
|
|
unsigned long start;
|
|
unsigned long interval;
|
|
};
|
|
|
|
struct flow_sem
|
|
{
|
|
unsigned long count;
|
|
unsigned long time;
|
|
};
|
|
|
|
extern unsigned long flow_tick;
|
|
|
|
#endif /* __FLOW_DEF_ */
|