MCU-Common is a library which contains modules useful for embedded programming (especially for bare-metal microcontroller applications):
- FIFO (first in, first out) queue implementation
- Logger module with deferred processing (no more
printf
in interrupt handlers!) - Critical section macros for ARM Cortex-M microcontrollers
For more information, see API documentation (generated by Doxygen) or
examples in the examples
directory.
The code uses assert()
. Make sure to define NDEBUG
in production code
(e.g. -DNDEBUG
) to disable it.
MCU-Common is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Moreover, a custom "linking exception" (inspired by the GNU Classpath License) is granted.
See files COPYING
and LINKING
for details.