TimerOut Interrupt - KL25Z

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

TimerOut Interrupt - KL25Z

1,109 次查看
danieltamashiro
Contributor I

Hello,

I have problems to program an interruption of TimerOut.

Variables declared in ProcessorExpert.c are not being recognized by Events.c where I define the interrupt.

When I try to debug, the program says that the variables are not declared in Events.c.

How do I solve this problem?

It is necessary to do some more configuration for the interrupt works?

0 项奖励
回复
2 回复数

944 次查看
danieltamashiro
Contributor I

Im trying to generate an OnInterrupt event on change of the TimerOut.

This interrupt will be enabled inside a infinite loop and in each interrupt the ADC must measure an input value.

0 项奖励
回复

944 次查看
Petr_H
NXP Employee
NXP Employee

Hi,

Are you using the TimerOut_LDD component?

Regarding the variables, it has nothing to do with interrupts, it's a common C practice that if you need to use variable in other module than where decalred you need to declare them as "extern".

So, if you have int x; in ProcessorExpert.c you need to add extern int c; into events.c.

To give you some advice, I would need more details on what do you need to achieve.

best regards

Petr Hradsky

Processor Expert Support Team