memtarget.c

来自「基于56F8346的异步电机VVVF控制程序。」· C语言 代码 · 共 89 行

C
89
字号
/** ###################################################################
**
**     (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 + =
减小字号Ctrl + -
显示快捷键?