This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320F280049C: TI c-code-style

Part Number: TMS320F280049C
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Dear TI Hello,

Could you give me some guidelines about C code style I could use for my personal tutorials.

Which c code style you would recommend for my personal tutorial ? 

I want to start a series of tutorials but, I don't have any idea about code style...

Thank in advance,

S.Tarik,

  • Tarik,

    For newer projects, DriverLib is good approach. It exposes API for all peripherals and the implementation details are hidden inside library. However there are many folks which like bitwise manipulation of peripheral. It is matter of personal taste.

    For C language coding style, there are lots of information available on internet.

  • Santosh,

    Yes, since I like to preserve the same code style used by TI header/source files.

    I am looking for documentation that describe or explain  the rules used in DriverLib, so I could follow and preserve the same style.

    Thank you,

    S.Tarik,

  • Tarik,

    Just to add to above, you can also do mix of DriverLib and BitField coding.

    The documentation for DriverLib is available at

    C:\ti\C2000Ware_2_01_00_00\device_support\f28004x\docs\html\driverlib_html\index.html

    This is more on the DriverLib APIs rather coding convention.

  • Tarik,

    Is your issue resolved? Can we close the thread now?