Page 1 of 1
PK70 Interrupt Setup
Posted: Tue Aug 28, 2018 6:53 pm
by mike
On the PK70 board.
I want/need to install an interrupt service routine for PIT1.
Netburner software for the MOD5441x includes this macro to assist with setting the interrupt controller:
SETUP_PIT1_ISR(&pit1_isr_asm, 5);
Does that macro, or an equivalent, exist for the PK70 ??
If so, what include file do I need ??
Thanks, Mike.
Re: PK70 Interrupt Setup
Posted: Wed Aug 29, 2018 11:15 am
by TomNB
Take a look at the PK70EX product page, in the docs section. There is an interrupt app note. It is for external interrupts, but the macros will work for internal as well, so combine with what you see in the processor manual for the PIT timer.
https://www.netburner.com/products/netw ... it/pk70-ex
Note: the PK70EX uses a MCF5270 processor, just like the MOD5270, SB70LC and SB70.
Re: PK70 Interrupt Setup
Posted: Wed Aug 29, 2018 12:02 pm
by mike
Tom,
Thank you. I appreciate it.
Re: PK70 Interrupt Setup
Posted: Wed Aug 29, 2018 1:32 pm
by mlara
Mike,
After taking a look at things, we've realized that the PIT interrupt/semaphore/flag functions defined in nburn\MOD5270\include\pitr_sem.h and nburn\MOD5270\system\pitr_sem.cpp should have been ported over to the PK70. SetUpPITRFunc() defined in pitr_sem.cpp shows how to configure a PIT interrupt, which might be useful to you as an example. In case you don't have the MOD5270 source files in your install, I'll send them to you in a private message.