亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? mem.c

?? 基于56F8346的異步電機(jī)VVVF控制程序。
?? C
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
/** ###################################################################
**
**     (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: memory.c */

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

#ifdef MEM_THREADED_OS
#include "pthread.h"
#endif

/*******************************************************
* memory Package
*******************************************************/

#define ADDRESSING_8

bool        bMemInitialized = false;
mem_sPool   InternalMemoryPool;
mem_sPool   ExternalMemoryPool;
mem_sState  InitialState;
static void Initialize (void);


/*******************************************************
*
* Method: memMallocIM
*
* Description: This function allocates dynamic memory
*              of the specified size from the memory
*              partitions. The function memMallocIM
*              first tries to allocate the memory from
*              the internal memory partition. However,
*              if not enough space exists in the internal
*              memory partition to satisfy the dynamic
*              memory allocation, memMallocIM then tries
*              the allocation from the external memory partition.
*
* Arguments:
*       size - the size of the memory buffer to be
*              allocated in internal memory
*
* Return:      If memory is insufficient to satisfy the request
*              from either partition, memMallocIM returns NULL
*
*******************************************************/
void *  memMallocIM (size_t size)
{
  void * pMem;

  pMem=memMalloc(&InternalMemoryPool, size);
  if(pMem == NULL){
    pMem=memMalloc(&ExternalMemoryPool, size);
  }
  return pMem;
}


/*******************************************************
*
* Method: memCallocIM
*
* Description: This function dynamically allocates an array
*              with elements initialized to zero.
*              The memCallocIM function first tries to
*              reallocate the memory from the internal
*              memory partition. However,
*              if not enough space exists in the internal
*              memory partition to satisfy the dynamic
*              memory allocation, memMallocIM then tries
*              the allocation from the external memory partition.
*
* Arguments:
*       num  - the number of elements
*       size - the size of the memory buffer to be
*              allocated in internal memory
*
* Return:      If memory is insufficient to satisfy the request
*              from either partition, memCallocIM returns NULL
*
*******************************************************/
void *  memCallocIM (size_t num, size_t size)
{
  void * pMem;

  pMem=memCalloc(&InternalMemoryPool, num, size);
  if(pMem == NULL){
    pMem=memCalloc(&ExternalMemoryPool, num, size);
  }
  return pMem;
}


/*******************************************************
*
* Method: memReallocIM
*
* Description: This function dynamically reallocates and
*              resizes a memory buffer to the specified
*              size from the memory partitions. The function
*              memReallocIM first tries to reallocate
*              the memory from the internal memory partition.
*              However, if not enough space exists in
*              the internal memory partition to satisfy
*              the dynamic memory allocation, memReallocIM
*              then tries the allocation from the external
*              memory partition
*
* Arguments:
*   memblock - the address of the existing memory block
*              to reallocate
*       size - the new size of the memory buffer to be
*              allocated in internal memory
*
* Return:      If memory is insufficient to satisfy the request
*              from either partition, memReallocIM returns NULL
*
*******************************************************/
void * memReallocIM ( void *memblock, size_t size )
{
  void * pMem;

  pMem=memRealloc(&InternalMemoryPool, memblock, size);
  if(pMem == NULL){
    pMem=memRealloc(&ExternalMemoryPool, memblock, size);
  }
  return pMem;
}


/*******************************************************
*
* Method: memMallocAlignedIM
*
* Description: This function allocates dynamic memory
*              of the specified size from the memory
*              partitions and aligns the memory properly
*              to use modulo addressing. The function
*              memMallocAlignedIM first tries to allocate
*              the memory, properly aligned, from
*              the internal memory partition. However,
*              if not enough space exists in the internal
*              memory partition to satisfy the dynamic
*              memory allocation, or if the memory request
*              cannot be properly aligned, memMallocAlignedIM
*              then tries the allocation from the external
*              memory partition. If memMallocAlignedIM
*              cannot allocate an aligned buffer from
*              either partition, it calls memMallocIM
*              to try to allocate a buffer of the correct
*              size without the proper alignment.
*
* Arguments:
*       size - the new size of the memory buffer to be
*              allocated in internal memory
*
* Return:      If memory is insufficient to satisfy the request
*              from either partition, memMallocAlignedIM returns NULL
*
*******************************************************/
void *  memMallocAlignedIM (size_t size)
{
  void * pMem;

  pMem=memMallocAligned(&InternalMemoryPool, size);
  if(pMem == NULL){
    pMem=memMallocAligned(&ExternalMemoryPool, size);
    if(pMem == NULL){
      pMem=memMallocIM(size);
    }
  }
  return pMem;
}


/*******************************************************
*
* Method: memFreeIM
*
* Description: This function deallocates a memory block
*              in internal memory that previously had
*              been dynamically allocated with
*              the routine memMallocIM.
*
* Arguments:
*   memblock - pointer to previously allocated memory
*
* Return:      None
*
*******************************************************/
void memFreeIM (void * memblock)
{
  if(memIsIM(memblock)){
    memFree(&InternalMemoryPool, memblock);
  } else {
    memFree(&ExternalMemoryPool, memblock);
  }
}


