Paparazzi UAS  v5.15_devel-88-gb3ad7fe
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 smt32 PWM input using a timer with capture. More...

#include "mcu_periph/pwm_input.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, uint32_t ticks_per_usec)
 
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 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,
uint32_t  ticks_per_usec 
)
inlinestatic

Definition at line 51 of file pwm_input_arch.c.

References ONE_MHZ_CLK, 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: