How to set GPIO0 high output?

yulihui2683685
Posts: 4
Joined: Sun Nov 19, 2017 6:36 pm

How to set GPIO0 high output?

Postby yulihui2683685 » Sun Nov 19, 2017 7:35 pm

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);

Who is online

Users browsing this forum: No registered users and 1 guest