![]() |
ISSDK
1.8
IoT Sensing Software Development Kit
|
FreeRTOS (two task) implementation of sensor fusion. More...
#include "FreeRTOS.h"#include "task.h"#include "queue.h"#include "timers.h"#include "event_groups.h"#include "fsl_debug_console.h"#include "pin_mux.h"#include "clock_config.h"#include "board.h"#include "fsl_port.h"#include "fsl_i2c.h"#include "fxas21002.h"#include "fxls8962.h"#include "mag3110.h"#include "register_io_i2c.h"#include "fsl_i2c_cmsis.h"#include "sensor_fusion.h"#include "control.h"#include "status.h"#include "drivers.h"
Go to the source code of this file.
Functions | |
| int | main (void) |
| This is a FreeRTOS (dual task) implementation of the NXP sensor fusion demo build. More... | |
Variables | |
| SensorFusionGlobals | sfg |
| This is the primary sensor fusion data structure. More... | |
| ControlSubsystem | controlSubsystem |
| used for serial communications More... | |
| StatusSubsystem | statusSubsystem |
| provides visual (usually LED) status indicator More... | |
| struct PhysicalSensor | sensors [4] |
| This implementation uses four physical sensors. More... | |
| EventGroupHandle_t | event_group = NULL |
| registerDeviceInfo_t | i2cBusInfo |
FreeRTOS (two task) implementation of sensor fusion.
This file shows one recommended way to incorporate sensor fusion capabilities into a FreeRTOS project.
Definition in file main_agmp03_freertos_two_tasks.c.
| int main | ( | void | ) |
This is a FreeRTOS (dual task) implementation of the NXP sensor fusion demo build.
Definition at line 61 of file main_agmp03_freertos_two_tasks.c.
References BOARD_BootClockRUN, BOARD_InitDebugConsole(), BOARD_InitPins(), event_group, FXAS21002_I2C_ADDR, FXAS21002_Init(), FXAS21002_Read(), FXLS8962_I2C_ADDR, FXLS8962_Init(), FXLS8962_Read(), I2C_S_DRIVER, I2C_S_SIGNAL_EVENT, I2Cdrv, initializeControlPort(), SensorFusionGlobals::initializeFusionEngine, initializeStatusSubsystem(), initSensorFusionGlobals(), SensorFusionGlobals::installSensor, MAG3110_I2C_ADDR, MAG3110_Init(), MAG3110_Read(), MPL3115_I2C_ADDR, MPL3115_Init(), MPL3115_Read(), and sensors.

| ControlSubsystem controlSubsystem |
used for serial communications
Definition at line 46 of file main_agmp03_freertos_two_tasks.c.
| EventGroupHandle_t event_group = NULL |
Definition at line 49 of file main_agmp03_freertos_two_tasks.c.
Referenced by main().
| registerDeviceInfo_t i2cBusInfo |
Definition at line 51 of file main_agmp03_freertos_two_tasks.c.
| struct PhysicalSensor sensors[4] |
This implementation uses four physical sensors.
Definition at line 48 of file main_agmp03_freertos_two_tasks.c.
Referenced by main().
This is the primary sensor fusion data structure.
Definition at line 45 of file main_agmp03_freertos_two_tasks.c.
| StatusSubsystem statusSubsystem |
provides visual (usually LED) status indicator
Definition at line 47 of file main_agmp03_freertos_two_tasks.c.