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

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

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

932 Views
1475849560
Contributor II

Thanks!

Labels (1)
2 Replies

872 Views
Pavel
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

872 Views
1475849560
Contributor II

Thank  you very much!

0 Kudos