Part Number: TM4C123GH6PM
Tool/software: Code Composer Studio
Hello,
I want to use the MPU6050Init function in my main.c as follows:
MPU6050Init(&g_sMPU6050Inst, &g_sI2CInst, MPU6050_I2C_ADDRESS, MPU6050Callback, &g_sMPU6050Inst);
However, the MPU6050Callback function passed to MPU6050Init is declared as a static function inside MPU6050.c so I get a compilation error when I call call MPU6050Init.
I have 2 questions:
1. What was the motivation behind making "MPU6050Callback" static if it's required inside "MPU6050Init" ?
2. How would you solve this problem ?