Paparazzi UAS  v6.2_unstable
Paparazzi is a free software Unmanned Aircraft System.
pwm_input_arch.c File Reference
#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.


#define ONE_MHZ_CLK   1000000
#define PWM_INPUT_IRQ_PRIO   2


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.


#define PWM_INPUT_IRQ_PRIO   2

Definition at line 48 of file pwm_input_arch.c.

Function Documentation

◆ pwm_input_init()

◆ pwm_input_set_timer()

static void pwm_input_set_timer ( uint32_t  tim,
uint32_t  ticks_per_usec 

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: