Page 1 of 1

How to set GPIO0 high output?

Posted: Sun Nov 19, 2017 7:35 pm
by yulihui2683685
I have the following few lines of code, but can not achieve high output, How to get high output?request help, thank you!
GPIO_ConfigTypeDef gpio_out_cfg;
gpio_out_cfg.GPIO_Mode = GPIO_Mode_Output;
gpio_out_cfg.GPIO_Pin = GPIO_Pin_0;
gpio_config(&gpio_out_cfg);
GPIO_OUTPUT_SET(GPIO_ID_PIN(0), 1);