Created
June 9, 2016 04:27
-
-
Save fujin/24f27cd7e87dd44b7e44fdb9b16d90a5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static const TIM_TimeBaseInitTypeDef tim_apb2_time_base = { | |
| .TIM_Prescaler = (PIOS_PERIPHERAL_APB2_CLOCK / 1000000) - 1, | |
| .TIM_ClockDivision = TIM_CKD_DIV1, | |
| .TIM_CounterMode = TIM_CounterMode_Up, | |
| .TIM_Period = ((1000000 / PIOS_SERVO_UPDATE_HZ) - 1), | |
| .TIM_RepetitionCounter = 0x0000, | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment