#include <stdbool.h>
#include <stddef.h>
-#define __ATTRIB_PACK __attribute__ ((packed))
-#define __ATTRIB_PRINTF __attribute__ ((format (printf, 1, 2)))
-#define __ATTRIB_NORETURN __attribute__ ((noreturn))
-#define __ATTRIB_ALIGN(x) __attribute__ ((aligned((x))))
-#define INLINE __inline__
-
-#define LOCAL static
-
-/* probably should not put STATUS here */
-typedef enum {
- OK = 0,
- FAIL,
- PENDING,
- BUSY,
- CANCEL,
-} STATUS;
-
-//#define _LITTLE_ENDIAN 1234
-//#define _BYTE_ORDER == _LITTLE_ENDIAN
-
-#define ASSERT( x ) do { \
- if (!(x)) { \
- printf("%s %u\n", __FILE__, __LINE__); \
- while (1) { \
- asm volatile("nop"); \
- }; \
- } \
-} while (0)
-
-/* #if __GNUC_PREREQ__(4, 1) */
-#ifndef __GNUC__
-#if 1
-#define __offsetof(type, field) __builtin_offsetof(type, field)
-#else
-#define __offsetof(type, field) ((size_t)(&((type *)0)->field))
-#endif
-#endif /* __GNUC__ */
-
-
-/* Macros for counting and rounding. */
-#ifndef howmany
-#define howmany(x, y) (((x)+((y)-1))/(y))
-#endif
-
-#define container_of(ptr, type, member) ({ \
- const typeof( ((type *)0)->member ) *__mptr = (ptr); \
- (type *)( (char *)__mptr - __offsetof(type,member) );})
-
#endif /* __ESP_TYPES_H__ */