MityDSP Documentation Index
Macros | Functions
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"

Macros

#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.

Macro Definition 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]ahOldThe thread being swithched out.
[in]ahNewThe thread being swithched in.
Returns:
None.

  
Generated on Mon Apr 22 2013 11:33:02 for MityDSP Core by  Doxygen Version 1.8.1.1
Copyright © 2009, Critical Link LLC, All rights reserved.