/*******************************************************
*
* Method: memMallocEM
*
* Description: This function allocates dynamic memory
*              of the specified size from the memory
*              partitions. The function memMallocEM
*              first tries to allocate the memory from
*              the external memory partition. However,
*              if not enough space exists in the external
*              memory partition to satisfy the dynamic
*              memory allocation, memMallocEM then tries
*              the allocation from the internal memory partition.
*
* Arguments:
*       size - the size of the memory buffer to be
*              allocated in external memory
*
* Return:      If memory is insufficient to satisfy the request
*              from either partition, memMallocIM returns NULL
*
*******************************************************/
void *  memMallocEM (size_t size)
{
  void * pMem;

  pMem = memMalloc (&ExternalMemoryPool, size);
  if (pMem == NULL){
    pMem = memMalloc (&InternalMemoryPool, size);
  }
  return pMem;
}


/*******************************************************
*
* Method: memCallocEM
*
* Description: This function dynamically allocates an array
*              with elements initialized to zero.
*              The memCallocEM function first tries to
*              reallocate the memory from the external
*              memory partition. However,
*              if not enough space exists in the external
*              memory partition to satisfy the dynamic
*              memory allocation, memCallocEM then tries
*              the allocation from the internal memory partition.
*
* Arguments:
*       num  - the number of elements
*       size - the size of the memory buffer to be
*              allocated in external memory
*
* Return:      If memory is insufficient to satisfy the request
*              from either partition, memCallocIM returns NULL
*
*******************************************************/
void *  memCallocEM (size_t num, size_t size)
{
  void * pMem;

  pMem = memCalloc (&ExternalMemoryPool, num, size);
  if (pMem == NULL) {
    pMem = memCalloc (&InternalMemoryPool, num, size);
  }
  return pMem;
}


/*******************************************************
*
* Method: memReallocEM
*
* Description: This function dynamically reallocates and
*              resizes a memory buffer to the specified
*              size from the memory partitions. The function
*              memReallocEM first tries to reallocate
*              the memory from the external memory partition.
*              However, if not enough space exists in
*              the external memory partition to satisfy
*              the dynamic memory allocation, memReallocEM
*              then tries the allocation from the internal
*              memory partition
*
* Arguments:
*   memblock - the address of the existing memory block
*              to reallocate
*       size - the new size of the memory buffer to be
*              allocated in internal memory
*
* Return:      If memory is insufficient to satisfy the request
*              from either partition, memReallocIM returns NULL
*
*******************************************************/
void * memReallocEM ( void *memblock, size_t size )
{
  void * pMem;

  pMem = memRealloc (&ExternalMemoryPool, memblock, size);
  if (pMem == NULL) {
    pMem = memRealloc (&InternalMemoryPool, memblock, size);
  }
  return pMem;
}


