TimerOut Interrupt - KL25Z

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

TimerOut Interrupt - KL25Z

541 Views
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 Kudos
2 Replies

376 Views
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 Kudos

376 Views
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