13 lines
356 B
C
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
|