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/>.
23 #define USE_PARAMETER_GROUPS
31 #define FAST_CODE_NOINLINE
32 #define FAST_DATA_ZERO_INIT
35 #define PID_PROFILE_COUNT 4
36 #define CONTROL_RATE_PROFILE_COUNT 4
44 #define USE_TRANSPONDER
46 #ifndef LED_MAX_STRIP_LENGTH
47 #ifdef USE_LED_STRIP_64
48 #define LED_MAX_STRIP_LENGTH 64
50 #define LED_MAX_STRIP_LENGTH 32
52 #endif // #ifndef LED_MAX_STRIP_LENGTH
60 typedef enum {RESET
= 0, SET
= !RESET
} FlagStatus
, ITStatus
;
61 typedef enum {DISABLE
= 0, ENABLE
= !DISABLE
} FunctionalState
;
62 typedef enum {TEST_IRQ
= 0 } IRQn_Type
;
64 EXTI_Trigger_Rising
= 0x08,
65 EXTI_Trigger_Falling
= 0x0C,
66 EXTI_Trigger_Rising_Falling
= 0x10
67 } EXTITrigger_TypeDef
;
90 } DMA_Channel_TypeDef
;
92 uint8_t DMA_GetFlagStatus(void *);
93 void DMA_Cmd(DMA_Channel_TypeDef
*, FunctionalState
);
94 void DMA_ClearFlag(uint32_t);
116 #define WS2811_DMA_TC_FLAG (void *)1
117 #define WS2811_DMA_HANDLER_IDENTIFER 0
118 #define NVIC_PriorityGroup_2 0x500
120 #define MCU_TYPE_ID 99
121 #define MCU_TYPE_NAME "UNIT_TEST"
125 #include "target/common_defaults_post.h"