|
APM:Libraries
|
#include "SPIDevice.h"#include <AP_HAL/AP_HAL.h>#include <AP_HAL/utility/OwnPtr.h>#include "Util.h"#include "Scheduler.h"#include "Semaphores.h"#include <stdio.h>Go to the source code of this file.
Classes | |
| struct | SPIDriverInfo |
Macros | |
| #define | SPIDEV_MODE0 0 |
| #define | SPIDEV_MODE1 SPI_CR1_CPHA |
| #define | SPIDEV_MODE2 SPI_CR1_CPOL |
| #define | SPIDEV_MODE3 SPI_CR1_CPOL | SPI_CR1_CPHA |
| #define | SPI1_CLOCK STM32_PCLK2 |
| #define | SPI2_CLOCK STM32_PCLK1 |
| #define | SPI3_CLOCK STM32_PCLK1 |
| #define | SPI4_CLOCK STM32_PCLK2 |
| #define | MHZ (1000U*1000U) |
| #define | KHZ (1000U) |
Variables | |
| const AP_HAL::HAL & | hal |
| static const uint32_t | bus_clocks [4] |
| static const struct SPIDriverInfo | spi_devices [] = { HAL_SPI_BUS_LIST } |
| #define KHZ (1000U) |
Definition at line 53 of file SPIDevice.cpp.
| #define MHZ (1000U*1000U) |
Definition at line 52 of file SPIDevice.cpp.
| #define SPI1_CLOCK STM32_PCLK2 |
Definition at line 35 of file SPIDevice.cpp.
Referenced by ChibiOS::SPIDevice::derive_freq_flag(), and ChibiOS::SPIDeviceManager::get_device().
| #define SPI2_CLOCK STM32_PCLK1 |
Definition at line 36 of file SPIDevice.cpp.
Referenced by ChibiOS::SPIDeviceManager::get_device().
| #define SPI3_CLOCK STM32_PCLK1 |
Definition at line 37 of file SPIDevice.cpp.
Referenced by ChibiOS::SPIDeviceManager::get_device().
| #define SPI4_CLOCK STM32_PCLK2 |
Definition at line 38 of file SPIDevice.cpp.
Referenced by ChibiOS::SPIDeviceManager::get_device().
| #define SPIDEV_MODE0 0 |
Definition at line 30 of file SPIDevice.cpp.
| #define SPIDEV_MODE1 SPI_CR1_CPHA |
Definition at line 31 of file SPIDevice.cpp.
| #define SPIDEV_MODE2 SPI_CR1_CPOL |
Definition at line 32 of file SPIDevice.cpp.
| #define SPIDEV_MODE3 SPI_CR1_CPOL | SPI_CR1_CPHA |
Definition at line 33 of file SPIDevice.cpp.
|
static |
Definition at line 41 of file SPIDevice.cpp.
Referenced by ChibiOS::SPIDevice::derive_freq_flag().
| const AP_HAL::HAL& hal |
Definition at line 14 of file AC_PID_test.cpp.
|
static |
Referenced by ChibiOS::SPIDevice::acquire_bus(), ChibiOS::SPIDevice::clock_pulse(), ChibiOS::SPIDevice::derive_freq_flag(), ChibiOS::SPIBus::dma_deallocate(), ChibiOS::SPIDevice::do_transfer(), ChibiOS::SPIDeviceManager::get_device(), ChibiOS::SPIDevice::get_driver(), ChibiOS::SPIBus::SPIBus(), and ChibiOS::SPIDevice::SPIDevice().
1.8.13