APM:Libraries
Macros | Variables
Scheduler.cpp File Reference
#include "Scheduler.h"
#include <algorithm>
#include <errno.h>
#include <poll.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <sys/time.h>
#include <unistd.h>
#include <AP_HAL/AP_HAL.h>
#include <AP_Vehicle/AP_Vehicle_Type.h>
#include "RCInput.h"
#include "SPIUARTDriver.h"
#include "Storage.h"
#include "UARTDriver.h"
#include "Util.h"
Include dependency graph for Scheduler.cpp:

Go to the source code of this file.

Macros

#define APM_LINUX_TIMER_PRIORITY   15
 
#define APM_LINUX_UART_PRIORITY   14
 
#define APM_LINUX_RCIN_PRIORITY   13
 
#define APM_LINUX_MAIN_PRIORITY   12
 
#define APM_LINUX_TONEALARM_PRIORITY   11
 
#define APM_LINUX_IO_PRIORITY   10
 
#define APM_LINUX_TIMER_RATE   1000
 
#define APM_LINUX_UART_RATE   100
 
#define APM_LINUX_RCIN_RATE   2000
 
#define APM_LINUX_TONEALARM_RATE   100
 
#define APM_LINUX_IO_RATE   50
 
#define SCHED_THREAD(name_, UPPER_NAME_)
 

Variables

const AP_HAL::HALhal
 -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- More...
 

Macro Definition Documentation

◆ APM_LINUX_IO_PRIORITY

#define APM_LINUX_IO_PRIORITY   10

Definition at line 34 of file Scheduler.cpp.

◆ APM_LINUX_IO_RATE

#define APM_LINUX_IO_RATE   50

Definition at line 45 of file Scheduler.cpp.

◆ APM_LINUX_MAIN_PRIORITY

#define APM_LINUX_MAIN_PRIORITY   12

Definition at line 32 of file Scheduler.cpp.

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

◆ APM_LINUX_RCIN_PRIORITY

#define APM_LINUX_RCIN_PRIORITY   13

Definition at line 31 of file Scheduler.cpp.

◆ APM_LINUX_RCIN_RATE

#define APM_LINUX_RCIN_RATE   2000

Definition at line 43 of file Scheduler.cpp.

◆ APM_LINUX_TIMER_PRIORITY

#define APM_LINUX_TIMER_PRIORITY   15

Definition at line 29 of file Scheduler.cpp.

◆ APM_LINUX_TIMER_RATE

#define APM_LINUX_TIMER_RATE   1000

Definition at line 36 of file Scheduler.cpp.

◆ APM_LINUX_TONEALARM_PRIORITY

#define APM_LINUX_TONEALARM_PRIORITY   11

Definition at line 33 of file Scheduler.cpp.

◆ APM_LINUX_TONEALARM_RATE

#define APM_LINUX_TONEALARM_RATE   100

Definition at line 44 of file Scheduler.cpp.

◆ APM_LINUX_UART_PRIORITY

#define APM_LINUX_UART_PRIORITY   14

Definition at line 30 of file Scheduler.cpp.

◆ APM_LINUX_UART_RATE

#define APM_LINUX_UART_RATE   100

Definition at line 37 of file Scheduler.cpp.

◆ SCHED_THREAD

#define SCHED_THREAD (   name_,
  UPPER_NAME_ 
)
Value:
{ \
.name = "ap-" #name_, \
.thread = &_##name_##_thread, \
.policy = SCHED_FIFO, \
.prio = APM_LINUX_##UPPER_NAME_##_PRIORITY, \
.rate = APM_LINUX_##UPPER_NAME_##_RATE, \
}

Definition at line 52 of file Scheduler.cpp.

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

Variable Documentation

◆ hal

const AP_HAL::HAL& hal

-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-

Definition at line 14 of file AC_PID_test.cpp.