Skip to main content
Visitor II
January 10, 2021
Solved

Code style templates for electronic projects without RTOS.

  • January 10, 2021
  • 2 replies
  • 1205 views

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

    This topic has been closed for replies.
    Best answer by KnarfB

    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.

    2 replies

    KnarfBAnswer
    Super User
    January 10, 2021

    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.

    Visitor II
    January 10, 2021

    Thank you very interesting!

    Super User
    January 10, 2021

    See these recommendations from Tilen Majerle

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

    -- pa