APM:Libraries
Functions | Variables
HAL_ChibiOS_Class.cpp File Reference
#include <AP_HAL/AP_HAL.h>
#include <assert.h>
#include "HAL_ChibiOS_Class.h"
#include <AP_HAL_Empty/AP_HAL_Empty_Private.h>
#include <AP_HAL_ChibiOS/AP_HAL_ChibiOS_Private.h>
#include "shared_dma.h"
#include "sdcard.h"
#include "hwdef/common/usbcfg.h"
#include <hwdef.h>
Include dependency graph for HAL_ChibiOS_Class.cpp:

Go to the source code of this file.

Functions

void hal_chibios_set_priority (uint8_t priority)
 
thread_t * get_main_thread ()
 
static THD_FUNCTION (main_loop, arg)
 

Variables

static HAL_UARTA_DRIVER
 
static HAL_UARTB_DRIVER
 
static HAL_UARTC_DRIVER
 
static HAL_UARTD_DRIVER
 
static HAL_UARTE_DRIVER
 
static HAL_UARTF_DRIVER
 
static ChibiOS::I2CDeviceManager i2cDeviceManager
 
static ChibiOS::SPIDeviceManager spiDeviceManager
 
static ChibiOS::AnalogIn analogIn
 
static ChibiOS::Storage storageDriver
 
static ChibiOS::GPIO gpioDriver
 
static ChibiOS::RCInput rcinDriver
 
static ChibiOS::RCOutput rcoutDriver
 
static ChibiOS::Scheduler schedulerInstance
 
static ChibiOS::Util utilInstance
 
static Empty::OpticalFlow opticalFlowDriver
 
static bool thread_running = false
 
static thread_t * daemon_task
 
const AP_HAL::HALhal
 
static AP_HAL::HAL::Callbacksg_callbacks
 

Function Documentation

◆ get_main_thread()

thread_t* get_main_thread ( void  )

Definition at line 126 of file HAL_ChibiOS_Class.cpp.

Referenced by ChibiOS::Scheduler::in_main_thread().

Here is the caller graph for this function:

◆ hal_chibios_set_priority()

void hal_chibios_set_priority ( uint8_t  priority)

Definition at line 113 of file HAL_ChibiOS_Class.cpp.

Referenced by ChibiOS::Scheduler::boost_end(), set_high_priority(), and THD_FUNCTION().

Here is the caller graph for this function:

◆ THD_FUNCTION()

static THD_FUNCTION ( main_loop  ,
arg   
)
static

Definition at line 132 of file HAL_ChibiOS_Class.cpp.

Here is the call graph for this function:

Variable Documentation

◆ analogIn

ChibiOS::AnalogIn analogIn
static

Definition at line 51 of file HAL_ChibiOS_Class.cpp.

◆ daemon_task

thread_t* daemon_task
static

Handle of daemon task / thread

Definition at line 105 of file HAL_ChibiOS_Class.cpp.

Referenced by get_main_thread(), hal_chibios_set_priority(), and THD_FUNCTION().

◆ g_callbacks

AP_HAL::HAL::Callbacks* g_callbacks
static

Definition at line 131 of file HAL_ChibiOS_Class.cpp.

◆ gpioDriver

ChibiOS::GPIO gpioDriver
static

Definition at line 61 of file HAL_ChibiOS_Class.cpp.

◆ hal

const AP_HAL::HAL& hal

Definition at line 14 of file AC_PID_test.cpp.

◆ HAL_UARTA_DRIVER

HAL_UARTA_DRIVER
static

Definition at line 31 of file HAL_ChibiOS_Class.cpp.

◆ HAL_UARTB_DRIVER

HAL_UARTB_DRIVER
static

Definition at line 32 of file HAL_ChibiOS_Class.cpp.

◆ HAL_UARTC_DRIVER

HAL_UARTC_DRIVER
static

Definition at line 33 of file HAL_ChibiOS_Class.cpp.

◆ HAL_UARTD_DRIVER

HAL_UARTD_DRIVER
static

Definition at line 34 of file HAL_ChibiOS_Class.cpp.

◆ HAL_UARTE_DRIVER

HAL_UARTE_DRIVER
static

Definition at line 35 of file HAL_ChibiOS_Class.cpp.

◆ HAL_UARTF_DRIVER

HAL_UARTF_DRIVER
static

Definition at line 36 of file HAL_ChibiOS_Class.cpp.

◆ i2cDeviceManager

ChibiOS::I2CDeviceManager i2cDeviceManager
static

Definition at line 39 of file HAL_ChibiOS_Class.cpp.

◆ opticalFlowDriver

Empty::OpticalFlow opticalFlowDriver
static

Definition at line 72 of file HAL_ChibiOS_Class.cpp.

◆ rcinDriver

ChibiOS::RCInput rcinDriver
static

Definition at line 62 of file HAL_ChibiOS_Class.cpp.

◆ rcoutDriver

ChibiOS::RCOutput rcoutDriver
static

Definition at line 65 of file HAL_ChibiOS_Class.cpp.

◆ schedulerInstance

ChibiOS::Scheduler schedulerInstance
static

Definition at line 70 of file HAL_ChibiOS_Class.cpp.

◆ spiDeviceManager

ChibiOS::SPIDeviceManager spiDeviceManager
static

Definition at line 45 of file HAL_ChibiOS_Class.cpp.

◆ storageDriver

ChibiOS::Storage storageDriver
static

Definition at line 59 of file HAL_ChibiOS_Class.cpp.

◆ thread_running

bool thread_running = false
static

Daemon status flag

Definition at line 104 of file HAL_ChibiOS_Class.cpp.

Referenced by THD_FUNCTION().

◆ utilInstance

ChibiOS::Util utilInstance
static

Definition at line 71 of file HAL_ChibiOS_Class.cpp.