PWM.h 413 B

123456789101112131415161718192021222324252627
  1. /*
  2. * PWM.h
  3. *
  4. * Created on: 14 janv. 2019
  5. * Author: e_rcluze
  6. */
  7. #ifndef PWM_H_
  8. #define PWM_H_
  9. #include <RTC.h>
  10. #include "tim.h"
  11. #define PWM_MAX 31250-1
  12. void PWMSetDutyCycle(uint8_t sortie, uint8_t pourcentage);
  13. void PWMStart(uint8_t sortie);
  14. void PWMStop(uint8_t sortie);
  15. uint8_t POWMAX(uint8_t sortie);
  16. uint16_t PourcentageToValue(uint8_t val);
  17. #endif /* PWM_H_ */