warning [361] function declared implicit int
I can't understand why my compiler can not read the cod for seting up microprocessors pins! I have my code in MPLAB and my compiler is hi-tech(picc-lite).
here is the lines it gives me errors. Thanks you for all your help.
SET_TRIS_a(0x1B); // A0,A1,A3
SETUP_WDT(WDT_2304MS) //2 SEC INTERUP
//INIT
SET_ADC_CHANNEL(1);
LEVEL=read_adc(); //read channel 1
wait_ms(250);
SETUP_ADC_PORTS(sAN0 | VSS_VDD); //SET AN0 AS ANALOG INPUT
SETUP_ADC_PORTS(sAN1 | VSS_VDD); // SET AN1 AS ANALOG INPUT
SETUP_ADC_PORTS(sAN3 | VSS_VDD); //SET AN3 AS ANALOG INPUT
SETUP_ADC(ADC_CLOCK_INTERNAL);
wait_ms(250);
OUTPUT_LOW(SIGNAL); //PIN 5,OUTPUT
Warning [361] C:\Documents and Settings\sajir\Desktop\PIC_test\main.c; 39.1 function declared implicit int
Warning [361] C:\Documents and Settings\sajir\Desktop\PIC_test\main.c; 40.1 function declared implicit int
Error [192] C:\Documents and Settings\sajir\Desktop\PIC_test\main.c; 40.11 undefined identifier "WDT_2304MS"
Error [195] C:\Documents and Settings\sajir\Desktop\PIC_test\main.c; 45.1 expression syntax
Warning [361] C:\Documents and Settings\sajir\Desktop\PIC_test\main.c; 46.7 function declared implicit int
Warning [361] C:\Documents and Settings\sajir\Desktop\PIC_test\main.c; 49.1 function declared implicit int
Warning [361] C:\Documents and Settings\sajir\Desktop\PIC_test\main.c; 50.1 function declared implicit int
Error [192] C:\Documents and Settings\sajir\Desktop\PIC_test\main.c; 50.17 undefined identifier "sAN0"
Error [192] C:\Documents and Settings\sajir\Desktop\PIC_test\main.c; 50.24 undefined identifier "VSS_VDD"
Error [192] C:\Documents and Settings\sajir\Desktop\PIC_test\main.c; 51.17 undefined identifier "sAN1"
Error [192] C:\Documents and Settings\sajir\Desktop\PIC_test\main.c; 52.17 undefined identifier "sAN3"