[OT] C51-missing function-prototype

Ich hab hier folgende Compilerwarnung "*** WARNING C206 IN LINE 48 OF LM75.C: 'print_temp': missing function-prototype

*** ERROR C267 IN LINE 48 OF LM75.C: 'print_temp': requires ANSI-style prototype"

print_temp befindet sich in cLCDMod.h

Hat jemand einen kleinen Tip was ich da falsch mache? Bin was C angeht leider nicht mehr so ganz fit.

MfG,

Markus

#include #include "cLCDMod.h" #include "i2C2C.h"

#pragma REGPARMS // Parameter werden zwischen C und Assembler über Register ausgetauscht

signed int tempwert(unsigned char MSByte, unsigned char LSByte) { signed int siTemp1, siTemp2; siTemp1 = 256 * (signed int)MSByte; siTemp2 = (signed int) LSByte; return ((siTemp1 + siTemp2) >> 7); }

main() { signed int siTemp,tempsumme=0; unsigned char i, ucTemp1, ucTemp2; // Deklaration der Variablen

LCDInit(); //

i=0;

do { cI2C_START(0x9F); ucTemp1 = cI2C_RBYTE(0); //MSP des Registers ucTemp2 = cI2C_RBYTE(1); //LSP des Registers siTemp = tempwert(ucTemp1,ucTemp2); //tempsumme = tempsumme + siTemp;

LCDGotoxy(0,0); printf("MSP: %02bx ",ucTemp1); LCDGotoxy(8,0); printf("LSP: %02bx ",ucTemp2); LCDGotoxy(10,1); printf("I= %02bx ",i); i++;

// if (i==1) // { LCDGotoxy(0,1); print_temp(siTemp); // tempsumme = 0; // i = 0; // }

} while(3); //delay5ms(100); // Zeitverzögerung von 1 sek

cI2C_STOP(); //eigentlich Bullshit weil nie Aufgerufen

// Ende Unser Programm

while (1); // Endlosschleife }

Reply to
Markus
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.