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.

GPIO Functions



Dears,

Please Do you have an example of using these functions ?

void gpioSetOutput(uint32_t uiNumber);
void gpioClearOutput(uint32_t uiNumber);
uint32_t gpioReadInput(uint32_t uiNumber);

void gpioWriteDataBus(uint8_t uchValue);

uint8_t gpioReadDataBus(void);

Thanks in advance.

  • Hi Maha,

    Thanks for the post. Welcome to e2e forum. Always provide your DSP part number and packages used and its versions to support you better.

    Thanks.

  • Hi,

    What device are you using? I suppose it's one of the C66x.

    I think that there's not examples, but if you look at:

    PDK_C66xxxx_DIR/packages/ti/platform/evmc66xxl/platform_lib/src

    You will find a file called evmc66xx_gpio.c, there you will find the functions definitions. Those functions use the gpio functions defined in PDK_C66xxxx_DIR/packages/ti/csl/csl_gpioAux.h. There are examples for the functions defined in csl_gpioAux.h in the doxygen comments of the functions.

    Regards

    J

  • Dear Rajasekaran K ,

     

    Thank you a lot. 

    I'm using TMS320C6670 Evaluation Module DSP and Code Composer Studio Version 5

     

    Sincerely,

    Maha

     

     

  • Dear Johannes ,

    Yes you are right I'm using C6670

    Actually I used the functions defined in the csl_gpioAux.h based on the examples in the doxygen comments of the functions.

    So I want to make sure that there is no examples provided for the functions in this file evmc66xx_gpio.c Because I was searching a lot in order to find an examples.

    Thank you very much you helped me a lot .

    Sincerely,

    Maha