2006/8/3, Thomas C. Sefranek wrote: > More fun with C30 for the PIC24s... > > > I can not get the compiler to pay ANY attention to uart.h > > I added it to the MPLAB include path $(incdir) and even added it explicitly > in the MPLAB includes folder as a file. > > If I invoke definitions unique to PIC 24 UART (Defined in uart.h) the > compiler complains they are undefined. > > > Source file line: > USART2_STA_Value = UART_INT_TX & UART_IrDA_POL_INV_ZERO & > UART_SYNC_BREAK_DISABLED & UART_TX_ENABLE & UART_INT_RX_3_4_FUL & > UART_ADR_DETECT_DIS & UART_RX_OVERRUN_CLEAR; > > > Compiler results: > > Inits.c: In function `inits': > > Inits.c:140: error: `UART_IrDA_POL_INV_ZERO' undeclared (first use in this > function) > > Inits.c:140: error: (Each undeclared identifier is reported only once > > Inits.c:140: error: for each function it appears in.) > > Inits.c:140: error: `UART_SYNC_BREAK_DISABLED' undeclared (first use in this > function) > > Halting build on first failure as requested. > > > Programming in C are good... with asprin. > > Tom > > * > | __O Thomas C. Sefranek WA1RHP@ARRL.NET > |_-\<,_ Amateur Radio Operator: WA1RHP > (*)/ (*) Bicycle mobile on 145.41MHz PL74.4 > > ARRL Instructor, Technical Specialist, VE Contact. > http://hamradio.cmcorp.com/inventory/Inventory.html > http://www.harvardrepeater.org Hello Tom, That sounds like you have some variable or define at other module than inits.c , and you didn't extern or include it in inits.c. It is late here, and I have to go now. Maybe I will get back to you later... 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