Skip to content

Instantly share code, notes, and snippets.

@hocarm
Created August 14, 2016 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hocarm/4604ce92a54a73f90840bd33dcf1dc0a to your computer and use it in GitHub Desktop.
Save hocarm/4604ce92a54a73f90840bd33dcf1dc0a to your computer and use it in GitHub Desktop.
// see stm32f10x_gpio.h
GPIO_InitTypeDef GPIO_InitStructure;
GPIO_StructInit (& GPIO_InitStructure);
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_9;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz;
GPIO_Init(GPIOC , &GPIO_InitStructure);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment