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

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

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

1,636 次查看
1475849560
Contributor II

Thanks!

标签 (1)
2 回复数

1,576 次查看
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!
-----------------------------------------------------------------------------------------------------------------------

1,576 次查看
1475849560
Contributor II

Thank  you very much!

0 项奖励
回复