Tool/software: Code Composer Studio
Hello,
I want to pass a NULL pointer to the MPU6050Init function.
I've included stddef.h and this is how I declare the NULL pointer:
tSensorCallback *p = NULL;
Afterwards, I use it inside the MPU6050Init as follows:
MPU6050Init(&g_sMPU6050Inst, &g_sI2CInst, MPU6050_I2C_ADDRESS, &p , &g_sMPU6050Inst);
The code compiles but I get the following warning:
Description Resource Path Location Type
#169-D argument of type "tSensorCallback **" is incompatible with parameter of type "tSensorCallback *" main.c
What am I doing wrong?