diff --git a/History/MemoryUsage.zip b/History/MemoryUsage.zip new file mode 100644 index 0000000..8c0d7e7 Binary files /dev/null and b/History/MemoryUsage.zip differ diff --git a/MakeLibrary.bat b/MakeLibrary.bat new file mode 100644 index 0000000..94b8e40 --- /dev/null +++ b/MakeLibrary.bat @@ -0,0 +1 @@ +@..\MakeLibrary.bat diff --git a/MemoryUsage.zip b/MemoryUsage.zip new file mode 100644 index 0000000..8c0d7e7 Binary files /dev/null and b/MemoryUsage.zip differ diff --git a/README.adoc b/README.adoc new file mode 100644 index 0000000..24be1d4 --- /dev/null +++ b/README.adoc @@ -0,0 +1,25 @@ += Memory Usage checking Library for Arduino = + +This is a library for Arduino to see memory usage during a program execution. + +For more information about this library please visit us at +http://www.locoduino.org/spip.php?article149 in french + +== License == + +Copyright (c) 2015-2016 Locoduino.org. All right reserved. +Copyright (c) 2015-2016 Thierry Paris. All right reserved. + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA \ No newline at end of file diff --git a/README.txt b/README.txt deleted file mode 100644 index 7e3ebe3..0000000 --- a/README.txt +++ /dev/null @@ -1 +0,0 @@ -This library can be used to detect memory over use. Use it to check Stack size, and free memory size... diff --git a/WhatsNew.TXT b/WhatsNew.TXT new file mode 100644 index 0000000..35ba3d6 --- /dev/null +++ b/WhatsNew.TXT @@ -0,0 +1,19 @@ +This is a library for Arduino to check your SRAM / Stack memory usage. + + +Whats New ? + +06/08/2015 V2.10 + - Ajout de SRamDisplay() + + - Add of SRamDisplay() + +05/08/2015 V2.00 + - Ajout de mmacros d'impression... + + - Add printing macros... + +26/07/2015 V1.00 + - Naissance de MemoryUsage ! + + - MemoryUsage is Born ! \ No newline at end of file diff --git a/keywords.txt b/keywords.txt new file mode 100644 index 0000000..5a4612a --- /dev/null +++ b/keywords.txt @@ -0,0 +1,43 @@ +####################################### +# Syntax Coloring Map For Matrix +####################################### + +####################################### +# Datatypes (KEYWORD1) +####################################### + +####################################### +# Methods and Functions (KEYWORD2) +####################################### + +mu_freeRam KEYWORD2 +mu_StackCount KEYWORD2 +SRamDisplay KEYWORD2 + +MEMORY_PRINT_START KEYWORD2 +MEMORY_PRINT_HEAPSTART KEYWORD2 +MEMORY_PRINT_HEAPEND KEYWORD2 +MEMORY_PRINT_STACKSTART KEYWORD2 +MEMORY_PRINT_END KEYWORD2 + +MEMORY_PRINT_HEAPSIZE KEYWORD2 +MEMORY_PRINT_STACKSIZE KEYWORD2 +MEMORY_PRINT_FREERAM KEYWORD2 +MEMORY_PRINT_TOTALSIZE KEYWORD2 + +STACK_DECLARE KEYWORD2 +STACK_COMPUTE KEYWORD2 +STACK_PRINT_TEXT KEYWORD2 +STACK_PRINT KEYWORD2 + +FREERAM_PRINT_TEXT KEYWORD2 +FREERAM_PRINT KEYWORD2 + +STACKPAINT_PRINT_TEXT KEYWORD2 +STACKPAINT_PRINT KEYWORD2 + +####################################### +# Constants (LITERAL1) +####################################### + +EEPROMLIST_EMPTY_OWNER LITERAL1 \ No newline at end of file diff --git a/library.properties b/library.properties index d6c4e35..9307927 100644 --- a/library.properties +++ b/library.properties @@ -1,6 +1,6 @@ name=MemoryUsage -version=1.0.0 -author=Thierry PARIS +version=2.10.0 +author=Thierry PARIS - Locoduino maintainer=Thierry PARIS sentence=Use this library to check your SRAM / Stack memory usage. paragraph= diff --git a/license.txt b/license.txt deleted file mode 100644 index 5b388ff..0000000 --- a/license.txt +++ /dev/null @@ -1,24 +0,0 @@ -Software License Agreement (BSD License) - -Copyright (c) 2015 Thierry Paris. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -- Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. -- Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. diff --git a/MemoryUsage.cpp b/src/MemoryUsage.cpp similarity index 100% rename from MemoryUsage.cpp rename to src/MemoryUsage.cpp diff --git a/MemoryUsage.h b/src/MemoryUsage.h similarity index 97% rename from MemoryUsage.h rename to src/MemoryUsage.h index d430d79..dc971fb 100644 --- a/MemoryUsage.h +++ b/src/MemoryUsage.h @@ -1,5 +1,5 @@ /* -MemoryUsage.h - MemoryUsage library V2.0 +MemoryUsage.h - MemoryUsage library V2.10 Copyright (c) 2015 Thierry Paris. All right reserved. This library is free software; you can redistribute it and/or