1
0
forked from me/IronOS

Slow PWM drive to reduce some handle heating, Improve PWM power for ts80, add ts80 pulse for keep awake

This commit is contained in:
Ben V. Brown
2018-11-11 20:43:35 +11:00
parent 5b882c819c
commit 6a1572de81
5 changed files with 95 additions and 38 deletions

View File

@@ -253,7 +253,7 @@ static void MX_TIM3_Init(void) {
TIM_OC_InitTypeDef sConfigOC;
htim3.Instance = TIM3;
htim3.Init.Prescaler = 2;
htim3.Init.Prescaler = 4;
htim3.Init.CounterMode = TIM_COUNTERMODE_UP;
htim3.Init.Period = 100; // 10 Khz PWM freq
htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV4; // 4mhz before div