| 1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef _NET_TIM_H_
- #define _NET_TIM_H_
- #include "../../_Lib-3.5/CMSIS/stm32f10x.h"
- #include "../../User/includes.h"
- #include "../globalDef.h"
- #include "uplink.h"
- #include "../gateway_collect/gateway_collect.h"
- #include "timeout.h"
- #define NETSEND_MSG_PERIOD (1*60)//(5*60) //(500*10)//*60) // 1为1S, 5为5S 5*60:5分钟
- #define NETSEND_HOUR_PERIOD (24*60*60) // 24小时
- extern volatile uint32_t TickCounter;
- extern void nettimer_init(void);
- typedef struct _key_func
- {
- uint8_t state;
- uint16_t num;
- timeout_t tt_key_state;
- uint8_t keyvalue;
- uint8_t optcmd; // 执行的动作
- }key_func_t;
- extern key_func_t key_info;
- extern timeout_t g_timeOut;
- extern timeout_t g_usmTimeOut;
- extern timeout_t g_uart4Time; // 串口4的接收中断计时
- extern timeout_t g_uart5Time; // 串口5的接收中断计时
- extern timeout_t g_uart2Time; // 串口5的接收中断计时
- extern void timeout_setValue(timeout_t *tt,uint32_t val);
- extern void timeout_start(timeout_t *tt);
- extern void timeout_stop(timeout_t *tt);
- extern uint8_t timeout_isOut(timeout_t *tt);
- #endif
|