Guest
#1171916
I'm getting this error from WinARM:
Warning: passing argument 4 of 'AT91F_TWI_ReadByte' from incompatible
pointer type
with this code:
char read[5];
int AT91F_TWI_ReadByte(const AT91PS_TWI pTwi ,int mode, /
int int_address, char * data, int nb)
{
some code here;
}
void main(void)
{
AT91F_TWI_ReadByte(AT91C_BASE_TWI, LED_CONTROLLER0, 0x02, &read, 1);
}
What is incompatible with the pointer?
- Joe