This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PBYTE to sfr?

I have the following function:

void usbReceive(PBYTE Buffer, BYTE size);

and I want to pass an sfr to it:

usbReceive(&P2, 1);

I'm getting illegal pointer conversion
Nevertheless,
usbReceive(P2, 1);
does not compile also. How can I read directly into P2 sfr?

Parents Reply Children
No data