________________________________
From: c... [mailto:c...] On Behalf
Of m...@yahoo.com
Sent: Wednesday, February 20, 2008 12:32 PM
To: c...
Subject: [c6x] gpio init
Hi all,
I am working with MATLAB/Simlink Embedded Target for C6000 to
try and
prgoram my C6713 DSP but would like to know how to program my
GPIO
pins? please give me some basics to point me in the right
direction.
Thanks
Maryam
Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video
Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467
Reply by "Tommy S. Hancock"●February 25, 20082008-02-25
I use the below code on our company's 6412 board. Board has a PCI interface
and the two GPIO interrupts below, GPIO_PIN4 and GPIO_PIN5, are use as
interrupts from two high capacity FIFO UARTs.
These bits are assigned interrupt processors in the .cdb. The other GPIO_PINs
are used in development.
// Set up general input pins for interrupts.
hGpio = GPIO_open(GPIO_DEV0,GPIO_OPEN_RESET);
/* Enables pins */
GPIO_pinEnable (hGpio,GPIO_PIN0| GPIO_PIN1 | GPIO_PIN2 | GPIO_PIN4 | GPIO_PIN5
);
/* Sets Pin0, Pin1, and Pin2 as an output pins. */
Current_dir = GPIO_pinDirection(hGpio,GPIO_PIN0, GPIO_OUTPUT);
Current_dir = GPIO_pinDirection(hGpio,GPIO_PIN1, GPIO_OUTPUT);
Current_dir = GPIO_pinDirection(hGpio,GPIO_PIN2, GPIO_OUTPUT);
Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video
Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467
Reply by "Maitriya, Thiyana (IE10)"●February 22, 20082008-02-22
Hi,
I have provided u below a sample code from TI for C6000 application to
configure the GPIO pins, u can modify for ur program.
/* Global Declaration */
GPIO_Handle myGPIO_handle; /* GPIO handle */
Then u need configure the GPIO pins
GPIO_Config MyConfig = { 0x00000000, /* gpgc */
0x00000000, /* gpen --
0x00000000, /* gdir -
0x00000000, /* gpval */
0x00000000, /* gphm all interrupts disabled for io pins */
0x00000000, /* gplm all interrupts to cpu or edma disabled */
From: c... [mailto:c...] On Behalf Of
m...@yahoo.com
Sent: Wednesday, February 20, 2008 12:32 PM
To: c...
Subject: [c6x] gpio init
Hi all,
I am working with MATLAB/Simlink Embedded Target for C6000 to try and
prgoram my C6713 DSP but would like to know how to program my GPIO
pins? please give me some basics to point me in the right
direction.
Thanks
Maryam
Reply by msha...@yahoo.com●February 20, 20082008-02-20
Hi all,
I am working with MATLAB/Simlink Embedded Target for C6000 to try and
prgoram my C6713 DSP but would like to know how to program my GPIO
pins? please give me some basics to point me in the right
direction.
Thanks
Maryam
Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video
Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467