ISSDK  1.8
IoT Sensing Software Development Kit
Functions | Variables
main_freertos_two_tasks.c File Reference

FreeRTOS (two task) implementation of sensor fusion on FRDM-K64F. More...

#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "timers.h"
#include "event_groups.h"
#include "fsl_debug_console.h"
#include "board.h"
#include "pin_mux.h"
#include "clock_config.h"
#include "fsl_port.h"
#include "fsl_i2c.h"
#include "fxas21002.h"
#include "mpl3115.h"
#include "fxos8700.h"
#include "fsl_i2c_cmsis.h"
#include "register_io_i2c.h"
#include "fsl_smc.h"
#include "sensor_fusion.h"
#include "control.h"
#include "status.h"
#include "drivers.h"
Include dependency graph for main_freertos_two_tasks.c:

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 [3]
 This implementation uses three physical sensors. More...
 
EventGroupHandle_t event_group = NULL
 
registerDeviceInfo_t i2cBusInfo
 

Detailed Description

FreeRTOS (two task) implementation of sensor fusion on FRDM-K64F.

This file shows one recommended way to incorporate sensor fusion capabilities into a FreeRTOS project.

Definition in file main_freertos_two_tasks.c.

Function Documentation

◆ main()

int main ( void  )

Variable Documentation

◆ controlSubsystem

ControlSubsystem controlSubsystem

used for serial communications

Definition at line 45 of file main_freertos_two_tasks.c.

◆ event_group

EventGroupHandle_t event_group = NULL

Definition at line 48 of file main_freertos_two_tasks.c.

Referenced by main().

◆ i2cBusInfo

Initial value:
= {
.deviceInstance = I2C_S_DEVICE_INDEX,
.functionParam = NULL,
.idleFunction = NULL
}
#define I2C_S_DEVICE_INDEX
Definition: issdk_hal.h:35

Definition at line 56 of file main_freertos_two_tasks.c.

◆ sensors

struct PhysicalSensor sensors[3]

This implementation uses three physical sensors.

Definition at line 47 of file main_freertos_two_tasks.c.

Referenced by main().

◆ sfg

This is the primary sensor fusion data structure.

Definition at line 44 of file main_freertos_two_tasks.c.

◆ statusSubsystem

StatusSubsystem statusSubsystem

provides visual (usually LED) status indicator

Definition at line 46 of file main_freertos_two_tasks.c.