MityDSP Documentation Index

e:/hudson/workspace/MityDSP MDK Release/trunk/sw/src/core/DspFirmware.cpp File Reference

#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <std.h>
#include <tsk.h>
#include <c62.h>
#include <c6x.h>
#include <hwi.h>
#include <sem.h>
#include "core/DspError.h"
#include "core/DspFirmware.h"

Defines

#define VENA_MAGIC   0x80000000
 Magic number to tell firmware we know about vector interrupt masks.

Functions

void cpu_load_hook_function (TSK_Handle ahOld, TSK_Handle ahNew)
 This is a callback function for a task switch.

Define Documentation

#define VENA_MAGIC   0x80000000

Magic number to tell firmware we know about vector interrupt masks.


Function Documentation

void cpu_load_hook_function ( TSK_Handle  ahOld,
TSK_Handle  ahNew 
)

This is a callback function for a task switch.

It is used to light the MityDSP LED's to indicate CPU load. With a MityDSP-Pro, one LED will be fully on when the CPU is idle, the other will be fully on when the CPU is busy, and they will be somewhere inbetween based on load. For a standard MityDSP, only the busy LED exists.

Note:
In order to work, this function must be installed as a "switch function" with the Module Hook Manager in the DSP/BIOS configuration file.
Parameters:
[in] ahOld The thread being swithched out.
[in] ahNew The thread being swithched in.
Returns:
None.

  
Generated on Fri Sep 23 16:33:44 2011 for MityDSP Core by  Doxygen Version 1.6.1
Copyright © 2009, Critical Link LLC, All rights reserved.