/*******************************************************
*
* Method: memMallocAlignedEM
*
* Description: This function allocates dynamic memory
*              of the specified size from the memory
*              partitions and aligns the memory properly
*              to use modulo addressing. The function
*              memMallocAlignedEM first tries to allocate
*              the memory, properly aligned, from
*              the external memory partition. However,
*              if not enough space exists in the external
*              memory partition to satisfy the dynamic
*              memory allocation, or if the memory request
*              cannot be properly aligned, memMallocAlignedEM
*              then tries the allocation from the internal
*              memory partition. If memMallocAlignedEM

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
三级欧美在线一区| 99久久婷婷国产综合精品电影| 中文字幕国产精品一区二区| 91精品一区二区三区久久久久久 | 欧美日韩一区二区三区四区五区| 国产精品一区二区久激情瑜伽| 日韩电影免费在线看| 亚洲天堂精品视频| 中文字幕巨乱亚洲| 久久午夜羞羞影院免费观看| 日韩精品资源二区在线| 538在线一区二区精品国产| youjizz久久| 国产999精品久久| 国产成人亚洲精品青草天美| 久久精品国产77777蜜臀| 婷婷国产在线综合| 亚洲国产欧美在线| 伊人开心综合网| 亚洲人成在线观看一区二区| 国产精品人妖ts系列视频| 欧美极品少妇xxxxⅹ高跟鞋| 欧美精品一区二区三区在线播放 | 亚洲精品日韩专区silk| 国产精品传媒视频| 亚洲视频免费在线| 亚洲三级在线播放| 国产精品白丝在线| 亚洲同性gay激情无套| 国产精品拍天天在线| 久久精品一区二区| 国产精品理伦片| 亚洲精品伦理在线| 亚洲一区二区三区三| 亚洲国产wwwccc36天堂| 亚洲成人综合视频| 日韩精品国产精品| 精品一区免费av| 国产乱理伦片在线观看夜一区| 国产成人免费视频网站 | 欧美高清性hdvideosex| 欧美丝袜丝交足nylons图片| 欧美日韩mp4| 欧美日韩的一区二区| 日韩欧美另类在线| 亚洲国产精品黑人久久久| 综合久久综合久久| 亚洲国产精品人人做人人爽| 青青草视频一区| 国产综合久久久久久久久久久久| 国产不卡视频在线播放| 99国产欧美另类久久久精品| 99久久国产免费看| 欧美日韩国产高清一区二区 | 日韩欧美视频在线| 国产三级精品三级在线专区| 亚洲精品日产精品乱码不卡| 日韩成人一区二区三区在线观看| 久久国产尿小便嘘嘘尿| 成人性生交大片免费看视频在线| 91免费观看视频在线| 欧美三区在线观看| 这里只有精品99re| 久久久无码精品亚洲日韩按摩| 亚洲啪啪综合av一区二区三区| 爽好久久久欧美精品| 国产99久久久国产精品免费看| 色综合视频一区二区三区高清| 777奇米四色成人影色区| 中文字幕国产一区二区| 日韩在线一二三区| 成人毛片老司机大片| 欧美日韩午夜精品| 国产精品色呦呦| 免费观看在线色综合| 波多野结衣中文字幕一区二区三区| 欧美亚洲综合在线| 国产亚洲女人久久久久毛片| 亚洲午夜一二三区视频| 免费观看久久久4p| 色综合天天综合网天天狠天天| 欧美xxxxxxxx| 一区二区三区中文免费| 国产一区二区三区久久久| 国产91清纯白嫩初高中在线观看 | 日韩视频中午一区| 亚洲欧美另类小说| 国产精品一区二区三区99| 欧美精品色一区二区三区| 中文字幕av一区 二区| 热久久国产精品| 成人一区二区三区在线观看| 欧美日韩国产a| 亚洲午夜电影网| 国产高清视频一区| 日韩一级成人av| 一区二区不卡在线播放 | 制服丝袜亚洲播放| 亚洲丝袜精品丝袜在线| 国产成人免费视频网站 | 亚洲国产一区二区三区| 东方aⅴ免费观看久久av| 日韩一卡二卡三卡四卡| 亚洲一区免费观看| 另类小说视频一区二区| 欧美精品乱码久久久久久| 成人免费一区二区三区视频| 国产精品一级片| 欧美xxxx老人做受| 麻豆成人91精品二区三区| 欧美日韩免费观看一区三区| 亚洲日本乱码在线观看| 不卡的av中国片| 欧美极品xxx| 顶级嫩模精品视频在线看| 久久精品一区四区| 国产福利精品一区二区| 国产午夜精品理论片a级大结局| 韩国成人福利片在线播放| 日韩美女视频在线| 午夜久久久影院| 在线成人免费视频| 亚洲第一福利一区| 欧美日韩国产免费一区二区| 午夜精品一区二区三区免费视频 | 北条麻妃国产九九精品视频| 国产欧美日韩精品在线| 高清在线观看日韩| 国产精品久久久久久亚洲伦| 成人免费高清视频在线观看| 国产精品久久综合| 91视频在线观看免费| 亚洲伦理在线精品| 波多野结衣中文一区| 国产午夜精品一区二区| 高潮精品一区videoshd| 中文字幕日韩一区二区| 91丨porny丨户外露出| 亚洲成a人片在线观看中文| 欧美嫩在线观看| 久久99精品久久久| 国产亚洲精久久久久久| 成人精品电影在线观看| 亚洲精品乱码久久久久久日本蜜臀| 欧美午夜影院一区| 日本特黄久久久高潮| 久久久五月婷婷| 欧美性生活影院| 国产一区二区日韩精品| 亚洲免费av高清| 精品国产免费人成在线观看| 不卡视频免费播放| 日本不卡不码高清免费观看 | 美女网站视频久久| 国产精品青草久久| 欧美一区二区成人6969| 成人av影视在线观看| 日韩国产欧美在线播放| 中文子幕无线码一区tr| 日韩欧美一区二区三区在线| 成人激情开心网| 国产超碰在线一区| 日韩成人伦理电影在线观看| 中文字幕精品综合| 欧美一区日韩一区| 99久久免费视频.com| 久久电影网站中文字幕| 一区二区三区在线播| 久久精品人人爽人人爽| 欧美日韩国产首页| 不卡的av中国片| 激情文学综合丁香| 亚洲h动漫在线| 亚洲欧美一区二区视频| 久久精品在线观看| 日韩一级片网站| 欧美日韩一区高清| 色视频一区二区| 国产99精品国产| 国产美女久久久久| 日韩精彩视频在线观看| 有坂深雪av一区二区精品| 国产日本欧洲亚洲| 日韩美女在线视频| 51精品秘密在线观看| 欧美日韩中文精品| 91亚洲精品久久久蜜桃| 国产一区二区三区国产| 麻豆成人综合网| 婷婷亚洲久悠悠色悠在线播放| 一片黄亚洲嫩模| 亚洲伦理在线免费看| 中文字幕五月欧美| 国产精品久久久久aaaa樱花 | 久久久久久久综合日本| 日韩女优av电影| 欧美一区二区三区视频免费 | 26uuu国产日韩综合| 日韩一区二区在线播放| 91精品国产一区二区三区|