wip
This commit is contained in:
@@ -36,7 +36,38 @@ extern "C" {
|
||||
|
||||
/* Exported types ------------------------------------------------------------*/
|
||||
/* USER CODE BEGIN ET */
|
||||
|
||||
typedef enum{
|
||||
omchiuso,
|
||||
omapertura1,
|
||||
omapertura2,
|
||||
omapertura3,
|
||||
omapertura4,
|
||||
omapertura5,
|
||||
omapertura6,
|
||||
omapertura7,
|
||||
omapertura8,
|
||||
omapertura9,
|
||||
omapertura10,
|
||||
omapertura11,
|
||||
omapertura12,
|
||||
omapertura13,
|
||||
omapertura14,
|
||||
omstopapertura,
|
||||
omaperto,
|
||||
omchiusura1,
|
||||
omchiusura2,
|
||||
omchiusura3,
|
||||
omchiusura4,
|
||||
omchiusura5,
|
||||
omchiusura6,
|
||||
omchiusura7,
|
||||
omchiusura8,
|
||||
omchiusura9,
|
||||
omchiusura10,
|
||||
omchiusura11,
|
||||
omchiusura12,
|
||||
omstopchiusura,
|
||||
}omCiclo_st;
|
||||
/* USER CODE END ET */
|
||||
|
||||
/* Exported constants --------------------------------------------------------*/
|
||||
|
||||
@@ -14,6 +14,7 @@ void StartMot(TIM_HandleTypeDef *htim,uint32_t Channel,uint16_t pwmval);
|
||||
void SetMotPwm(TIM_HandleTypeDef *htim,uint32_t Channel,uint16_t pwmval);
|
||||
void SetMot(uint8_t mot,uint8_t dir,uint16_t pwmval);
|
||||
void SetMotPerc(uint8_t mot,uint8_t dir,uint8_t perc);
|
||||
uint8_t ramp(uint8_t mot,uint8_t dir,uint8_t percStart,uint8_t percEnd,uint8_t tr,uint8_t mode);
|
||||
|
||||
#define timMot1 &htim2
|
||||
#define FWMot1 TIM_CHANNEL_1
|
||||
@@ -34,4 +35,10 @@ void SetMotPerc(uint8_t mot,uint8_t dir,uint8_t perc);
|
||||
#define FW 0
|
||||
#define BW 1
|
||||
|
||||
#define RAMPINIT 0
|
||||
#define RAMPRUN 10
|
||||
|
||||
#define DONE 0
|
||||
#define RUNNING 1
|
||||
|
||||
#endif /* INC_PWM_H_ */
|
||||
|
||||
Reference in New Issue
Block a user