change default value of pins (gpio) in cubeMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-02-03 11:25 PM
Hello,
I searched in cubemx where to change the default value of gpio pins, but couldn't find it.
Does anyone knows ?
In generated code, all output gpio are set to 0, for example :
HAL_GPIO_WritePin(GPIOK, SW_LED1_Pin, GPIO_PIN_RESET);
Thanks,
ranran
Solved! Go to Solution.
- Labels:
-
GPIO-EXTI
-
STM32CubeMX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-02-04 05:31 AM
Hello ranran,
You can select the status of the GPIO pin (GPIO_PIN_RESET / GPIO_PIN_SET) by setting the GPIO output level to Low or High, as shown in the figure below.
Best Regards,
Mohamed Aymen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-02-04 05:31 AM
Hello ranran,
You can select the status of the GPIO pin (GPIO_PIN_RESET / GPIO_PIN_SET) by setting the GPIO output level to Low or High, as shown in the figure below.
Best Regards,
Mohamed Aymen.