Change this -
unsingned long int value;
unsingned long value;
... or shall it be
value = Counter24_1_ReadCounter();
dana and bob
i already tried as same as you told but it gives same error,plz help
So why don't you post (attach) your project here so that we all can look for errors.
To do so: use the function "Archive Project... " and upload the generated .zip - archive using MS internet explorer (not Chrome!!!)
unsigned long value;
!W E:\YVRAO\psocexam\COUNTE~1\COUNTE~1\main.c(11):[warning] calling a function without prototype may cause runtime errors if the function does not return int or unsigned int
!E E:\YVRAO\psocexam\COUNTE~1\COUNTE~1\main.c(12): type error in argument 1 to `Counter24_1_ReadCounter'; found `unsigned long' expected `pointer to unsigned long'
C:\PROGRA~1\Cypress\Common\CYPRES~3\tools\make: *** [obj/main.o] Error 1
counter24bit - 2 error(s) 1 warning(s) 19:49:52
Sorry for the mis-understanding, I am talking about posting the complete PROJECT, not only some lines of code. The project contains all the definitions you made. Stick to my prior post to generate an archive.
... and it is
Counter24_1_Start(); // Capital "S"
Counter24_1_ReadCounter(&value); // Address of Value / Pointer to Value
thank you bob