1 #ifndef VIRTMEM_CONFIG_H
2 #define VIRTMEM_CONFIG_H
13 #undef VIRTMEM_WRAP_CPOINTERS
14 #undef VIRTMEM_VIRT_ADDRESS_OPERATOR
15 #undef VIRTMEM_TRACE_STATS
17 #undef VIRTMEM_EXPLICIT
39 #define VIRTMEM_VIRT_ADDRESS_OPERATOR
55 #define VIRTMEM_DEFAULT_POOLSIZE 1024l * 1024l
61 #if __cplusplus > 199711L
72 #define VIRTMEM_EXPLICIT explicit
79 #if defined(__MK20DX256__) || defined(__SAM3X8E__) // Teensy 3.1 / Arduino Due (>= 64 kB sram)
80 struct DefaultAllocProperties
88 #elif defined(__MK20DX128__) // Teensy 3.0 (16 kB sram)
89 struct DefaultAllocProperties
97 #elif defined(__MKL26Z64__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
98 struct DefaultAllocProperties
106 #elif defined(__unix__) || defined(__UNIX__) || (defined(__APPLE__) && defined(__MACH__)) || defined(_WIN32)
107 struct DefaultAllocProperties
120 #if !defined(__AVR_ATmega168__) && !defined(__AVR_ATmega328P__) && !defined(__AVR_ATmega32U4__)
121 #warning "Unknown platform. You probably want to change virtual memory page settings."
196 #ifndef VIRTMEM_WRAP_CPOINTERS
197 #define VIRTMEM_WRAP_CPOINTERS
200 #ifndef VIRTMEM_VIRT_ADDRESS_OPERATOR
201 #define VIRTMEM_VIRT_ADDRESS_OPERATOR
204 #ifndef VIRTMEM_CPP11
205 #define VIRTMEM_CPP11
208 #ifndef VIRTMEM_TRACE_STATS
209 #define VIRTMEM_TRACE_STATS
static const uint8_t bigPageCount
The number of big pages.
Definition: config.h:128
contains all code from virtmem
Definition: base_alloc.cpp:22
static const uint8_t smallPageSize
The size of a small page.
Definition: config.h:126
static const uint8_t bigPageSize
The size of a big page.
Definition: config.h:128
static const uint8_t mediumPageSize
The size of a medium page.
Definition: config.h:127
static const uint8_t smallPageCount
The number of small pages.
Definition: config.h:126
This struct contains default parameters for virtual memory pages.
Definition: config.h:124
static const uint8_t mediumPageCount
The number of medium pages.
Definition: config.h:127