PX4 Firmware
PX4 Autopilot Software http://px4.io
ocpoc_mmap.cpp File Reference
#include "ocpoc_mmap.h"
#include <px4_platform_common/log.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <unistd.h>
Include dependency graph for ocpoc_mmap.cpp:

Go to the source code of this file.

Macros

#define RCOUT_ZYNQ_PWM_BASE   0x43c00000
 

Variables

static const int TICK_PER_US = 50
 
static const int FREQUENCY_PWM = 400
 
static const int TICK_PER_S = 50000000
 

Macro Definition Documentation

◆ RCOUT_ZYNQ_PWM_BASE

#define RCOUT_ZYNQ_PWM_BASE   0x43c00000

Definition at line 44 of file ocpoc_mmap.cpp.

Referenced by linux_pwm_out::OcpocMmapPWMOut::init().

Variable Documentation

◆ FREQUENCY_PWM

const int FREQUENCY_PWM = 400
static

Definition at line 46 of file ocpoc_mmap.cpp.

Referenced by linux_pwm_out::OcpocMmapPWMOut::init().

◆ TICK_PER_S

const int TICK_PER_S = 50000000
static

Definition at line 47 of file ocpoc_mmap.cpp.

Referenced by linux_pwm_out::OcpocMmapPWMOut::freq2tick().

◆ TICK_PER_US

const int TICK_PER_US = 50
static

Definition at line 45 of file ocpoc_mmap.cpp.

Referenced by linux_pwm_out::OcpocMmapPWMOut::send_output_pwm().