Hello =) I have a problem with a Microcontrolle and its programming in C.
I trie to write some Registers on the command line, but I get the warning: "makes pointer from integer without a cast". Here the border facts:
//This ist the parse method I have to use:
UINT16 String_parseInt(const UINT8* c, UINT8** ptr) {
UINT16 i = 0;
while((*c >= 0x30) && (*c <= 0x39)) {
i = i * 10;
i = i + (*c - 0x30);
c++;
}
if(ptr!=NULL) *(ptr) = (UINT8*) c;
return i;
}
//This is my method where I get the error:
MEM0 = String_parseInt(ADC12MEM0, NULL);
//ADC12MEM0 is a Register on the microprocessor and is NOT a pointer. I am not familiar with C so I don´t know what I make wrong =(
Thanks 4 your Help, Coka