Content originally posted in LPCWare by padmaja on Thu Jul 16 01:38:33 MST 2015
hi,
i am working with uezgui-1788-70wvm. For development purpose i downloaded open source code,which is uEZ_v2.06c_SourceForge. In this folder i have a doubt in LPC17xx_40xx_Interrupt.c file.
#define DEFAULT_IRQ_HANDLER(func, channel) \
void func(void) { (*G_isrArray[channel].iISR)(); }
in this statement if any interrupt is generated compiler goes to this statement and excutes specified interrupt right? But where is the vector base address initialization?? . what is the exact meaning of (G_isrArray[channel].iISR)()) this thing. i saw that structure is also defined there. And also i want to know the how to assign specified memory location to specified function in IAR workbench??
1. how to assign base address to vector table?
2. how to assign a specified memory location to specified function?
i have just tried one uart interrupt generation code, if i wrote a Irqhandler function in same file, which contains DEFAULT IRQHANDLERS void UART0_IrqHandler(void){ // done receive process}
At the time of compile it gives me error "UART0_IrqHandler" has already been defined. IF i put UART0_IrqHandler function in another file compiler gives duplicate definition for "UART0_IrqHandler" . any simple example is available for interrupts with covering all declarations, means address assigning to specified interrupt, etc??
thanks in advance
BestRegards,
padmaja m