Heap Management Routines

Applications, examples, and sample programs using products from Comfile Technology

Heap Management Routines

Postby rhoward99 » Thu Feb 05, 2009 3:19 pm

Edited 09FEB09.

These routines greatly simplify access to either heap (on processors that support a heap) or eeprom storage.

Selected Subroutines:

Read/WriteHeapByte
Read/WriteHeapInteger
Read/WriteHeapSingle
Read/WriteHeapString

The included test program demonstrates the usage of the functions. See the comment block in HeapDefs.inc for memory type selection.

I have only tested these routines on a CuTouch, which doesn't support heap memory, so I can't guarantee that they will work unmodified on any other processor.

Before using any of the other routines, make sure to start with InitializeHeap (restores current heap values) or ResetHeap (completely resets the heap).

If you find any bugs, or make any cool modifications, please re-post the source.

Rick
Attachments
HeapMgmt.zip
Heap Management Routines
(6.39 KiB) Downloaded 856 times
rhoward99
Terminator
 
Posts: 9
Joined: Wed Jan 21, 2009 9:27 am

Return to Applications and Examples

Who is online

Users browsing this forum: No registered users and 2 guests

cron