IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


Helper API


Detailed Description

Some miscellaneous helper functions.

Defines

#define initLinkerSymbol(symbol, value)
 Init a linker symbol.
#define PROGATTRIB_FREE4ALL
 Allow write access by other programs.
#define PROGATTRIB_SUPERVISOR
 Execute program's main() task in Supervisor Mode.
#define PROGATTRIB_FEEDBACK
 Pointer to parent program's feedback is available.
#define hostToLE16(x)   (swap16(x))
 Covert 16 bit from host endianess to little endian.
#define hostToLE32(x)   (swap32(x))
 Covert 32 bit from host endianess to little endian.
#define hostToBE16(x)   (x)
 Covert 16 bit from host endianess to big endian.
#define hostToBE32(x)   (x)
 Covert 32 bit from host endianess to big endian.
#define lEToHost16(x)   (swap16(x))
 Covert 16 bit from little endian to host endianess.
#define lEToHost32(x)   (swap32(x))
 Covert 32 bit from little endian to host endianess.
#define bEToHost16(x)   (x)
 Covert 16 bit from big endian to host endianess.
#define bEToHost32(x)   (x)
 Covert 32 bit from big endian to host endianess.
#define setStackSize(size)   initLinkerSymbol(__stack_size, size)
 Specify the main task's stack size.
#define setHeapInitialSize(size)   initLinkerSymbol(__heap_initial_size, size)
 Specify the initial size of the program's heap.
#define setHeapIncrement(size)   initLinkerSymbol(__heap_increment, size)
 Specify quantum amount by which heap grows on reallocation.
#define setProgramAttributes(attributes)   initLinkerSymbol(__prog_attributes, attributes)
 Specify the programs attributes.
#define setSpaceReserve(space)   initLinkerSymbol(__space_reserve, (space * 0x100000))
 Specify total address space to reserve for program.

Functions

static void cacheSync (DWORD start, DWORD stop)
 Synchronize the instruction and data cache.
static void cacheStore (DWORD start, DWORD stop)
 Store the data cache into main memory.
static unsigned int GetMsBitIdx (unsigned int mask)
 Get index of most significant bit set in mask.
static uint16 swap16 (uint16 data)
 Switch the byte endian on provided 16 bit short WORD.
static uint32 swap32 (uint32 data)
 Switch the byte endian on provided 32 bit short WORD.
static int helper_check_license (BYTE id, BYTE *secret, WORD length)
 Check for installed license.
unsigned short helper_clibVersion (void)
 Get version for Beck C library.
void * progParentData (void)
 Retrieve pointer to parent program's data.





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:36 2017 by Doxygen 1.6.1