Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
pwm_input_arch.c File Reference

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

#include "mcu_periph/pwm_input_arch.h"
#include <BOARD_CONFIG>
#include "generated/airframe.h"
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/gpio.h>
#include <libopencm3/stm32/timer.h>
#include <libopencm3/cm3/nvic.h>
#include "mcu_periph/sys_time.h"
#include "mcu_periph/gpio.h"
#include "mcu_arch.h"
+ Include dependency graph for pwm_input_arch.c:

Go to the source code of this file.

Macros

#define ONE_MHZ_CLK   1000000
 
#define PWM_INPUT_IRQ_PRIO   2
 

Functions

static void pwm_input_set_timer (uint32_t tim)
 
void pwm_input_init (void)
 

Detailed Description

handling of smt32 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 44 of file pwm_input_arch.c.

Referenced by actuators_dualpwm_arch_init(), and pwm_input_set_timer().

#define PWM_INPUT_IRQ_PRIO   2

Definition at line 48 of file pwm_input_arch.c.

Referenced by pwm_input_init().

Function Documentation

static void pwm_input_set_timer ( uint32_t  tim)
inlinestatic

Definition at line 51 of file pwm_input_arch.c.

References ONE_MHZ_CLK, PWM_INPUT_TICKS_PER_USEC, and timer_get_frequency().

Referenced by pwm_input_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: