Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
pwm_input_arch.c File Reference

handling of stm32 PWM input using a timer with capture. More...

#include "mcu_periph/pwm_input_arch.h"
#include "mcu_periph/gpio.h"
#include "hal.h"
+ Include dependency graph for pwm_input_arch.c:

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)
 

Detailed Description

handling of stm32 PWM input using a timer with capture.

Definition in file pwm_input_arch.c.

Macro Definition Documentation

#define ONE_MHZ_CLK   1000000

Definition at line 32 of file pwm_input_arch.c.

Referenced by actuators_dualpwm_arch_init().

Function Documentation

uint32_t get_pwm_input_duty_in_usec ( uint32_t  channel)

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().

+ Here is the caller graph for this function:

uint32_t get_pwm_input_period_in_usec ( uint32_t  channel)

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().

+ Here is the caller graph for this function:

void pwm_input_init ( void  )