📄 freemaster_cfg.h
字号:
/***************************************************************************//*!
*
* @file freemaster_cfg.h
*
* @brief FreeMaster Driver configuration file which is to be used with the
* appconfig.h-based applications in 56F800E_Quick_Start. The FreeMASTER
* driver is configured graphically in the Graphical Configuration Tool
*
*******************************************************************************/
#ifndef __FREEMASTER_CFG_H
#define __FREEMASTER_CFG_H
/******************************************************************************
* Include header file defining standard types used in the driver
******************************************************************************/
#include <hidef.h> /* standard types */
/******************************************************************************
* Select interrupt or poll-driven serial communication
******************************************************************************/
#define FMSTR_LONG_INTR 0 // complete message processing in interrupt
#define FMSTR_SHORT_INTR 1 // SCI FIFO-queuing done in interrupt
#define FMSTR_POLL_DRIVEN 0 // no interrupt needed, polling only
/*****************************************************************************
* Select communication interface (SCI or JTAG)
******************************************************************************/
//#define FMSTR_SCI_BASE 0xd0 // SCI0 base on DP256
//#define FMSTR_SCI_BASE 0xc8 // SCI0 base on DP256
#define FMSTR_SCI_BASE 0x138 // SCI5 base on DP512
//#define FMSTR_SCI_INTERRUPT 61
/******************************************************************************
* 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 32 // set to 0 for "default"
/*****************************************************************************
* Support for Application Commands
******************************************************************************/
#define FMSTR_USE_APPCMD 1 // enable/disable App.Commands support
#define FMSTR_APPCMD_BUFF_SIZE 32 // App.Command data buffer size
#define FMSTR_MAX_APPCMD_CALLS 4 // how many app.cmd callbacks? (0=disable)
/*****************************************************************************
* Oscilloscope support
******************************************************************************/
#define FMSTR_USE_SCOPE 1 // enable/disable scope support
#define FMSTR_MAX_SCOPE_VARS 8 // max. number of scope variables (2..8)
/*****************************************************************************
* Recorder support
******************************************************************************/
#define FMSTR_USE_RECORDER 1 // enable/disable recorder support
#define FMSTR_MAX_REC_VARS 8 // max. number of recorder variables (2..8)
#define FMSTR_REC_OWNBUFF 0 // use user-allocated rec. buffer (1=yes)
// built-in recorder buffer (use when FMSTR_REC_OWNBUFF is 0)
#define FMSTR_REC_BUFF_SIZE 1024 // built-in buffer size
// recorder time base, specifies how often the recorder is called in the user app.
#define FMSTR_REC_TIMEBASE FMSTR_REC_BASE_MILLISEC(0) // 0 = "unknown"
/*****************************************************************************
* Target-side address translation (TSA)
******************************************************************************/
#define FMSTR_USE_TSA 1 // enable TSA functionality
#define FMSTR_USE_TSA_SAFETY 1 // enable access to TSA variables only
#define FMSTR_USE_TSA_INROM 1 // TSA tables declared as const (put to ROM)
/*****************************************************************************
* 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
/*****************************************************************************
* Enable/Disable read/write variable commands (a bit faster than Read Mem)
******************************************************************************/
#define FMSTR_USE_READVAR 0 // enable read variable fast commands
#define FMSTR_USE_WRITEVAR 0 // enable write variable fast commands
#define FMSTR_USE_WRITEVARMASK 0 // enable write variable bits fast commands
#endif /* __FREEMASTER_CFG_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -