Hello. For several weeks I did not get to work a simple program with a
timer interrupt. My program Timer_0 no interruptions work well. At the
standard library Tiny6410 intc.h I can not apply function INTC_SetHandler
because there is an error: undefined symvol IntHandlerTable. Where is
IntHandlerTable I do not know.
Has anyone used function INTC_SetHandler?
my simple program:
#include "intc.h"
#include "my_timer.h"
#include "my_gpio_lib.h"
void __irq Isr_Timer0(void);
void __irq Isr_Timer0(void){
display_led_GPIO(15);
INTC_ClearVectAddr();
clear_req_timer0();
}
int main(){
INTC_Init();
INTC_SetVectAddr(NUM_TIMER0,Isr_Timer0);
INTC_Enable(NUM_TIMER0);
inicialisation_led_GPIO();
setup_timer0(255, 16, 1);
ustanovka_osn_parametrov_timer0(16000, 0);
setup_req_timer_0();
start_stop_timer0(1); // <-- start Timer_0
while(1){}
}
Tiny6410 interrupt : using INTC_SetHandler
Hi, try to look the IntHandlerTable in the startup assembler file. From there it maybe exported to C code. I don't exactly know - I work with mini2440.


