/classes

CLASSES: CLASS C style for embedded systems

Primary LanguageCMozilla Public License 2.0MPL-2.0

____ _    ____ ____ ____ ____ ____
|    |    |__| [__  [__  |___ [__
|___ |___ |  | ___] ___] |___ ___]

CLASS C language style adapted for Embedded System.

So May I name it CLASSES style? Sounds not bad :-)

Problem

I write C using CLASS style with fun. When developing some algorithms in C targeted at embedded system where static memory is used instead of dynamic heap memory, I tried to adapt the CLASS style to the embedded version.

To avoid use of heap memory, the following issues need to be addressed:

  • How to create object with user-adjustable parameters?
  • How to initialize object with parameters?
  • How to return memory block in APIs?

Solution

This project is my solution.

For detailed explanation of this style, please read my post "CLASS Style Adapted for Embedded Systems" along with the code.