Include standart C file in FSL SDK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Include standart C file in FSL SDK

734 Views
EugeneHiihtaja
Senior Contributor I

Hello !

I can see in SDK examples you include standart C files as first ones and sometimes after all other #include.

Is any reason if location of those are not unified in SDK ?

Regards,

Eugene

Labels (1)
0 Kudos
3 Replies

627 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Eugene:

Thank you for your feedback. The SDK examples were developed by many engineers , maybe many have their own coding style.  The unified order will be better, I will forward your suggestion to the soft team.

For the include header file order, one rule is the headers not dependent upon other headers should be included first.

Regards

Daniel

0 Kudos

627 Views
EugeneHiihtaja
Senior Contributor I

Hi Daniel !

Could it be provide script for apply code format style like in SDK ?

It have sense to follow it for have similar formatting in own code as well.

Regards,

Eugene

0 Kudos

627 Views
danielchen
NXP TechSupport
NXP TechSupport

Sorry I don't have this script for SDK. I would suggest you refer to following document.

Recommended C Style and Coding Standards 

Regards

Daniel

0 Kudos