ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts  1.0
ESP8266ILI9341DisplayProject
user_config.h
Go to the documentation of this file.
1 
26 #ifndef __USER_CONFIG_H__
27 #define __USER_CONFIG_H__
28 
29 #include "esp8266/cpu.h"
30 
31 #ifndef _SIZE_T
32 #define _SIZE_T
33 typedef unsigned long int size_t;
34 #endif
35 
36 #ifndef _BOOL_T
37 #define _BOOL_T
38 #undef true
39 #undef false
40 #undef bool
41 typedef enum { false, true } bool;
42 #endif
43 
45 #define SYSTEM_TASK_HZ 1000L
46 
47 // FIXME move to std.h or some other header
49 #define Mem_Clear(a) memset(a, 0, sizeof(a))
50 #define Mem_Set(a,b) memset(a, (int) b, sizeof(a))
51 
52 #define SHARED_FILINFO
53 
54 // low level memory and flash reading code
55 #include "esp8266/system.h"
56 
57 #include "stringsup.h"
58 
59 // FATFS
60 // MG
61 #include "fatfs.h"
62 
63 #include "posix.h"
64 
65 
66 // Simple queue reoutines
67 #include "queue.h"
68 
69 // Simple sort functions
70 #include "sort.h"
71 
72 // Hardware UART
73 #include <uart_register.h>
74 #include "uart.h"
75 
76 // Hardware SPI
77 #include "esp8266/hspi.h"
78 // Hardware HAL
79 #include "esp8266/hal.h"
80 
81 //#include <math.h>
82 #undef atof
83 // scanf,printf and math i/o functions
84 #include "printf/mathio.h"
85 #include "esp8266/debug.h"
86 
87 #ifdef YIELD_TASK
88  #include "cont.h"
89  #include "user_task.h"
90 #endif
91 
92 // TIME and TIMER FUNCTION
93 //#include "lib/time.h"
94 //#include "lib/timer.h"
95 
96 // FATFS
97 #ifdef FATFS_SUPPORT
98 //#include "fatfs.h"
99 #endif
100 
101 // TFT DISPLAY
102 //#define MEMSPACE_FONT ICACHE_FLASH_ATTR
103 //#include "font.h"
104 //#include "ili9341_adafruit.h"
105 //#include "ili9341.h"
106 
107 // CORDIC math functions
108 //#include "cordic2c_inc.h"
109 //#include "cordic.h"
110 
111 // Wireframe viewer functions
112 //#include "wire_types.h"
113 //#include "wire.h"
114 
115 //#include "network.h"
116 
117 // Network client that displays messages on the TFT
118 #ifdef NETWORK_TEST
119 //#include "server.h"
120 #endif
121 
122 // Serial to/from telnet network task
123 #ifdef TELNET_SERIAL
124 //#include "bridge.h"
125 #endif
126 
127 #ifdef ADF4351
128 //#include "adf4351.h"
129 #endif
130 
131 #ifdef XPT2046
132 //#include "xpd2046.h"
133 //#include "calibrate.h"
134 #endif
135 #endif // __USER_CONFIG_H__
Small printf user function.
bool
Definition: user_config.h:41
Integer sort.
Ring buffer code.
Math IO functions, and verious conversion code with floating point support.
Various string and character functions.
Master Include for FatFs, RTC, Timers AVR8 - Part of HP85 disk emulator.
System memory and reset utilities.
POSIX wrapper for FatFS.
unsigned long int size_t
Definition: cpu.h:64