Hello, I have some quires regarding Dynamic Memory Allocation in UCOS-II. 1. Is there any interface/call in UCOS-II which is equivalent to standard malloc and free. 2. What is OSMemGet in UCOS-II. Thanks, Gopu.S
UCOS-II and Dynamic Memory Allocation.
Started by ●January 9, 2009
Reply by ●January 9, 20092009-01-09
vskgopu wrote:> Hello, > I have some quires regarding Dynamic Memory Allocation in > UCOS-II. > 1. Is there any interface/call in UCOS-II which is > equivalent to standard malloc and free. > 2. What is OSMemGet in UCOS-II. > > Thanks, > Gopu.SuCOS does not support dynamic memory allocation. It has a block oriented memory feature which includes the OSMemGet function you mention. Before using OSMemGet you must configure and create the memory blocks. See the information in the uCOS-II-RefMan.pdf delivered with the code from Micrium, available on the web site. For more detailed information get a copy of Jean Labrosse's book MicroC/OS-II The Real Time Kernel. About $70 from Amazon, etc. -- Scott Validated Software Lafayette, CO