cancel
Showing results for 
Search instead for 
Did you mean: 

Code style templates for electronic projects without RTOS.

NSemrHomeInit
Senior

Dear ST Hello,

I am looking for a code style for my project. I found this website link below, but this style is quite old "1995". Could you please share with me the code style you know?

link: https://ptolemy.berkeley.edu/projects/embedded/research/vis/doc/VisEngineering/vis_eng/node1.html

We are looking for certification, The idea is to certify this code by the end of dev.

Thank you in advance,

S.Tarik

1 ACCEPTED SOLUTION

Accepted Solutions
KnarfB
Principal III

Thats a wide area. You should check in advance what's needed for your certification. There are general coding styles proposed by Barr Group https://barrgroup.com/embedded-systems/books/embedded-c-coding-standard or you check any large-scale open source project like GNU: https://www.gnu.org/prep/standards/html_node/Writing-C.html. There are domain specific standards like MISRA-C.

View solution in original post

3 REPLIES 3
KnarfB
Principal III

Thats a wide area. You should check in advance what's needed for your certification. There are general coding styles proposed by Barr Group https://barrgroup.com/embedded-systems/books/embedded-c-coding-standard or you check any large-scale open source project like GNU: https://www.gnu.org/prep/standards/html_node/Writing-C.html. There are domain specific standards like MISRA-C.

Thank you very interesting!

Pavel A.
Evangelist III

See these recommendations from Tilen Majerle

https://github.com/MaJerle/c-code-style

-- pa