-
大小: 407KB文件类型: .7z金币: 1下载: 0 次发布日期: 2021-06-07
- 语言: 其他
- 标签: MPC5744P FreeMaster
资源简介
MPC5744P FreeMaster下位机示例,可以使用PEMicro作为通信接口,详细请参考文章:https://blog.csdn.net/u010875635/article/details/84789579
代码片段和文件信息
/*
* Copyright (c) 2013-2016 NXP Semiconductor Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms with or without modification
* are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice this list
* of conditions and the following disclaimer.
*
* o Redistributions in binary form must reproduce the above copyright notice this
* list of conditions and the following disclaimer in the documentation and/or
* other materials provided with the distribution.
*
* o Neither the name of NXP Semiconductor Inc. nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“ AND
* ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES
* (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include
#include “freemaster.h“
#include “freemaster_example.h“
/****************************************************************************
*
* Test variables will be displayed in the FreeMASTER application
*
*/
volatile unsigned char var8;
volatile unsigned char var8rw;
volatile unsigned char var8inc = 1;
volatile unsigned short var16;
volatile unsigned short var16rw;
const unsigned short var16rwconst = 0x55AA;
volatile unsigned short var16inc = 1;
volatile unsigned long var32;
volatile unsigned long var32rw;
volatile unsigned long var32inc = 100;
volatile unsigned char frac8;
volatile unsigned short frac16;
volatile unsigned long frac32;
volatile unsigned char ufrac8;
volatile unsigned short ufrac16;
volatile unsigned long ufrac32;
volatile unsigned char* var8ptr = &var8;
volatile unsigned short* var16ptr = &var16;
volatile unsigned long* var32ptr = &var32;
#define ARR_SIZE 10
volatile unsigned short arr_size = ARR_SIZE;
volatile unsigned char arr8[ARR_SIZE];
volatile unsigned short arr16[ARR_SIZE];
volatile unsigned long arr32[ARR_SIZE];
#if FMSTR_DEMO_SUPPORT_I64
volatile unsigned long long var64;
volatile unsigned long long var64rw;
volatile unsigned long long var64inc = 10000;
volatile unsigned long long arr64[ARR_SIZE];
volatile unsigned long long frac64;
volati
评论
共有 条评论