PWM_Pin and PWM_Pin_STM32

This commit is contained in:
2024-02-11 13:20:18 -03:00
parent 59409c61c5
commit fb4b9e70e4
14 changed files with 4476 additions and 49 deletions

View File

@@ -0,0 +1,20 @@
/*
* PWM_Pin.hpp
*
* Created on: Feb 11, 2024
* Author: Gabriel
*/
#ifndef SRC_COMPONENTS_PWM_PIN_HPP_
#define SRC_COMPONENTS_PWM_PIN_HPP_
#include <inttypes.h>
class PWM_Pin {
public:
virtual int32_t init() = 0;
virtual int32_t setDuty(float dutyCycle) = 0;
virtual int32_t setFreq(float freq) = 0;
};
#endif /* SRC_COMPONENTS_PWM_PIN_HPP_ */