2006/8/3, Thomas C. Sefranek wrote: > Hurrah and a tiger for you Bill. > > I had an include uart.h, but ofcourse the compiler uses the old one, > Because the new stuff is in a different directory. > > I guess I better copy ALL of the new stuff for the peripherals to the > "old" directory. > I'm curious Tom. Can you show your inits.c? What you have included in this module? A 'new' uart.h? I am guessing what you're doing: You're doing some IR stuff with UART2 port, right? And you have made some change to C30 uart.h ? If I were you, I will let uart.h unchanged as it was. I will then make a new header file with a different name and put all new stuff inside this header file. Then I will have inside inits.c #include // include the original C30 one #include "new_header.h" // include all new stuff Best regards, -- WH Tan -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist