This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Configure LCD pin no 7 as GPIO output pin ?

hello everyone.

I am trying to configure GP7P3 (bank 7 pin 3) as output pin by make some changes on PSP bios  "gpio_sample" example, the changes i have made is as follows :

File name : gpiosample_main.c

==========================

Gpio_Handle gpio0;

#define GPIO_BANK_7 7u // Bank 7 pin 3

Void main (Void)
{
Gpio_Params gpioParams;

/* update the gpio parameters to our needs */
gpioParams.instNum = 0;
gpioParams.BankParams[GPIO_BANK_7].inUse = Gpio_InUse_No;
gpioParams.BankParams[GPIO_BANK_7].PinConfInfo[3].inUse = Gpio_InUse_No;

/* open the GPIO driver to get a handle to it */
gpio0 = Gpio_open(&gpioParams);
/* power on the GPIO device in the Power sleep controller */

Psc_ModuleClkCtrl((Psc_DevId)CSL_LPSC_INST_GPIO_0, CSL_PSC_GPIO, TRUE);

BIOS_start();

return;
}

File name: gpiosample_io.c

======================

/* ========================================================================== */
/* MACRO DEFINITIONS */
/* ========================================================================== */

#define GPIO_BANK_7 7u  /* BANK 7 */
#define GPIO7_3_PIN 116u  /* This is the Pin Number for
                                                        * the 0th pin of GPIO bank 4 */

/* ========================================================================== */
/* GLOBAL VARIABLES */
/* ========================================================================== */

extern Gpio_Handle gpio0;
volatile Int32 flag = 0;

/* ========================================================================== */

/* FUNCTION DEFINITIONS */
/* ========================================================================== */


Void gpioExampleTask(UArg arg1, UArg arg2)
{
Gpio_PinCmdArg pinCmdArg;
// Gpio_IntrCmdArg intrCmdArg;
Error_Block eb;

Error_init(&eb);

/* Call the EVM specific intialization function */
configureGpio();

/* Configure GPIO(GPIO7_3_PIN) as an output */
pinCmdArg.pin = GPIO7_3_PIN;
pinCmdArg.value = Gpio_Direction_Output;
Gpio_setPinDir(gpio0, &pinCmdArg);

while (0 == flag)
{

Task_sleep(2000);
pinCmdArg.value = 0; //0
Gpio_setPinVal(gpio0,&pinCmdArg);
printf("output 0 \n");
Task_sleep(2000);
pinCmdArg.value = 1; //1
Gpio_setPinVal(gpio0,&pinCmdArg);

printf("output 1 \n");

}

}

A platform library named "bios_psp_platform_evm6748.a674" is used .

And change must be made to "gpio_evmInit.c"  so that enable GPIO for bank 7 (PINMUX17)  , how could i make changes in this file then rebuild library so that i can use it .

Thanks in advance.