ADI iSensor FX3 Firmware  v2.9.4-pub
Firmware for the Analog Devices EVAL-ADIS-FX3 IMU Evaluation Platform. This firmware can be compiled using the Cypress EZ USB Suite IDE
Functions | Variables
AppThread.c File Reference

This file contains all functions associated with the AppThread. More...

#include "AppThread.h"

Functions

static void AdiDebugInit ()
 This function initializes the UART controller to send debug messages. More...
 
static void AdiAppInit ()
 This function initializes the USB module and attaches core event handlers. More...
 
void AdiAppThreadEntry (uint32_t input)
 This is the entry point for the primary iSensors firmware application thread. More...
 

Variables

CyU3PEvent EventHandler
 
char serial_number []
 

Detailed Description

This file contains all functions associated with the AppThread.

Copyright (c) 2018-2020 Analog Devices, Inc. All Rights Reserved. This software is proprietary to Analog Devices, Inc. and its licensors.

THIS SOFTWARE UTILIZES LIBRARIES DEVELOPED AND MAINTAINED BY CYPRESS INC. THE LICENSE INCLUDED IN THIS REPOSITORY DOES NOT EXTEND TO CYPRESS PROPERTY.

Use of this file is governed by the license agreement included in this repository.

Date
8/1/2019
Author
A. Nolan (alex..nosp@m.nola.nosp@m.n@ana.nosp@m.log..nosp@m.com)
J. Chong (juan..nosp@m.chon.nosp@m.g@ana.nosp@m.log..nosp@m.com)

Function Documentation

◆ AdiAppInit()

static void AdiAppInit ( )
static

This function initializes the USB module and attaches core event handlers.

This function is called as part of the main application thread (AppThread) startup process when the ThreadX RTOS first boots. This function also retrieves the unique FX3 serial number from the EFUSE array.

Returns
void

◆ AdiAppThreadEntry()

void AdiAppThreadEntry ( uint32_t  input)

This is the entry point for the primary iSensors firmware application thread.

Parameters
inputUnused input argument required by the thread manager
Returns
void

This function performs device initialization and then handles streaming start/stop commands for the various streaming methods. The actual work done for the streaming is performed in the StreamThread - seperating the two allows for better control and responsiveness to cancellation commands.

◆ AdiDebugInit()

static void AdiDebugInit ( )
static

This function initializes the UART controller to send debug messages.

This function is called as part of the main application thread startup process. The debug prints are routed to the UART and can be seen using a UART console running at 115200 baud rate. The UART Tx and Rx must be connected to DQ30 and DQ31 on the Cypress FX3 Explorer board. On the ADI iSensor FX3 Board (small board), the Rx and Tx are connected to pins 5 and 6 on the second 12 pin header.

Returns
void

Variable Documentation

◆ EventHandler

CyU3PEvent EventHandler
extern

ADI event structure

◆ serial_number

char serial_number[]
extern

Global char buffer to store unique FX3 serial number