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.

TMS320F280049C: Launchpad GPIO 23 and driverlib

Part Number: TMS320F280049C


Hello everybody , 

I m using led example  in driverlib and working fine . now  I woudl like to blink the red LED attached to GPIO23 .

I would like to use as a example  Driverlib API  to setup ad use GPIO23 ( I woudl like not to mix with std  registers wirte etc ) 

I cannot find any driverlib example on doing this and which API to use :  coudl you help me shoiwng how to get GPIO23 set properlu in DRIVERLIB API ?

regards

Carlo

  • By default GPIO23 is in an analog mode that needs to be turned off before you can use it as a regular output. You can add the following to your GPIO set up.

      GPIO_setAnalogMode(DEVICE_GPIO_PIN_LED2, GPIO_ANALOG_DISABLED);

    Have you also added _LAUNCHXL_F280049C to your predefined symbols so that DEVICE_GPIO_PIN_LED2 is set to 23?

    Whitney