Advertisement
Guest User

Untitled

a guest
Dec 17th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. static void MX_TIM6_Init(void)
  2. {
  3.  
  4. TIM_MasterConfigTypeDef sMasterConfig;
  5.  
  6. htim6.Instance = TIM6;
  7. htim6.Init.Prescaler = 0;
  8. htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
  9. htim6.Init.Period = 0;
  10. if (HAL_TIM_Base_Init(&htim6) != HAL_OK)
  11. {
  12. _Error_Handler(__FILE__, __LINE__);
  13. }
  14.  
  15. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  16. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  17. if (HAL_TIMEx_MasterConfigSynchronization(&htim6, &sMasterConfig) != HAL_OK)
  18. {
  19. _Error_Handler(__FILE__, __LINE__);
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement