I'm building up a project that's based on the QS-logger example. I want to reuse the routines that gather the data from the MPU9150 using I2C and the interrupt on Port B.
In acquire.c, it looks like the data is read from the MPU9150 inside the IntGPIO routine with the code below
//*****************************************************************************
//
// Called by the NVIC as a result of GPIO port B interrupt event. For this
// application GPIO port B pin 2 is the interrupt line for the MPU9150
//
//*****************************************************************************
void
IntGPIOb(void)
{
unsigned long ulStatus;
ulStatus = GPIOIntStatus(GPIO_PORTB_BASE, true);
//
// Clear all the pin interrupts that are set
//
GPIOIntClear(GPIO_PORTB_BASE, ulStatus);
if(ulStatus & GPIO_PIN_2)
{
//
// MPU9150 Data is ready for retrieval and processing.
//
MPU9150DataRead(&g_sMPU9150Inst, MPU9150AppCallback, &g_sMPU9150Inst);
}
}
I have most of the MPU9150-related files in a project that compiles without errors so I think it's getting the MPU9150 data but I don't understand is how to format an expression that gets at the results from my main program.
Any help greatly appreciated.