How to extend generated code with custom calls?

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

How to extend generated code with custom calls?

1,159 次查看
maximsemenov
Contributor I

Hi,

Is there a way to extend (append/prepend) peripherals initialization code with custom logic. My particular task is to initialize the SPI module to use more than one CS (my understanding is that the config tool can not do it at the moment)?

Thank you,

Max.

0 项奖励
回复
3 回复数

1,122 次查看
maximsemenov
Contributor I

To be honest that only the half of the answer I was hoping for ))) Could you please give me some more info on how to do that I can't find anything in the user manuals. To clarify, my preferred scenario is to keep using Config Tool for managing my configuration and be able to extend generated code without losing my changes after each generation.

Thank you,

Max.

0 项奖励
回复

1,136 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Max,

Yes, you can add your own code if the config tool can't cover your requirement .

 

Regards,

Alice

0 项奖励
回复

1,115 次查看
maximsemenov
Contributor I

To be honest that only the half of the answer I was hoping for ))) Could you please give me some more info on how to do that I can't find anything in the user manuals. To clarify, my preferred scenario is to keep using Config Tool for managing my configuration and be able to extend generated code without losing my changes after each generation.

Thank you,

Max.

0 项奖励
回复