Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. /* Private variables ---------------------------------------------------------*/
  2.  
  3. /* USER CODE BEGIN PV */
  4.  
  5. char ext0;
  6.  
  7. /* USER CODE END PV */
  8.  
  9.  
  10. and it is used as the external variable inside the stm32f7xx_it.c as follows :
  11.  
  12.  
  13. /* External variables --------------------------------------------------------*/
  14.  
  15.  
  16. /* USER CODE BEGIN EV */
  17.  
  18. extern char ex0;
  19.  
  20. void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) {
  21. if ( GPIO_Pin == GPIO_PIN_13 ) {
  22. ex0 = 1;
  23. }
  24. }
  25.  
  26. /* USER CODE END EV */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement