This is (my) perfect directory for embedded C projects. It is loosely base on The Pitchfork Layout (PFL) which is a convention for laying out source, build, and resource files widely accepted by the C/C++ community. It is designed to provide a clear and organized structure for the project, making it easier to maintain and debug.
The original PFL describes 11 top-level directories. Depending on the simplicity of the project, you can consider some of them non-essential like data/
or examples/
. So feel free to skip them depending on your needs. I've added bin/
which contains the binary files for a specific architecture.
bin/