/** ****************************************************************************** * @file Servo.h * @author CAVAILLES, Kevin and GÜLDENSTEIN, Jasper * @brief Service for using the Servo to set the sail angle. ****************************************************************************** */ #ifndef SERVO_H #define SERVO_H /** * @brief Initialziation function for the RF_OUTPUT module. * The period of the PWM signal is 20ms. * Peripherals used: TIM1 * Pins used: PA8 (TIM1 channel 1) */ void SERVO_Init(void); /** * @brief Sets the angle of the servo using a PWM signal with a on time between 1ms and 2ms and a resolution of 1us * @param angle of the servo between XXXXX and YYYYY degree */ void SERVO_SetAngle(int angle); #endif