mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-06 05:21:22 +03:00
add prototypes for ets_vsnprintf and ets_vprintf
fix some compiler warnings
This commit is contained in:
parent
41569d3307
commit
554233f4d3
@ -1,14 +1,24 @@
|
|||||||
#ifndef __PGMSPACE_H_
|
#ifndef __PGMSPACE_H_
|
||||||
#define __PGMSPACE_H_
|
#define __PGMSPACE_H_
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include "ets_sys.h"
|
||||||
|
#include "osapi.h"
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#define PROGMEM
|
#define PROGMEM
|
||||||
#define PGM_P const char *
|
#define PGM_P const char *
|
||||||
#define PSTR(str) (str)
|
#define PSTR(str) (str)
|
||||||
|
|
||||||
#define vsnprintf_P(...) vsnprintf( __VA_ARGS__ )
|
#define vsnprintf_P(...) ets_vsnprintf( __VA_ARGS__ )
|
||||||
#define snprintf_P(...) snprintf( __VA_ARGS__ )
|
#define snprintf_P(...) snprintf( __VA_ARGS__ )
|
||||||
|
#define printf_P(...) os_printf(__VA_ARGS__)
|
||||||
|
|
||||||
#define _SFR_BYTE(n) (n)
|
#define _SFR_BYTE(n) (n)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user