Hi,

I wish to write an interrupt based program for LPC2378 board. It involves one 
of the two user buttons and the LED on LPC2378 board. I wrote an algorithm and 
initialized all the required registers following the algorithm. Now I have 
doubts as to how I should organize the program. I have included all the 
initialization statements in the main function. 

Should I move all the initialization statements to a separate function, say, an 
init() function ? Should I include both interrupt handler definition and its 
prototype in the module (that includes the main function) ? Right now, the 
interrupt handler prototype is included in the header file and its body in the 
main module.

Thanks,
Naga.
_______________________________________________
psas-avionics mailing list
psas-avionics@lists.psas.pdx.edu
http://lists.psas.pdx.edu/mailman/listinfo/psas-avionics

Reply via email to