APM:Libraries
libraries
AP_HAL_Linux
RCInput_ZYNQ.h
Go to the documentation of this file.
1
#pragma once
2
3
/*
4
This class implements RCInput on the ZYNQ / ZyboPilot platform with custom
5
logic doing the edge detection of the PPM sum input
6
*/
7
8
#include "
RCInput.h
"
9
10
namespace
Linux
{
11
12
class
RCInput_ZYNQ
:
public
RCInput
{
13
public
:
14
void
init
();
15
void
_timer_tick
(
void
);
16
17
private
:
18
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_OCPOC_ZYNQ
19
static
const
int
TICK_PER_US
=50;
20
static
const
int
TICK_PER_S
=50000000;
21
#else
22
static
const
int
TICK_PER_US=100;
23
static
const
int
TICK_PER_S=100000000;
24
#endif
25
26
// Memory mapped keyhole register to pulse input FIFO
27
volatile
uint32_t *
pulse_input
;
28
29
// time spent in the low state
30
uint32_t
_s0_time
;
31
};
32
33
}
Linux::RCInput_ZYNQ::_timer_tick
void _timer_tick(void)
Definition:
RCInput_ZYNQ.cpp:45
Linux::RCInput
Definition:
RCInput.h:11
RCInput.h
Linux::RCInput_ZYNQ::init
void init()
Definition:
RCInput_ZYNQ.cpp:29
Linux::RCInput_ZYNQ::pulse_input
volatile uint32_t * pulse_input
Definition:
RCInput_ZYNQ.h:27
Linux::RCInput_ZYNQ::TICK_PER_S
static const int TICK_PER_S
Definition:
RCInput_ZYNQ.h:20
Linux::RCInput_ZYNQ
Definition:
RCInput_ZYNQ.h:12
Linux
Definition:
CameraSensor.h:19
Linux::RCInput_ZYNQ::TICK_PER_US
static const int TICK_PER_US
Definition:
RCInput_ZYNQ.h:19
Linux::RCInput_ZYNQ::_s0_time
uint32_t _s0_time
Definition:
RCInput_ZYNQ.h:30
Generated on Sun Jun 17 2018 14:18:49 for APM:Libraries by
1.8.13