/***********************************************************************************************************************
 * This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file
 * will be overwritten if the respective MCUXpresso Config Tools is used to update this file.
 **********************************************************************************************************************/

/*
 * Copyright 2020 NXP
 *
 * SPDX-License-Identifier: BSD-3-Clause
 *
 * FreeMASTER Communication Driver - User Configuration File
 */

#ifndef __FREEMASTER_CFG_H
#define __FREEMASTER_CFG_H

////////////////////////////////////////////////////////////////////////////////
// Definitions
////////////////////////////////////////////////////////////////////////////////

#define FMSTR_GENERATED_CONFIGURATION 1 // Generated FreeMASTER configuration

#define FMSTR_PLATFORM_56F800E 1 /* Used platform (see freemaster.h for list of all supported platforms) */

//! Enable/Disable FreeMASTER support as a whole
#define FMSTR_DISABLE 0 // To disable all FreeMASTER functionalities

//! Select interrupt or poll-driven serial communication
#define FMSTR_LONG_INTR 0   // Complete message processing in interrupt
#define FMSTR_SHORT_INTR 0  // Queuing done in interrupt
#define FMSTR_POLL_DRIVEN 1 // No interrupt needed, polling only

//! Select communication interface
#define FMSTR_TRANSPORT FMSTR_SERIAL            // Select FMSTR_SERIAL, FMSTR_CAN or FMSTR_PDBDM transport interface
#define FMSTR_SERIAL_DRV FMSTR_SERIAL_MCUX_QSCI // When using FMSTR_SERIAL: select Serial low-level communication driver

//! Define communication interface base address or leave undefined for runtime setting
#define FMSTR_SERIAL_BASE QSCI0

//! Input/output communication buffer size
#define FMSTR_COMM_BUFFER_SIZE 0 // Set to 0 for "automatic"

//! Receive FIFO queue size (use with FMSTR_SHORT_INTR only)
#define FMSTR_COMM_RQUEUE_SIZE 0 // Set to 0 for "default"

//! Oscilloscope support
#define FMSTR_USE_SCOPE 1      // Specify number of supported oscilloscopes
#define FMSTR_MAX_SCOPE_VARS 8 // Specify maximum number of scope variables per one oscilloscope

//! Recorder support
#define FMSTR_USE_RECORDER 1   // Specify number of supported recorders
#define FMSTR_REC_FLOAT_TRIG 0 // Enable/disable floating point triggering

// Target-side address translation (TSA)
#define FMSTR_USE_TSA 0         // Enable TSA functionality
#define FMSTR_USE_TSA_INROM 0   // TSA tables declared as const (put to ROM)
#define FMSTR_USE_TSA_SAFETY 0  // Enable/Disable TSA memory protection
#define FMSTR_USE_TSA_DYNAMIC 0 // Enable/Disable TSA entries to be added also in runtime

// Pipes as data streaming over FreeMASTER protocol
#define FMSTR_USE_PIPES 0 // Specify number of supported pipe objects

// Enable/Disable read/write memory commands
#define FMSTR_USE_READMEM 1      // Enable read memory commands
#define FMSTR_USE_WRITEMEM 1     // Enable write memory commands
#define FMSTR_USE_WRITEMEMMASK 1 // Enable write memory bits commands

//! Support for Application Commands
#define FMSTR_USE_APPCMD 0       // Enable/disable App.Commands support
#define FMSTR_APPCMD_BUFF_SIZE 0 // App.Command data buffer size
#define FMSTR_MAX_APPCMD_CALLS 0 // How many app.cmd callbacks? (0=disable)

#endif /* __FREEMASTER_CFG_H */

////////////////////////////////////////////////////////////////////////////////
// EOF
////////////////////////////////////////////////////////////////////////////////
