adi_ports_EnableGPIO
Description
The
adi_ports_EnableGPIO()
registers to enable any number of flag pins for GPIO use.
By default, GPIO use is enabled upon system reset.
Prototype
adi_ports_EnableGPIO (
u32
u32
u32
);
Arguments
Directives
nDirectives
Enable
Return Value
In debug mode, this routine returns one of the following result codes.
Otherwise,
ADI_PORTS_RESULT_SUCCESS
ADI_PORTS_RESULT_SUCCESS
ADI_PORTS_RESULT_NULL_ARRAY
ADI_PORTS_RESULT_BAD_DIRECTIVE
ADI_PORTS_RESULT_PIN_ALREADY_IN_USE
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
function configures the port control
Address of an array of directives describing which pins are configured for
GPIO use. See
"Directive Enumeration Values" on page
Number of entries in
Directives
Flag determining whether the functionality is enabled (1) or disabled (0)
Port Control Service
*Directives,
nDirectives,
Enable
array
is always returned.
Function completed successfully.
Address of the
Directives
Invalid directive value has been passed.
One of the required pins has already been
assigned a different functionality.
9-17)\.
array is NULL.
9-15
Need help?
Do you have a question about the VisualDSP++ 5.0 and is the answer not in the manual?