/*----------------------------------------------------------------------------
 * EAS_HWShutdown
 *
 * Shut down host wrapper interface
 *
 *----------------------------------------------------------------------------
*/
EAS_RESULT EAS_HWShutdown (EAS_HW_DATA_HANDLE hwInstData)
{

    /* simulate failure */
    if (errorConditions[eShutdownError])
        return EAS_FAILURE;

    free(hwInstData);

#if defined(_DEBUG) && !defined(MSC)
    HeapCheck();
#endif

    return EAS_SUCCESS;
}
Exemple #2
0
// void ArraySetFloatValue(tHeapId id, tVmInt index, tVmFloat value)
//
// Store a value in the array
//
// Args:
//  tHeapId id - id of array
//  tVmInt index - index of target element
//  tVmFloat value - value to store
// Returns:
//  nothing 
void ArraySetFloatValue(tHeapId id, tVmInt index, tVmFloat value) 
{
	tVmFloat   * ptr = (tVmFloat  *)((uint8_t*)HeapGetAddress(id) + 1);
	ptr[index] = value;
	HeapCheck();
}