aboutsummaryrefslogtreecommitdiffstats
path: root/doc/using/Synthesis.rst
Commit message (Expand)AuthorAgeFilesLines
* doc: update links to Yosys website (#2069)Xiretza2022-05-311-4/+4
* doc: document --out=verilog for synthTristan Gingold2021-04-281-3/+6
* doc: style, use 'file...' consistentlyumarcor2021-04-221-1/+1
* doc: style, use '[options...]' consistentlyumarcor2021-04-221-3/+3
* doc/synth: clarify that we need '-e' for resolving the ambiguity between a un...umarcor2021-04-221-13/+21
* doc: add/rename '[library.]top_unit [arch]', style (849a25e0)umarcor2021-04-221-34/+37
* doc/using: document synth option '--out' (#1705)Unai Martinez-Corral2021-03-311-7/+26
* doc/using/Synthesis: styleumarcor2021-01-161-16/+16
* synth: add option to treat asserts as assumes and vice-versatmeissner2021-01-021-1/+28
* doc: add 'Convert (V)HDL to other formats'eine2020-10-091-21/+72
* doc: fix pastoeine2020-10-081-1/+1
* doc: fix refs in 'Synthesis options'eine2020-10-081-3/+4
* Synth doc: add infos about synth specific options, related to 667ab51tmeissner2020-10-071-0/+44
* doc: document synthesis/translate pragmaseine2020-07-191-0/+11
* doc: split 'Interfacing to other languages' to ghdl/ghdl-cosim (#1216)umarcor2020-04-141-1/+1
* update doc (synth, overview, generics, etc.) (#1205)umarcor2020-04-101-0/+67
.highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/*
 * This file is subject to the terms of the GFX License. If a copy of
 * the license was not distributed with this file, you can obtain one at:
 *
 *              http://ugfx.org/license.html
 */

#ifndef _GOS_X_HEAP_H
#define _GOS_X_HEAP_H

#if GOS_NEED_X_HEAP || defined(__DOXYGEN__)

/*===========================================================================*/
/* Type definitions                                                          */
/*===========================================================================*/

#ifdef __cplusplus
extern "C" {
#endif

	#if GFX_OS_HEAP_SIZE != 0 || defined(__DOXYGEN__)
		/**
		 * @brief	Take a chunk of memory and add it to the available heap
		 * @note	Memory added must obviously not already be on the heap.
		 * @note	It is allowable to add multiple non-contiguous blocks of memory
		 * 			to the heap. If however it is contiguous with a previously added block
		 * 			it will get merged with the existing block in order to allow
		 * 			allocations that span the boundary.
		 * @pre		GFX_OS_HEAP_SIZE != 0 and an operating system that uses the
		 * 			internal ugfx heap allocator rather than its own allocator.
		 */
		void gfxAddHeapBlock(void *ptr, size_t sz);
	#endif

	void *gfxAlloc(size_t sz);
	void *gfxRealloc(void *ptr, size_t oldsz, size_t newsz);
	void gfxFree(void *ptr);

#ifdef __cplusplus
}
#endif

#endif /* GOS_NEED_X_HEAP */
#endif /* _GOS_X_HEAP_H */