AGGIUNTI FILE EXCEL

This commit is contained in:
andrea
2026-05-02 13:47:18 +02:00
parent 18437a0c9c
commit c43dc8e9af
20 changed files with 17601 additions and 3526 deletions

View File

@@ -1,44 +0,0 @@
/*
* pwm.h
*
* Created on: Dec 6, 2025
* Author: user
*/
#ifndef INC_PWM_H_
#define INC_PWM_H_
#include <stdbool.h>
bool IsPwmRunning(TIM_HandleTypeDef *htim, uint32_t Channel);;
void StopMot(TIM_HandleTypeDef *htim,uint32_t Channel);
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
#define BWMot1 TIM_CHANNEL_2
#define timMot2 &htim2
#define FWMot2 TIM_CHANNEL_3
#define BWMot2 TIM_CHANNEL_4
#define timMot3 &htim4
#define FWMot3 TIM_CHANNEL_1
#define BWMot3 TIM_CHANNEL_2
#define timMot4 &htim4
#define FWMot4 TIM_CHANNEL_3
#define BWMot4 TIM_CHANNEL_4
#define FW 0
#define BW 1
#define RAMPINIT 0
#define RAMPRUN 10
#define DONE 0
#define RUNNING 1
#endif /* INC_PWM_H_ */