MeterLogger
platform.h
Go to the documentation of this file.
1 #ifndef PLATFORM_H
2 #define PLATFORM_H
3 
4 #ifdef FREERTOS
5 //#include "esp_timer.h"
6 typedef struct RtosConnType RtosConnType;
7 typedef RtosConnType* ConnTypePtr;
8 #define httpd_printf(fmt, ...) do { \
9  static const char flash_str[] ICACHE_RODATA_ATTR STORE_ATTR = fmt; \
10  printf(flash_str, ##__VA_ARGS__); \
11  } while(0)
12 #else
13 #define printf(...) os_printf(__VA_ARGS__)
14 #define sprintf(str, ...) os_sprintf(str, __VA_ARGS__)
15 #define strcpy(a, b) os_strcpy(a, b)
16 #define strncpy(a, b, c) os_strncpy(a, b, c)
17 #define strcmp(a, b) os_strcmp(a, b)
18 #define strncmp(a, b, c) os_strncmp(a, b, c)
19 #define malloc(x) os_malloc(x)
20 #define free(x) os_free(x)
21 #define memset(x, a, b) os_memset(x, a, b)
22 #define memcpy(x, a, b) os_memcpy(x, a, b)
23 #define strcat(a, b) os_strcat(a, b)
24 #define strstr(a, b) os_strstr(a, b)
25 #define strlen(a) os_strlen(a)
26 #define memcmp(a, b, c) os_memcmp(a, b, c)
27 typedef struct espconn* ConnTypePtr;
28 #define httpd_printf(format, ...) os_printf(format, ##__VA_ARGS__)
29 #endif
30 
31 
32 
33 #endif
struct espconn * ConnTypePtr
Definition: platform.h:27