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

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

?? heap_1.c

?? freertosV4.40 是一種small的嵌入式系統(tǒng)。利于嵌入式開好者入門學(xué)習(xí)嵌入式操作系統(tǒng)。通過對于源碼的學(xué)習(xí)可以很好的掌握freertos的運行機制。
?? C
字號:
/*
	FreeRTOS.org V4.4.0 - Copyright (C) 2003-2007 Richard Barry.

	This file is part of the FreeRTOS.org distribution.

	FreeRTOS.org is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation; either version 2 of the License, or
	(at your option) any later version.

	FreeRTOS.org is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with FreeRTOS.org; if not, write to the Free Software
	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

	A special exception to the GPL can be applied should you wish to distribute
	a combined work that includes FreeRTOS.org, without being obliged to provide
	the source code for any proprietary components.  See the licensing section 
	of http://www.FreeRTOS.org for full details of how and when the exception
	can be applied.

	***************************************************************************
	See http://www.FreeRTOS.org for documentation, latest information, license 
	and contact details.  Please ensure to read the configuration and relevant 
	port sections of the online documentation.

	Also see http://www.SafeRTOS.com for an IEC 61508 compliant version along
	with commercial development and support options.
	***************************************************************************
*/

/* 

Changes between V2.5.1 and V2.5.1

	+ The memory pool has been defined within a struct to ensure correct memory
	  alignment on 32bit systems.

Changes between V2.6.1 and V3.0.0

	+ An overflow check has been added to ensure the next free byte variable 
	  does not wrap around.
*/


/*
 * The simplest possible implementation of pvPortMalloc().  Note that this
 * implementation does NOT allow allocated memory to be freed again.
 *
 * See heap_2.c and heap_3.c for alternative implementations, and the memory
 * management pages of http://www.FreeRTOS.org for more information.
 */
#include <stdlib.h>
#include "FreeRTOS.h"
#include "task.h"

/* Setup the correct byte alignment mask for the defined byte alignment. */

#if portBYTE_ALIGNMENT == 8
	#define heapBYTE_ALIGNMENT_MASK ( ( size_t ) 0x0007 )
#endif

#if portBYTE_ALIGNMENT == 4
	#define heapBYTE_ALIGNMENT_MASK	( ( size_t ) 0x0003 )
#endif

#if portBYTE_ALIGNMENT == 2
	#define heapBYTE_ALIGNMENT_MASK	( ( size_t ) 0x0001 )
#endif

#if portBYTE_ALIGNMENT == 1 
	#define heapBYTE_ALIGNMENT_MASK	( ( size_t ) 0x0000 )
#endif

#ifndef heapBYTE_ALIGNMENT_MASK
	#error "Invalid portBYTE_ALIGNMENT definition"
#endif

/* Allocate the memory for the heap.  The struct is used to force byte
alignment without using any non-portable code. */
static struct xRTOS_HEAP
{
	unsigned portLONG ulDummy;
	unsigned portCHAR ucHeap[ configTOTAL_HEAP_SIZE ];
} xHeap;

static size_t xNextFreeByte = ( size_t ) 0;
/*-----------------------------------------------------------*/

void *pvPortMalloc( size_t xWantedSize )
{
void *pvReturn = NULL; 

	/* Ensure that blocks are always aligned to the required number of bytes. */
	#if portBYTE_ALIGNMENT != 1
		if( xWantedSize & heapBYTE_ALIGNMENT_MASK )
		{
			/* Byte alignment required. */
			xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & heapBYTE_ALIGNMENT_MASK ) );
		}
	#endif

	vTaskSuspendAll();
	{
		/* Check there is enough room left for the allocation. */
		if( ( ( xNextFreeByte + xWantedSize ) < configTOTAL_HEAP_SIZE ) &&
			( ( xNextFreeByte + xWantedSize ) > xNextFreeByte )	)/* Check for overflow. */
		{
			/* Return the next free byte then increment the index past this
			block. */
			pvReturn = &( xHeap.ucHeap[ xNextFreeByte ] );
			xNextFreeByte += xWantedSize;			
		}	
	}
	xTaskResumeAll();

	return pvReturn;
}
/*-----------------------------------------------------------*/

void vPortFree( void *pv )
{
	/* Memory cannot be freed using this scheme.  See heap_2.c and heap_3.c 
	for alternative implementations, and the memory management pages of 
	http://www.FreeRTOS.org for more information. */
	( void ) pv;
}
/*-----------------------------------------------------------*/

void vPortInitialiseBlocks( void )
{
	/* Only required when static memory is not cleared. */
	xNextFreeByte = ( size_t ) 0;
}


