Adding/replacing PE Interrupts

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

Adding/replacing PE Interrupts

跳至解决方案
1,856 次查看
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,658 次查看
JohnH49
Contributor I

That was exactly what i was looking for. Thanks.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,659 次查看
JohnH49
Contributor I

That was exactly what i was looking for. Thanks.

0 项奖励
回复
1,658 次查看
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 项奖励
回复