Updated and Validated
[betaflight.git] / src / test / unit / target.h
blob2fd7547c83f15a3f57f07421055ca2d708ae306c
1 /*
2 * This file is part of Cleanflight.
4 * Cleanflight is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * Cleanflight is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
18 #pragma once
20 #define SCHEDULER_DELAY_LIMIT 1
21 #define TASK_GYROPID_DESIRED_PERIOD 100
23 #define DMA_DATA
24 #define DMA_DATA_ZERO_INIT
26 #define USE_ACC
27 #define USE_CMS
28 #define CMS_MAX_DEVICE 4
29 #define USE_FAKE_GYRO
30 #define USE_BEEPER
31 #define USE_BLACKBOX
32 #define USE_MAG
33 #define USE_BARO
34 #define USE_GPS
35 #define USE_DASHBOARD
36 #define USE_SERIAL_RX
37 #define USE_RX_MSP
38 #define USE_SERIALRX_CRSF // Team Black Sheep Crossfire protocol
39 #define USE_SERIALRX_SPEKTRUM // DSM2 and DSMX protocol
40 #define USE_SERIALRX_SBUS // Frsky and Futaba receivers
41 #define USE_SERIALRX_IBUS // FlySky and Turnigy receivers
42 #define USE_SERIALRX_JETIEXBUS
43 #define USE_SERIALRX_SUMD // Graupner Hott protocol
44 #define USE_SERIALRX_SUMH // Graupner legacy protocol
45 #define USE_SERIALRX_XBUS // JR
46 #define USE_TELEMETRY
47 #define USE_TELEMETRY_CRSF
48 #define USE_TELEMETRY_FRSKY_HUB
49 #define USE_TELEMETRY_HOTT
50 #define USE_TELEMETRY_IBUS
51 #define USE_TELEMETRY_JETIEXBUS
52 #define USE_TELEMETRY_LTM
53 #define USE_TELEMETRY_MAVLINK
54 #define USE_TELEMETRY_SMARTPORT
55 #define USE_LED_STRIP
56 #define USE_LED_STRIP_STATUS_MODE
57 #define USE_SERVOS
58 #define USE_TRANSPONDER
59 #define USE_VCP
60 #define USE_UART1
61 #define USE_UART2
62 #define USE_UART3
63 #define USE_UART4
64 #define USE_UART5
65 #define USE_SOFTSERIAL1
66 #define USE_SOFTSERIAL2
68 #define SERIAL_PORT_COUNT 8
70 #define DEFAULT_AUX_CHANNEL_COUNT MAX_AUX_CHANNEL_COUNT
71 #define MAX_SIMULTANEOUS_ADJUSTMENT_COUNT 6 // needed for unittest
73 #define TARGET_BOARD_IDENTIFIER "TEST"
75 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SERIAL
77 #define LED_STRIP_TIMER 1
78 #define SOFTSERIAL_1_TIMER 2
79 #define SOFTSERIAL_2_TIMER 3
81 #define USABLE_TIMER_CHANNEL_COUNT 0
83 #define TARGET_IO_PORTA 0xffff
84 #define TARGET_IO_PORTB 0xffff
85 #define TARGET_IO_PORTC 0xffff