Initialization - Analog Devices VisualDSP++ 5.0 Service Manual

Visualdsp++ 5.0 device drivers and system for blackfin processors
Table of Contents

Advertisement

Operation
return an error code. In practice, this error code should be checked to
ensure the function completed successfully. For the purposes of this exam-
ple only, the return value is not checked.

Initialization

Prior to using the flag service, it must be initialized. The following
fragment initializes the service and provides the service with memory for
one callback function.
static u8 FlagServiceData[ADI_FLAG_CALLBACK_MEMORY * 1];
ADI_FLAG_RESULT Result;
u32 ResponseCount;
Result = adi_flag_Init(FlagServiceData, sizeof(FlagServiceData),
Upon completing this function, the flag service is initialized and is ready
for use.
7-10
// memory for service
// return value
// number of callbacks supported
&ResponseCount, NULL);
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VisualDSP++ 5.0 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents