change periode of dc motor pwm signal

This commit is contained in:
Jasper Güldenstein 2020-11-13 13:12:45 +01:00
parent 4dd931d8fc
commit bfdc4d3779

View file

@ -3,7 +3,7 @@
#include "stm32f1xx_ll_bus.h" #include "stm32f1xx_ll_bus.h"
#include "stm32f1xx_ll_tim.h" #include "stm32f1xx_ll_tim.h"
#define ARR_DC_MOTOR 20000 #define ARR_DC_MOTOR 50000
void DC_MOTOR_Init(void) { void DC_MOTOR_Init(void) {
// use TIM2 since it has pa1 at channel 2 output // use TIM2 since it has pa1 at channel 2 output
// setup timer 2 // setup timer 2