Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
|
handling of stm32 PWM input using a timer with capture. More...
Go to the source code of this file.
Macros | |
#define | ONE_MHZ_CLK 1000000 |
Functions | |
void | pwm_input_init (void) |
uint32_t | get_pwm_input_duty_in_usec (uint32_t channel) |
uint32_t | get_pwm_input_period_in_usec (uint32_t channel) |
handling of stm32 PWM input using a timer with capture.
Definition in file pwm_input_arch.c.
#define ONE_MHZ_CLK 1000000 |
Definition at line 32 of file pwm_input_arch.c.
Referenced by actuators_dualpwm_arch_init().
Definition at line 117 of file pwm_input_arch.c.
References channel, pwm_input_duty_tics, and PWM_INPUT_TICKS_PER_USEC.
Referenced by aoa_pwm_update().
Definition at line 121 of file pwm_input_arch.c.
References channel, pwm_input_period_tics, and PWM_INPUT_TICKS_PER_USEC.
Referenced by rpm_sensor_get_rpm().
void pwm_input_init | ( | void | ) |
Definition at line 90 of file pwm_input_arch.c.
References gpio_setup_pin_af(), PWM_INPUT1_GPIO_AF, PWM_INPUT1_GPIO_PIN, PWM_INPUT1_GPIO_PORT, PWM_INPUT1_ICU, PWM_INPUT2_GPIO_AF, PWM_INPUT2_GPIO_PIN, PWM_INPUT2_GPIO_PORT, PWM_INPUT2_ICU, pwm_input_duty_tics, pwm_input_duty_valid, PWM_INPUT_NB, pwm_input_period_tics, and pwm_input_period_valid.
Referenced by pwm_meas_init().