APM:Libraries
Macros | Functions
RCOutput_ZYNQ.cpp File Reference
#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>
Include dependency graph for RCOutput_ZYNQ.cpp:

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)
 

Macro Definition Documentation

◆ PWM_CHAN_COUNT

#define PWM_CHAN_COUNT   8

◆ PWM_CMD_CLR

#define PWM_CMD_CLR   5 /* clr a pwm output explicitly */

Definition at line 28 of file RCOutput_ZYNQ.cpp.

◆ PWM_CMD_CONFIG

#define PWM_CMD_CONFIG   0 /* full configuration in one go */

Definition at line 23 of file RCOutput_ZYNQ.cpp.

◆ PWM_CMD_DISABLE

#define PWM_CMD_DISABLE   2 /* disable a pwm */

Definition at line 25 of file RCOutput_ZYNQ.cpp.

◆ PWM_CMD_ENABLE

#define PWM_CMD_ENABLE   1 /* enable a pwm */

Definition at line 24 of file RCOutput_ZYNQ.cpp.

◆ PWM_CMD_MODIFY

#define PWM_CMD_MODIFY   3 /* modify a pwm */

Definition at line 26 of file RCOutput_ZYNQ.cpp.

◆ PWM_CMD_SET

#define PWM_CMD_SET   4 /* set a pwm output explicitly */

Definition at line 27 of file RCOutput_ZYNQ.cpp.

◆ PWM_CMD_TEST

#define PWM_CMD_TEST   6 /* various crap */

Definition at line 29 of file RCOutput_ZYNQ.cpp.

◆ RCOUT_ZYNQ_PWM_BASE

#define RCOUT_ZYNQ_PWM_BASE   0x43c00000

Definition at line 22 of file RCOutput_ZYNQ.cpp.

Referenced by Linux::RCOutput_ZYNQ::init().

Function Documentation

◆ catch_sigbus()

static void catch_sigbus ( int  sig)
static

Definition at line 32 of file RCOutput_ZYNQ.cpp.

Referenced by Linux::RCOutput_ZYNQ::init().

Here is the call graph for this function:
Here is the caller graph for this function: