Skip to main content
relaxe
Associate III
November 18, 2008
Question

Pull-up/down on Output pins?

  • November 18, 2008
  • 1 reply
  • 551 views
Posted on November 18, 2008 at 11:27

Pull-up/down on Output pins?

    This topic has been closed for replies.

    1 reply

    relaxe
    relaxeAuthor
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:52

    Is it possible to configure an output WITH internal pull-up or pull-down? It would save some parts in SDIO and I2C....

    From what I see in stm32f10x_gpio.h, the PU and PD are only availlable on inputs... Is it correct, or is there a way?

    #define IS_GPIO_MODE(MODE) (((MODE) == GPIO_Mode_AIN) || ((MODE) == GPIO_Mode_IN_FLOATING) ||

    ((MODE) == GPIO_Mode_IPD) || ((MODE) == GPIO_Mode_IPU) ||

    ((MODE) == GPIO_Mode_Out_OD) || ((MODE) == GPIO_Mode_Out_PP) ||

    ((MODE) == GPIO_Mode_AF_OD) || ((MODE) == GPIO_Mode_AF_PP))

    -Jay2

    [ This message was edited by: relaxe on 18-11-2008 15:58 ]