[an error occurred while processing this directive]
|
правда видел среды, которые ставят по IRQ вектору что-то на вроде LPR PC [-0xfff0] или подобное, не помню. Я дык пишу прямо так примерно
[code]
#pragma vector=0x18
__irq __arm void IRQ_ISR_Handler (void)
{
void (*interrupt_function)();
unsigned int vector;
static unsigned int us_count;
vector = VICVectAddr;
interrupt_function = (void(*)())vector;
(*interrupt_function)(); // Call vectored interrupt function
VICVectAddr = 0; // Clear interrupt in VIC
}
[/code]
Соответсвенно для T0isr аттрибут _irq уже не нужен.
Может и еще косяки есть, не знаю пока