Using one header file for esp8266 stuff

This commit is contained in:
Jindra Dolezy
2015-04-11 00:35:55 +02:00
parent a1b8b82816
commit d419bdb4f7
16 changed files with 37 additions and 86 deletions
+1 -6
View File
@@ -20,12 +20,7 @@ It's written for use with httpd, but doesn't need to be used as such.
#ifdef __ets__
//esp build
#include "c_types.h"
#include "user_interface.h"
#include "espconn.h"
#include "mem.h"
#include "osapi.h"
#include "espmissingincludes.h"
#include <esp8266.h>
#else
//Test build
#include <stdio.h>
+1 -7
View File
@@ -5,14 +5,8 @@
#ifdef __ets__
//esp build
#define _STDLIB_H_
#define _STRING_H_
#define _STDDEF_H
#include "espmissingincludes.h"
#include "c_types.h"
#include "mem.h"
#include "osapi.h"
#include <esp8266.h>
#define memset(x,y,z) os_memset(x,y,z)
#define memcpy(x,y,z) os_memcpy(x,y,z)