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 pullup set up

Other Parts Discussed in Thread: CONTROLSUITE

Hello Lori:

Is there an example of how toe configure GPIO with Pull up or pull down. I know there is a gpiopur register but somehow from all the literature I can't figure out what to do.

Best Regards Arye

  • Hello!

    You can refer to files ti\controlSUITE\device_support\f28m35x\v201\MWare\driverlib\gpio.h:

    #define GPIO_PIN_TYPE_STD 0x00000008 // Push-pull
    #define GPIO_PIN_TYPE_STD_WPU 0x0000000A // Push-pull with weak pull-up
    #define GPIO_PIN_TYPE_OD 0x00000009 // Open-drain
    #define GPIO_PIN_TYPE_OD_WPU 0x0000000B // Open-drain with weak pull-up

    and gpio.c (the function GPIOPadConfigSet).

    Regards,

    Igor