projet_voilier/Services/DCMotor.h
2020-11-13 08:49:00 +01:00

13 lines
356 B
C

#ifndef DCMOTOR_H
#define DCMOTOR_H
#include "GPIO.h"
#include "Timer.h"
void DCMotor_conf(TIM_TypeDef * timer, int channel, GPIO_TypeDef * gpio, int pin);
void DCMotor_setSpeed(TIM_TypeDef * timer, int channel, GPIO_TypeDef * gpio, int pin, float speed);
float DCMotor_getSpeed(TIM_TypeDef * timer, int channel, GPIO_TypeDef * gpio, int pin);
#endif