Advertisement
CGallardo

Untitled

Feb 27th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. void button_Init ( void ) {
  2.     GPIO_InitTypeDef port ;
  3.     __HAL_RCC_GPIOA_CLK_ENABLE ();
  4.     /* Configure the GPIO_LED pin */
  5.     port . Pin = GPIO_PIN_0 ;
  6.     port . Mode = GPIO_MODE_INPUT ;
  7.     port . Pull = GPIO_PULLUP ;
  8.     HAL_GPIO_Init ( GPIOA , & port );
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement