Adding/replacing PE Interrupts

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Adding/replacing PE Interrupts

Jump to solution
1,209 Views
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 Kudos
1 Solution
1,011 Views
JohnH49
Contributor I

That was exactly what i was looking for. Thanks.

View solution in original post

0 Kudos
2 Replies
1,012 Views
JohnH49
Contributor I

That was exactly what i was looking for. Thanks.

0 Kudos
1,011 Views
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 Kudos