18 lines
307 B
C
18 lines
307 B
C
#ifndef MOTEUR_H
|
|
#define MOTEUR_H
|
|
|
|
#include "stm32f103xb.h"
|
|
|
|
#define PinSens LL_GPIO_PIN_2
|
|
#define PinPWM LL_GPIO_PIN_1
|
|
#define GPIOPins GPIOA
|
|
#define TimerPWM TIM2
|
|
#define channelPWM LL_TIM_CHANNEL_CH2
|
|
|
|
void Moteur_Conf(void);
|
|
|
|
void Moteur_Speed(int speedPercentage);
|
|
|
|
void Moteur_Sens(int sens);
|
|
|
|
#endif
|