ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
1.0
ESP8266ILI9341DisplayProject
Main Page
Related Pages
Data Structures
Files
File List
Globals
esp8266
cpu.h
Go to the documentation of this file.
1
13
#ifndef _CPU_H_
14
#define _CPU_H_
15
16
#if !defined(F_CPU)
17
#define F_CPU 80000000UL
18
#endif
19
20
#ifndef ESP8266
21
#define ESP8266
22
#endif
23
24
#ifndef MEMSPACE
25
#define MEMSPACE ICACHE_FLASH_ATTR
26
//#define MEMSPACE /* */
27
#endif
28
#ifndef MEMSPACE_RO
29
#define MEMSPACE_RO ICACHE_RODATA_ATTR
30
//#define MEMSPACE_RO static const
31
#endif
32
33
#ifndef MEMSPACE_FONT
34
#define MEMSPACE_FONT ICACHE_FLASH_ATTR
35
#endif
36
37
#include <osapi.h>
38
#include <os_type.h>
39
#include <c_types.h>
40
#include "
spi_register.h
"
// from 0.9.4 IoT_Demo
41
#include <
ets_sys.h
>
42
#include <ip_addr.h>
43
#include <espconn.h>
44
#include <gpio.h>
45
#include <user_interface.h>
46
#include <mem.h>
47
#include <stdbool.h>
48
49
#include <stdint.h>
50
#include <stdarg.h>
51
#include <eagle_soc.h>
52
#include "
esp8266/bits.h
"
53
54
#ifndef NULL
55
#define NULL ((void *) 0)
56
#endif
57
58
//typedef uint8_t bool;
59
#define true 1
60
#define false 0
61
62
#ifndef _SIZE_T
63
#define _SIZE_T
64
typedef
unsigned
long
int
size_t
;
65
#endif
66
68
#define SYSTEM_TASK_HZ 1000L
69
70
// FIXME move to std.h or some other header
72
#define Mem_Clear(a) memset(a, 0, sizeof(a))
73
#define Mem_Set(a,b) memset(a, (int) b, sizeof(a))
74
75
#ifdef AVR
76
#undef printf
77
#define printf(format, args...) rs232_printf(PSTR(format), ##args)
78
#endif
79
80
#undef snprintf
81
#define snprintf(s, size, format, args...) rs232_snprintf(s, size, PSTR(format), ##args)
82
83
// FIXME size
84
#undef sprintf
85
#define sprintf(s, format, args...) rs232_snprintf(s, 80, PSTR(format), ##args)
86
87
#include "
esp8266/system.h
"
88
89
#endif // ifndef _CPU_H_
spi_register.h
ets_sys.h
system.h
System memory and reset utilities.
bits.h
size_t
unsigned long int size_t
Definition:
cpu.h:64
Generated on Wed Jan 31 2018 21:22:16 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by
1.8.11