How to use P2020's interrupts in CodeWarriorV10.5?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use P2020's interrupts in CodeWarriorV10.5?

104 Views
Contributor II

Thanks!

Labels (1)
2 Replies

44 Views
NXP TechSupport
NXP TechSupport

See attached file. This file contains CodeWarrior 10.5.1 test project for the P2020. This project was crated using CodeWarrior wizard.

Read the P2020DS_README.txt file in this project. Redirect output to a debugger console instead of UART driver.

This project uses syscall interrupt.

Change the InterruptHandler(long cause) function in the interrupt.c file.

Add similar code in this function:

                if (cause == 0x500)

                {

                               My_interrupt_handler();

                }

 

Add the My_interrupt_handler() function in your code for interrupts from DUART.

Have a great day,
Pavel Chubakov

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

44 Views
Contributor II

Thank  you very much!

0 Kudos