2019-12-07 00:18:02 +01:00
|
|
|
LwMEM documentation!
|
|
|
|
====================
|
|
|
|
|
2019-12-07 00:31:05 +01:00
|
|
|
LwMEM is lightweight dynamic memory manager optimized for embedded systems.
|
|
|
|
|
2019-12-08 09:50:16 +01:00
|
|
|
.. rst-class:: center
|
|
|
|
.. rst-class:: index_links
|
2019-12-07 00:18:02 +01:00
|
|
|
|
2019-12-24 11:25:27 +01:00
|
|
|
:ref:`download_library` · `Open Github <https://github.com/MaJerle/lwmem>`_
|
2019-12-07 00:18:02 +01:00
|
|
|
|
|
|
|
Features
|
|
|
|
^^^^^^^^
|
|
|
|
|
2019-12-07 21:58:57 +01:00
|
|
|
* Written in ANSI C99, compatible with ``size_t`` for size data types
|
2019-12-07 00:31:05 +01:00
|
|
|
* Implements standard C library functions for memory allocation, malloc, calloc, realloc and free
|
2019-12-07 00:41:27 +01:00
|
|
|
* Uses *first-fit* algorithm to search free block
|
2019-12-07 00:31:05 +01:00
|
|
|
* Supports different memory regions to allow use of fragmented memories
|
|
|
|
* Suitable for embedded applications with fragmented memories
|
|
|
|
* Suitable for automotive applications
|
|
|
|
* Supports advanced free/realloc algorithms to optimize memory usage
|
|
|
|
* Operating system ready, thread-safe API
|
|
|
|
* User friendly MIT license
|
2019-12-07 00:18:02 +01:00
|
|
|
|
|
|
|
Requirements
|
|
|
|
^^^^^^^^^^^^
|
|
|
|
|
2019-12-07 00:31:05 +01:00
|
|
|
* C compiler
|
2019-12-18 00:16:29 +01:00
|
|
|
* Less than ``2kB`` of non-volatile memory
|
2019-12-07 00:18:02 +01:00
|
|
|
|
|
|
|
Contribute
|
|
|
|
^^^^^^^^^^
|
|
|
|
|
2019-12-08 23:05:57 +01:00
|
|
|
Fresh contributions are always welcome. Simple instructions to proceed:
|
2019-12-07 00:18:02 +01:00
|
|
|
|
|
|
|
#. Fork Github repository
|
|
|
|
#. Respect `C style & coding rules <https://github.com/MaJerle/c-code-style>`_ used by the library
|
|
|
|
#. Make a pull request to ``develop`` branch with new features or bug fixes
|
|
|
|
|
|
|
|
Alternatively you may:
|
|
|
|
|
|
|
|
#. Report a bug
|
|
|
|
#. Ask for a feature request
|
|
|
|
|
|
|
|
License
|
|
|
|
^^^^^^^
|
|
|
|
|
2019-12-22 23:37:52 +01:00
|
|
|
.. literalinclude:: ../LICENSE
|
2019-12-07 00:18:02 +01:00
|
|
|
|
|
|
|
Table of contents
|
|
|
|
^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|
|
|
|
|
|
|
|
get-started/index
|
|
|
|
user-manual/index
|
|
|
|
api-reference/index
|
2019-12-07 20:26:43 +01:00
|
|
|
examples/index
|