DSPRelated.com
Forums

How to use GPIO?

Started by Jonathan November 11, 2004
Does anyone have more information about GPIO? How to use it?
(The TI's documents spru401g.pdf and spru584.pdf do not explain clearly.)
Thank you.



Hello Jonathan,

Take a look at:

// Include:
#include <csl_gpio.h>
// Variable:
GPIO_Handle hGpio;
// somewhere in your main:
unsigned b=0;

 hGpio = GPIO_open(GPIO_DEV0,GPIO_OPEN_RESET);
 GPIO_pinEnable(hGpio,GPIO_PIN0);
 GPIO_pinDirection(hGpio, GPIO_PIN0,GPIO_OUTPUT);

GPIO_pinWrite(hGpio,GPIO_PIN0,b);

            That should help,
                                Regards Wolfgang

"Jonathan" <jonathan_lin@camels.com.tw> schrieb im Newsbeitrag news:cn10r0$454$1@netnews.hinet.net...
> Does anyone have more information about GPIO? How to use it? > (The TI's documents spru401g.pdf and spru584.pdf do not explain clearly.) > Thank you. > > >