Include standart C file in FSL SDK

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Include standart C file in FSL SDK

1,638件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,531件の閲覧回数
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 件の賞賛
返信

1,531件の閲覧回数
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 件の賞賛
返信

1,531件の閲覧回数
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 件の賞賛
返信