?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美系列在线观看| 成人欧美一区二区三区小说| 国产精品美女久久久久久久网站| 亚洲欧美在线视频| 久88久久88久久久| 欧美在线观看18| 久久精品视频在线免费观看| 一区二区三区av电影| 国产一区二区调教| 欧美日韩国产在线播放网站| 国产精品美女视频| 国产一区在线视频| 91麻豆精品国产91久久久久久 | 青青草精品视频| 91麻豆自制传媒国产之光| 久久久久国产精品麻豆| 日本中文在线一区| 欧美视频第二页| 亚洲欧美怡红院| 成人av电影观看| 欧美国产欧美综合| 高清国产一区二区| 久久精品人人爽人人爽| 久久成人精品无人区| 欧美二区在线观看| 亚洲成人激情社区| 欧美日韩在线播放| 亚洲国产色一区| 欧美日韩一级视频| 亚洲二区在线视频| 欧美卡1卡2卡| 香蕉加勒比综合久久| 欧美日韩成人高清| 日韩黄色在线观看| 制服丝袜中文字幕一区| 亚洲成a人v欧美综合天堂下载| 色八戒一区二区三区| 亚洲精品一二三四区| 欧美专区日韩专区| 天堂资源在线中文精品| 91精品一区二区三区久久久久久| 青青青伊人色综合久久| 2014亚洲片线观看视频免费| 国产成人精品网址| 亚洲视频在线观看三级| 欧美日本在线播放| 久久er99热精品一区二区| 2019国产精品| 97超碰欧美中文字幕| 一区二区三区精品在线观看| 欧美蜜桃一区二区三区| 精品一二三四区| 国产性天天综合网| 在线观看网站黄不卡| 美女网站在线免费欧美精品| 久久精品亚洲精品国产欧美 | 在线不卡免费欧美| 蜜臀91精品一区二区三区| 久久在线观看免费| 不卡的电影网站| 三级不卡在线观看| 久久这里只精品最新地址| 99re视频这里只有精品| 日韩中文字幕亚洲一区二区va在线| 26uuu久久天堂性欧美| 成人高清av在线| 日本aⅴ亚洲精品中文乱码| 久久久久久久久蜜桃| 欧美优质美女网站| 黄色资源网久久资源365| 中文字幕日韩精品一区 | www.66久久| 欧美aaa在线| 中文字幕一区二区三区不卡| 欧美人与z0zoxxxx视频| 成人av资源在线观看| 日韩国产欧美三级| 亚洲欧美一区二区不卡| 精品国产3级a| 在线观看不卡一区| 国产a级毛片一区| 日本美女视频一区二区| 亚洲欧洲韩国日本视频| 日韩欧美一级在线播放| 欧美亚洲自拍偷拍| 成人精品一区二区三区中文字幕| 日本aⅴ亚洲精品中文乱码| 综合亚洲深深色噜噜狠狠网站| 欧美不卡123| 在线电影欧美成精品| 99久久精品免费看国产免费软件| 久久精品久久99精品久久| 亚洲午夜私人影院| 亚洲三级电影全部在线观看高清| 精品国产在天天线2019| 欧美性猛交xxxxxxxx| 99精品视频在线观看| 处破女av一区二区| 国产精品一线二线三线精华| 轻轻草成人在线| 日韩av一区二区三区| 亚洲午夜电影在线观看| 亚洲激情中文1区| 亚洲特级片在线| 日韩美女啊v在线免费观看| 国产喷白浆一区二区三区| 欧美videossexotv100| 日韩亚洲国产中文字幕欧美| 在线电影院国产精品| 制服丝袜中文字幕一区| 欧美一区二区三区免费观看视频| 欧美日韩在线三级| 欧美浪妇xxxx高跟鞋交| 欧美高清激情brazzers| 欧美日韩国产在线观看| 欧美久久一二区| 欧美一区国产二区| 日韩免费视频一区二区| 欧美v日韩v国产v| 国产三级欧美三级| 国产目拍亚洲精品99久久精品| 国产农村妇女毛片精品久久麻豆 | 97久久精品人人做人人爽| 99国产精品99久久久久久| 91老师国产黑色丝袜在线| 色88888久久久久久影院野外| 在线日韩av片| 欧美日韩黄视频| 精品久久国产老人久久综合| 2020日本不卡一区二区视频| 国产精品色噜噜| 一区二区三区91| 免费三级欧美电影| 国产一二三精品| 91麻豆免费看片| 欧美电影在线免费观看| 久久日韩精品一区二区五区| 国产精品免费人成网站| 亚洲黄色录像片| 精品一区二区影视| 99在线精品视频| 在线不卡一区二区| 国产日韩精品久久久| 亚洲精品老司机| 男女男精品视频网| 懂色一区二区三区免费观看| 色视频欧美一区二区三区| 欧美精品在线一区二区三区| 久久久久99精品国产片| 亚洲日本乱码在线观看| 青青草国产成人99久久| 成人午夜av影视| 欧美视频一区二| 久久久久久久国产精品影院| 一区二区三区四区高清精品免费观看| 五月婷婷综合网| 国产成人av一区二区三区在线| 色综合久久88色综合天天| 精品美女被调教视频大全网站| 国产精品美女视频| 蜜臀av一区二区在线免费观看| www.日韩在线| 精品国产污网站| 亚洲午夜免费电影| 成人激情校园春色| 精品免费日韩av| 亚洲一区二区三区四区五区黄 | 国产精品麻豆欧美日韩ww| 五月婷婷激情综合网| 国产99久久久国产精品免费看| 欧美午夜精品理论片a级按摩| 久久亚洲综合色一区二区三区| 亚洲欧美日韩综合aⅴ视频| 国产曰批免费观看久久久| 91麻豆精品国产自产在线 | 婷婷久久综合九色国产成人| 成人毛片在线观看| 日韩情涩欧美日韩视频| 亚洲午夜三级在线| 91网站在线观看视频| 中文一区二区完整视频在线观看| 免费不卡在线视频| 欧美日韩精品是欧美日韩精品| 亚洲欧洲日韩女同| 国产成人免费视| 久久久精品国产免费观看同学| 视频在线观看一区二区三区| 日本精品视频一区二区| 亚洲欧洲日韩av| 不卡的av网站| 中文字幕综合网| 一本久久综合亚洲鲁鲁五月天| 中文字幕不卡在线| 成人国产在线观看| 国产精品系列在线| 成人黄色软件下载| 亚洲视频免费观看| 色综合久久久久综合体| 亚洲男人的天堂在线aⅴ视频| 色悠悠久久综合|