FakePgmSpace.h File Reference
#include <stdio.h>
#include <esp_attr.h>
#include <sys/pgmspace.h>
#include "m_printf.h"
#include <c_types.h>
Include dependency graph for FakePgmSpace.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IS_ALIGNED(_x)   (((uint32_t)(_x)&3) == 0)
 determines if the given value is aligned to a word (4-byte) boundary More...
 
#define ALIGNUP4(n)   (((n) + 3) & ~3)
 Align a size up to the nearest word boundary. More...
 
#define ALIGNDOWN4(n)   ((n) & ~3)
 Align a size down to the nearest word boundary. More...
 
#define printf_P_heap(f_P, ...)
 
#define printf_P_stack(f_P, ...)
 
#define printf_P(fmt, ...)   m_printf(fmt, ##__VA_ARGS__)
 
#define PSTR_COUNTED(str)
 Define and use a counted flash string inline. More...
 
#define _F(str)   (str)
 
#define DEFINE_PSTR(name, str)   const char name[] PROGMEM_PSTR = str;
 define a PSTR More...
 
#define DEFINE_PSTR_LOCAL(name, str)   static DEFINE_PSTR(name, str)
 define a PSTR for local (static) use More...
 
#define DECLARE_PSTR(name)   extern const char name[];
 Declare a global reference to a PSTR instance. More...
 
#define LOAD_PSTR(name, flash_str)
 Create a local (stack) buffer called name and load it with flash data. More...
 
#define _FLOAD(pstr)
 
#define PSTR_ARRAY(name, str)
 Define a flash string and load it into a named array buffer on the stack. More...
 

Functions

void * memcpy_aligned (void *dst, const void *src, unsigned len)
 copy memory aligned to word boundaries More...
 
int memcmp_aligned (const void *ptr1, const void *ptr2, unsigned len)
 compare memory aligned to word boundaries More...