⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 memtarget.c

📁 基于56F8346的异步电机VVVF控制程序。
💻 C
字号:
/** ###################################################################
**
**     (c) Freescale Semiconductor
**     2004 All Rights Reserved
**
**
**     (c) Copyright UNIS, spol. s r.o. 1997-2004
**     UNIS, spol. s r.o.
**     Jundrovska 33
**     624 00 Brno
**     Czech Republic
**     http      : www.processorexpert.com
**     mail      : info@processorexpert.com
** ###################################################################*/

/* File: memTarget.c */

#include "port.h"
#include "mem.h"
#include "arch.h"
#include "assert.h"
#include <string.h>
#include <stdio.h>


/*******************************************************
* specific memory Package for 56F8346
*******************************************************/

/*****************************************************************************
*
* Module:
*    memIsIM()
*
* Description:
*    This function determines if the pointer to memory passed in is
*    in internal memory of the 56F8346.
*
* Returns:
*    true  - if memory is in internal memory
*    false - if memory is not in internal memory
*
* Global Data:
*    None
*
* Arguments:
*    memblock - void * pointer to a memory location
*
* Range Issues:
*
* Special Issues:
*
*******************************************************************************/
bool    memIsIM     (void * memblock)
{
 return ((UInt32)memblock < (UInt32)0x2000);
}


/*****************************************************************************
*
* Module:
*    memIsEM()
*
* Description:
*    This function determines if the pointer to memory passed in is
*    in external memory of the 56F8346.
*
* Returns:
*    true  - if memory is in external memory
*    false - if memory is not in external memory
*
* Global Data:
*    None
*
* Arguments:
*    memblock - void * pointer to a memory location
*
* Range Issues:
*
* Special Issues:
*
*******************************************************************************/
bool    memIsEM     (void * memblock)
{
return ((UInt32)memblock >= (UInt32)0x2000);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -