Analog Devices VisualDSP++ 5.0 Service Manual page 382

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

Advertisement

Using the Port Control Manager
{ ADI_PPI_CMD_SET_LINES_PER_FRAME_REG,
(void*)(*(u16*)&ppi_frame)},
{ ADI_DEV_CMD_END, 0 }
};
// Program PPI peripheral
adi_dev_Control(
ppiHandle,
ADI_DEV_CMD_TABLE,
(void*)PPI_config );
// other configuration code for PPI, eg Timers, etc
// The following would be elsewhere in the client code
// Configure pins for PPI use
u32 ppi_config[] = { ADI_PORTS_DIR_PPI_BASE };
adi_ports_EnablePPI(
ppi_config,
sizeof(ppi_config)/sizeof(u32),
1
);
// Enable Data Flow
adi_dev_Control(ppiHandle, ADI_DEV_CMD_SET_DATAFLOW, 1);
Finally, when the port control manager is no longer required, the service is
terminated with a call to a
adi_ports_Terminate();
9-4
di_ports_Terminate3
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
:
// Array of directives
// Number of directives
// Enable
:

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?

Table of Contents