Vitaliy Can you use an equate to equate the names SetNoFlowControlMode() and U2MODEbits.UEN = 0? Jim -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of Vitaliy Sent: Tuesday, May 27, 2008 9:34 PM To: Microcontroller discussion list - Public. Subject: Re: [PIC] Help eliminating "passing argument from incompatiblepointertype" warning M. Adam Davis wrote: > Casting should take care of the warning: > > int main() > { > DisableUart( ( TUartModeBits *) &U2MODEbits); // Disable UART #2 > } Worked like a charm. Thanks! > Most companies, however, either do it the way MChip designed it, or > they make their own libraries. I don't quite like the idea of rewriting p33fj256gp710.h. :) I just want to make the code a little bit more readable. E.g., "SetNoFlowControlMode()" instead of "U2MODEbits.UEN = 0". Thank you again for your help. Vitaliy -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist