This commit is contained in:
andrea
2026-04-15 23:12:13 +02:00
parent e2accf6ffa
commit 60536ed738
96 changed files with 357096 additions and 305622 deletions

View File

@@ -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_ */