Include standart C file in FSL SDK

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Include standart C file in FSL SDK

1,055 次查看
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 回复数

948 次查看
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 项奖励
回复

948 次查看
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 项奖励
回复

948 次查看
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 项奖励
回复