cancel
Showing results for 
Search instead for 
Did you mean: 

Pull-up/down on Output pins?

relaxe
Associate II
Posted on November 18, 2008 at 11:27

Pull-up/down on Output pins?

1 REPLY 1
relaxe
Associate II
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 ]