We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 19978

6.3 EDK - GCC issues the following error when I use GPIO version 2.00.a: "source.c:165: macro `XGpio_mSetDataDirection' used with only 2 args"


Keywords: EDK, GCC, GNU, GPIO, gpio.c, XGpio_mSetDataReg

Urgency: Standard

General Description:
Compiling source code which utilizes the XGpio_mSetDataDirection or XGpio_mSetDataReg can result in the following error:

"Calculator_App/src/calc_main.c:165: macro `XGpio_mSetDataDirection' used with only 2 args
Calculator_App/src/calc_main.c:169: macro `XGpio_mSetDataReg' used with only 2 args
Calculator_App/src/calc_main.c:367: macro `XGpio_mSetDataReg' used with only 2 args"


The following is an explanation of the XGpio_mSetDataDirection function.

* Set the input/output direction of all discrete signals for the specified
* GPIO channel.
* @param InstancePtr is a pointer to an XGpio instance to be worked on.
* @param Channel contains the channel of the GPIO (1 or 2) to operate on.
* @param DirectionMask is a bitmask specifying which discretes are input and
* which are output. Bits set to 0 are output and bits set to 1 are input.
* @return
* None.
* @note
* The hardware must be built for dual channels if this function is used
* with any channel other than 1. If it is not, this function will assert.
void XGpio_SetDataDirection(XGpio *InstancePtr, unsigned Channel, Xuint32 DirectionMask);

AR# 19978
Date 04/11/2007
Status Archive
Type General Article
Page Bookmarked