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.
PK70 Interrupt Setup
Re: PK70 Interrupt Setup
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.
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
Tom,
Thank you. I appreciate it.
Thank you. I appreciate it.
Re: PK70 Interrupt Setup
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.
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.
Mike Lara
Project Engineer
Netburner, Inc
Project Engineer
Netburner, Inc