// ***************** dsp_risc_caller.h ********************************* // Risc-Dsp runtime library // // This file implements interface for dsp callback to risc // Use id in the range from 0 to 31 // // (c) multicore.ru // // ********************************************************************* #ifndef _RISC_DSP_CALLBACK_ #define _RISC_DSP_CALLBACK_H_ #ifdef __cplusplus extern "C" { #endif #include #include "risc_interrupt.h" #include "nvcom_01.h" typedef void( *RISC_CALLBACK )(void); #define UNKNOWN_CALLBACK ((RISC_CALLBACK)(-1)) // Function: risc_register_callback // // Register risc callback function by id // // Parameters: // id - id number of callback // func - handler of callback // // Returns: // ERL_ERROR - status of error (from enum ERL_ERROR) // // Examples: // > risc_register_callback(4, callback_func_4); // // See also: // // risc_register_interrupt // enum ERL_ERROR risc_register_callback(int id, RISC_CALLBACK func); #ifdef __cplusplus } #endif #endif // _RISC_DSP_CALLBACK_