-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.h
59 lines (41 loc) · 1.16 KB
/
main.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef __MAIN_H
#define __MAIN_H
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include <lwip/sockets.h>
#include <lwip/arch.h>
#include <lwip/inet.h>
#include <lwip/opt.h>
#include <lwip/api.h>
#include <FreeRTOS.h>
#include <task.h>
#include <semphr.h>
#include <netconf.h>
#include <tcpip.h>
#include <usart1.h>
#include <ftpd.h>
#include <led.h>
#include <ff.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include "globdefs.h"
/* MII and RMII mode selection, for STM324xG-EVAL Board(MB786) RevB ***********/
#define RMII_MODE
/* Exported macro ------------------------------------------------------------*/
#define TickGetDiff(a, b) (s32)(a < b) ? (((s32)0xffffffff - b) + a) : (a - b)
/* Exported functions ------------------------------------------------------- */
void Time_Update(void);
int TickGet(void);
void Delay(uint32_t nCount);
void vApplicationTickHook(void);
//u32 sys_now(void);
#define PRINTF printf
#ifdef __cplusplus
}
#endif
#endif /* __MAIN_H */
/*********** Portions COPYRIGHT 2012 Embest Tech. Co., Ltd.*****END OF FILE****/