Adding/replacing PE Interrupts

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

Adding/replacing PE Interrupts

ソリューションへジャンプ
1,863件の閲覧回数
JohnH49
Contributor I

I'm using CW10.2 and PE 3.5.0. I need to add just one line of code when a UART character is received. PE only gives me access to UART0_CSR_OnBlockReceived when the total block is received. I want to do something everytime an individual character is received. i have made it work by editing the static void InterruptRx(UART0_CSR_TDeviceDataPtr DeviceDataPrv) routine and not generating PE code. But this gets overwritten everytime PE generates code.

 

Is there some way to have my own interrupt routine service this interrupt and then call the PE routine? Or perhaps something else I haven't thought of?

 

Thanks,

John

0 件の賞賛
返信
1 解決策
1,665件の閲覧回数
JohnH49
Contributor I

That was exactly what i was looking for. Thanks.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,666件の閲覧回数
JohnH49
Contributor I

That was exactly what i was looking for. Thanks.

0 件の賞賛
返信
1,665件の閲覧回数
ProcessorExpert
Senior Contributor III

Hello,

 

I think that you have use the "Don´t Write Generated Componentn Module" command. Fro details please see the attachment.

 

You can also find more details about this efature in the Help:

 

CodeWarrior for Microcontrollers V10.x > Processor Expert Manuals > Processor Expert Users Manual > Application Design > Code Generation and Usage > User Changes in Generated Code
best regards
Vojtech Filip
Processor Expert Support Team
0 件の賞賛
返信