blob: 5c48d73087c9cb75eed9a6cda0c1915916b38fb8 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#ifndef _PARENT_CONTROL_SET_H_
2#define _PARENT_CONTROL_SET_H_
3
4#include <stdlib.h>
5#include <stdio.h>
6#include <string.h>
7#include <fcntl.h>
8#include <signal.h>
9#include <sys/time.h>
10#include <pthread.h>
11#include <errno.h>
12#include <linux/rtc.h>
13#include <sys/ioctl.h>
14#include <unistd.h>
15#include <sys/stat.h>
16#include <sys/ioctl.h>
17#include <sys/types.h>
18#include <sys/ipc.h>
19#include <sys/msg.h>
20#include <stdarg.h>
21//#include <message.h>
22#include <rtc-service.h>
23#include "softap_api.h"
24#include "soft_timer.h"
25//#include "message.h"
26#include "rtc_timer.h"
27
28#define PCS_NV_MAX_LEN 1024
29#define ACL_TIMER_ID 10001
30#define PS_MAX_LOG_LENGTH 524288
31#define itoa(i,a,b) (((b) == 16) ? sprintf((a), "%x", (i)) : sprintf((a), "%d", (i)))
32typedef struct tm TM;
33
34// ½á¹¹Ì嶨Òå
35typedef struct _hour_node {
36 int flag;
37// int minute[60]; //À©Õ¹ÓÃ:½«À´Ö§³ÖÉèÖõ½·ÖÖÓ
38 unsigned long enable_interval;
39} Hour_Node;
40
41typedef struct _time_node {
42 int first_hour;
43 Hour_Node TimeSet[24];
44 int TimeNum;
45} Time_Node;
46#endif