35 #include "pios_config.h"
41 #if defined(PIOS_INCLUDE_CHIBIOS)
46 #define PIOS_INCLUDE_RTOS
60 #if defined(STM32F4XX)
61 # include <stm32f4xx.h>
62 # include <stm32f4xx_rcc.h>
63 #elif defined(STM32F30X)
64 #include <stm32f30x.h>
65 #include <stm32f30x_rcc.h>
66 #elif defined(STM32F2XX)
67 #include <stm32f2xx.h>
68 #include <stm32f2xx_syscfg.h>
69 #elif defined(STM32F0XX)
70 #include <stm32f0xx.h>
71 #elif defined(STM32F10X_MD)
72 #include <stm32f10x.h>
73 #elif !defined(FLIGHT_POSIX) && !defined(PIOS_NO_HW)
74 #error Must define a hardware type or PIOS_NO_HW
78 #include "pios_board.h"
81 #if defined(PIOS_INCLUDE_INITCALL)
82 #include "pios_initcall.h"
101 #if defined(PIOS_INCLUDE_DMA_CB_SUBSCRIBING_FUNCTION)
104 #if defined(PIOS_INCLUDE_RTOS)
109 #if !defined(FLIGHT_POSIX) && !defined(PIOS_NO_HW)
113 #endif // !FLIGHT_POSIX && ! PIOS_NO_HW
116 #include <pios_debug.h>
119 #if defined(PIOS_INCLUDE_MPXV7002)
122 #if defined(PIOS_INCLUDE_MPXV5004)
125 #if defined(PIOS_INCLUDE_ETASV3)
128 #if defined(PIOS_INCLUDE_BMP280) || defined(PIOS_INCLUDE_BMP280_SPI)
131 #if defined(PIOS_INCLUDE_HCSR04)
134 #if defined(PIOS_INCLUDE_HMC5983)
137 #if defined(PIOS_INCLUDE_MPU)
140 #if defined(PIOS_INCLUDE_L3GD20)
141 #include <pios_l3gd20.h>
143 #if defined(PIOS_INCLUDE_LSM303)
144 #include <pios_lsm303.h>
146 #if defined(PIOS_INCLUDE_MS5611)
149 #if defined(PIOS_INCLUDE_MS5611_SPI)
152 #if defined(PIOS_INCLUDE_IAP)
155 #if defined(PIOS_INCLUDE_VIDEO)
159 #if defined(PIOS_INCLUDE_FLASH)
164 #if defined(PIOS_INCLUDE_BL_HELPER)
165 #include <pios_bl_helper.h>
168 #if defined(PIOS_INCLUDE_USB)
172 #if defined(PIOS_INCLUDE_IBUS)
176 #if defined(PIOS_INCLUDE_CROSSFIRE)
180 #if defined(PIOS_INCLUDE_MAX7456)
184 #if defined(PIOS_INCLUDE_WS2811)
192 #define NELEMENTS(x) (sizeof(x) / sizeof(*(x)))
193 #define DONT_BUILD_IF(COND,MSG) typedef char static_assertion_##MSG[(COND)?-1:1]
195 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
196 #define CPU_TO_LE16(x) (x)
197 #define CPU_TO_LE32(x) (x)
199 #define CPU_TO_BE16(x) ( (((x) & 0xff00) >> 8) | \
200 (((x) & 0x00ff) << 8) )
201 #define CPU_TO_BE32(x) ( (((x) & 0xff000000) >> 24) | \
202 (((x) & 0x00ff0000) >> 8) | \
203 (((x) & 0x0000ff00) << 8) | \
204 (((x) & 0x000000ff) << 24) )
205 #elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
206 #define CPU_TO_LE16(x) ( (((x) & 0xff00) >> 8) | \
207 (((x) & 0x00ff) << 8) )
208 #define CPU_TO_LE32(x) ( (((x) & 0xff000000) >> 24) | \
209 (((x) & 0x00ff0000) >> 8) | \
210 (((x) & 0x0000ff00) << 8) | \
211 (((x) & 0x000000ff) << 24) )
213 #define CPU_TO_BE16(x) (x)
214 #define CPU_TO_BE32(x) (x)
216 #error Unsupported architecture!
219 #define LE16_TO_CPU(x) CPU_TO_LE16(x)
220 #define LE32_TO_CPU(x) CPU_TO_LE32(x)
221 #define BE16_TO_CPU(x) CPU_TO_BE16(x)
222 #define BE32_TO_CPU(x) CPU_TO_BE32(x)
HMC5983 functions header.
COM layer functions header.
OSD gen module, handles OSD draw. Parts from CL-OSD and SUPEROSD projects.
ETASV3 Airspeed Sensor Driver.
Debug helper functions header.
ETASV3 Airspeed Sensor Driver.
ADC layer functions header.
RCVR layer functions header.
USB HID layer functions header.
PWM Input functions header.
PWM Input functions header.
PiOS CAN interface header.
Generic interface for sensors.
External Interrupts Handlers header.
Annunciator functions header.
ETASV3 Airspeed Sensor Driver.
RC Servo functions header.
In application programming functions.