Clarification for MCF5282LITE EVB include files and ISR

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

Clarification for MCF5282LITE EVB include files and ISR

2,265 次查看
Chandrashekar
Contributor I
Hello Trevor,
Thank you for the information and i need few more clarifications from you,
i am currently using MCF5282LITE EVB board and unable to find the necessary
include files from Freescale(as stated by you).
 
I configured the ICR and IMR as suggested by you and
I am calling the below function in my application
setup_handler(64 + 13);//For UART0 
 
but the interrupt is not getting invoked, i don't know what's wrong with my code.
 
 
void setup_handler(unsigned short vec_index)
{
 unsigned long **autovector = (unsigned long **)0x20000000;  // The Vector Base Address 
 *(autovector + vec_index)  = (unsigned long *) &SCI1_tx_ISR; 
}
 
Actually i am using vector.s, int_handlers.c files for handling interrupts,
 
 
 
can you guide me how to go about it,
if i get those include files to be used, it would be helpful.
 
Regards,
Chandrashekar
标签 (1)
0 项奖励
回复
1 回复

841 次查看
mnorman
NXP Employee
NXP Employee
To get UART interrupts, you need to insure that:
 
1) the desired interrupts are enabled in the UART module
2) the interrupt controller is setup to allow UART interrupts (ICRn, IMR)
3) the appropriate handler pointer is loaded into the appropriate vector in the vector table
4) the core's interrupt level in the status register (SR) is equal to or below the interrupt level programmed into the ICRn
0 项奖励
回复