Soldered SD Card Arduino Library 1.0.0
Easily read and write files to and form the SD card breakout! A fork of the original SDFat library by Bill Greiman.
Loading...
Searching...
No Matches
FsNew.h
Go to the documentation of this file.
1
25#ifndef FsNew_h
26#define FsNew_h
27#include <stddef.h>
28#include <stdint.h>
29
31typedef uint32_t newalign_t;
32
34#define FS_SIZE(etype, ftype) (sizeof(ftype) < sizeof(etype) ? sizeof(etype) : sizeof(ftype))
35
37#define NEW_ALIGN_DIM(n) (((size_t)(n) + sizeof(newalign_t) - 1U) / sizeof(newalign_t))
38
40#define FS_ALIGN_DIM(etype, ftype) NEW_ALIGN_DIM(FS_SIZE(etype, ftype))
41
43void *operator new(size_t size, newalign_t *ptr);
44#endif // FsNew_h
uint32_t newalign_t
Definition FsNew.h:31