APM:Libraries
|
#include <AP_HAL/AP_HAL.h>
#include "RCOutput_ZYNQ.h"
#include <dirent.h>
#include <fcntl.h>
#include <linux/spi/spidev.h>
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
Go to the source code of this file.
Macros | |
#define | PWM_CHAN_COUNT 8 |
#define | RCOUT_ZYNQ_PWM_BASE 0x43c00000 |
#define | PWM_CMD_CONFIG 0 /* full configuration in one go */ |
#define | PWM_CMD_ENABLE 1 /* enable a pwm */ |
#define | PWM_CMD_DISABLE 2 /* disable a pwm */ |
#define | PWM_CMD_MODIFY 3 /* modify a pwm */ |
#define | PWM_CMD_SET 4 /* set a pwm output explicitly */ |
#define | PWM_CMD_CLR 5 /* clr a pwm output explicitly */ |
#define | PWM_CMD_TEST 6 /* various crap */ |
Functions | |
static void | catch_sigbus (int sig) |
#define PWM_CHAN_COUNT 8 |
Definition at line 21 of file RCOutput_ZYNQ.cpp.
Referenced by Linux::RCOutput_ZYNQ::get_freq(), Linux::RCOutput_ZYNQ::read(), Linux::RCOutput_ZYNQ::set_freq(), and Linux::RCOutput_ZYNQ::write().
#define PWM_CMD_CLR 5 /* clr a pwm output explicitly */ |
Definition at line 28 of file RCOutput_ZYNQ.cpp.
#define PWM_CMD_CONFIG 0 /* full configuration in one go */ |
Definition at line 23 of file RCOutput_ZYNQ.cpp.
#define PWM_CMD_DISABLE 2 /* disable a pwm */ |
Definition at line 25 of file RCOutput_ZYNQ.cpp.
#define PWM_CMD_ENABLE 1 /* enable a pwm */ |
Definition at line 24 of file RCOutput_ZYNQ.cpp.
#define PWM_CMD_MODIFY 3 /* modify a pwm */ |
Definition at line 26 of file RCOutput_ZYNQ.cpp.
#define PWM_CMD_SET 4 /* set a pwm output explicitly */ |
Definition at line 27 of file RCOutput_ZYNQ.cpp.
#define PWM_CMD_TEST 6 /* various crap */ |
Definition at line 29 of file RCOutput_ZYNQ.cpp.
#define RCOUT_ZYNQ_PWM_BASE 0x43c00000 |
Definition at line 22 of file RCOutput_ZYNQ.cpp.
Referenced by Linux::RCOutput_ZYNQ::init().
|
static |
Definition at line 32 of file RCOutput_ZYNQ.cpp.
Referenced by Linux::RCOutput_ZYNQ::init().