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.

LAUNCHXL-F280049C: Can find docs for Driverlib comands. Are they Driverlib comands, by the way?

Part Number: LAUNCHXL-F280049C
Other Parts Discussed in Thread: C2000WARE

Hi all

I´m just a beginer, so please, forgive me if  this if too naive.

Afther playing with the "led_ex1_blinky.c" Led blicky example i tried to dive in to the manuals and learn the ropes. But to my surprise I Can't find any help in the literature.on:

GPIO_SetupPinMux, GPIO_SetupPinOptions, 

I tried at F28004x Peripheral Driver Library 2.01.00.00 User guide and at TMS320F28004x Microcontrollers Technical Reference Manual.

What I´m doing wrong??

Thanx in advance.

JCB

  • Hi,

    You can find source code for these functions in file:

    C2000Ware_2_01_00_00\device_support\f28004x\common\source\f28004x_gpio.c

  • Hi, 

    I'm quite confused. I spected to find info on proper documentation (pdf) not in examples. Still can´t find all the setings (GPIO_SetupPinOptions(DEVICE_GPIO_PIN_LED1, GPIO_OUTPUT, GPIO_PUSHPULL)

    I have some questions:

    Is this driverlib?

    What is the diference of this way of configuring (GPIO_SetupPinMux, GPIO_SetupPinOptions) and the "GPIO_setPinConfig(), GPIO_setPadConfig(), GPIO_setDirectionMode()" way of setting pins?

    Wich way should I go taking in count that down the road I will need to configure 2 quadrature encoders?

    Thanx

    JCB

  • Hi,

    For new design, you should use driverlib.

    There is a gpio example in driverlib. You should follow that.

    C2000Ware_2_01_00_00\driverlib\f28004x\examples\gpio