Hello:
be
using the program IPNC, with
microprocessor dm365.
I have a problem to enable the GPIO pin.I
use this example, which I
have found.
int DRV_SetLED25(Bool enable)
{
int status, value32,estado;
static int gpioflag = 0;
if (gpioflag == 0){
status = CSL_gpioGetPinmux(&gCSL_gpioHndl, 3, &value32);
if (status==OSA_SOK) {
value32 &= ~(3<<29); // enable GPIO 25
status=CSL_gpioSetPinmux(&gCSL_gpioHndl, 3, value32);
}
DRV_gpioSetMode(25, DRV_GPIO_DIR_OUT);
gpioflag ++;
}
if (enable==0){
DRV_gpioClr(25);
printf("--- Apagamos LED..\n");
}
else {
DRV_gpioSet(25);
printf("--- Encendemos LED..\n");
}
return 0;
}
The problem
is that only work for
the pin GPIO25.
Anyone
know how it works? I do not
understand the operation (value32 &
= ~ (3 <<29), /
/ enable GPIO 25)
Someone
know how to use this feature
to activate any GPIO pin?
Thanks