CLASSES: CLASS C style adapted for embedded systems
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
include
src
.gitignore
LICENSE
Makefile
README.md

README.md

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

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 re-considered:

  • 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.