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

📄 osmodule_memorymanagement.c

📁 Nand Flash Translation Layer 用于nandflash的操作。 bad block memory map garbage collection average er
💻 C
字号:
//#define SYMBIAN
//#define LINUX
//#define STAND_ALONE
#define NUCLUES

#include "drivermmiif.h"
#include "driverosif.h"
#include "OSModule_MemoryManagement.h"


/*
void * OS_Malloc(int size)
{
#ifdef SYMBIAN
#endif

#ifdef NUCLUES
	return(OS_DRIVER_Malloc(size)) ;
#endif

#ifdef STAND_ALONE
	return malloc(size);
#endif
}

void OS_Free(void *pointer)
{
	if (pointer == NULL)
	{
		return;
	}
#ifdef SYMBIAN
#endif

#ifdef NUCLUES
	OS_DRIVER_Free(pointer);
#endif

#ifdef STAND_ALONE
	free(pointer);
#endif		
}
*/

void OS_MemCopy(void *destination, void *source, int size)
{
#ifdef SYMBIAN
#endif

#ifdef NUCLUES
	memcpy(destination,source,size);
#endif

#ifdef STAND_ALONE
	memcpy(destination,source,size);
#endif
}

void OS_MemSet(void *destination, unsigned char value, int size)
{
#ifdef SYMBIAN
#endif

#ifdef NUCLUES
	memset(destination,value,size);
#endif

#ifdef STAND_ALONE
	memset(destination,value,size);
#endif
}

char * OS_SearchString(void *string, void *searchString)
{
#ifdef SYMBIAN
#endif

#ifdef NUCLUES
	return strstr(string,searchString);
#endif

#ifdef STAND_ALONE
	return strstr(string,searchString);
#endif
}

⌨️ 快捷键说明

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