Transcription of Configuring GPIO Appendix on the STM32F4xx E
{{id}} {{{paragraph}}}
Configuring gpio on the STM32F4xxIntroductionConfiguring general purpose input/output ( gpio ) on the Cortex-M4 takes more effort than you might think. Fortunately a userfriendly library is available that makes this very easy to do. Onceagain thanks to Tilen Majerle, we have a nice :/** * gpio library for STM32F4xx devices * * @author Tilen Majerle * @email * * @link * @version * @ide Keil uVision * @licenseGNU GPL v3 Initialize gpio Pins In the STM32 the are five gpio banks GPIOA GPIOG When using the library there are four considerations: gpio ModeAppendixEAppendix E Configuring gpio on the STM32F4xxE 2 ECE 5655/4655 Real-Time DSP gpio Output Type gpio speed gpio pullup/pulldown resistors C typedef enumerations are used to create a convenient wayof setting the various attributesGPIO Mode TM_GPIO_Mode_IN: Set pin as input TM_GPIO_Mode_OUT: Set pin as output TM_GPIO_Mode_AF: Set pin as alternate function TM_GPIO_Mode_AN: Set pin as analogGPIO Output Type TM_GPIO_OType_PP: gpio pin is push-pull TM_GPIO_OType_OD.
Configuring GPIO on the STM32F4xx Introduction Configuring general purpose input/output (GPIO) on the Cortex-M4 takes more effort than you might think.
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}