-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaip.h
44 lines (37 loc) · 923 Bytes
/
aip.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*********************************************************************
* Filename: aip.h
*
*
* Author: Bright Pan <loststriker@gmail.com>
* Created at: 2013-07-17 11:12:03
*
*
*
* Change Log:
*
* Copyright (C) 2013 Yuettak Co.,Ltd
********************************************************************/
#ifndef _AIP_H_
#define _AIP_H_
#include <rthw.h>
#include <rtthread.h>
#include "stm32f10x.h"
#include "rtdevice.h"
#include "alarm.h"
#include <dfs_init.h>
#include <dfs_elm.h>
#include <dfs_fs.h>
#include "dfs_posix.h"
#define AIP_MAIL_MAX_MSGS 20
typedef struct
{
time_t time;
ALARM_TYPEDEF alarm_type;
}AIP_MAIL_TYPEDEF;
extern rt_mq_t aip_mq;
extern uint8_t aip_bin_http_address[100];
extern uint8_t aip_bin_http_address_length;
extern int aip_bin_size;
void aip_mail_process_thread_entry(void *parameter);
void send_aip_mail(ALARM_TYPEDEF alarm_type, time_t time);
#endif