mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-09-19 16:46:11 -04:00
39 lines
698 B
C++
39 lines
698 B
C++
#ifndef AVRHEAP_H
|
|
#define AVRHEAP_H
|
|
//
|
|
// FILE: Avrheap.h
|
|
// AUTHOR: Rob dot Tillaart at gmail dot com
|
|
// VERSION: 0.1.00
|
|
// PURPOSE: heap library for Arduino (AVR)
|
|
// HISTORY: See avrheap.cpp
|
|
//
|
|
// Released to the public domain
|
|
//
|
|
|
|
#if defined(ARDUINO) && ARDUINO >= 100
|
|
#include "Arduino.h"
|
|
#else
|
|
#include "WProgram.h"
|
|
#endif
|
|
|
|
#include "Printable.h"
|
|
|
|
#define AVRHEAP_LIB_VERSION "0.1.00"
|
|
|
|
class Avrheap
|
|
{
|
|
public:
|
|
Avrheap();
|
|
size_t printTo(Print& p) const;
|
|
|
|
// uint32_t freeRAM(); // should this be in ?
|
|
bool isFragmented();
|
|
uint16_t freeListCount();
|
|
uint16_t freeListSize();
|
|
void freeListDump();
|
|
void dump(uint16_t count);
|
|
private:
|
|
|
|
};
|
|
|
|
#endif |