Fix led strip unit test compilation warning.

This commit is contained in:
Dominic Clifton 2016-01-17 02:49:47 +01:00 committed by borisbstyle
parent 38d285889b
commit e7620727ff
1 changed files with 19 additions and 0 deletions

View File

@ -24,11 +24,18 @@
#define TELEMETRY
#define LED_STRIP
#define USE_SERVOS
#define TRANSPONDER
#define SERIAL_PORT_COUNT 4
#define MAX_SIMULTANEOUS_ADJUSTMENT_COUNT 6
#define TARGET_BOARD_IDENTIFIER "TEST"
#define U_ID_0 0
#define U_ID_1 1
#define U_ID_2 2
typedef enum
{
Mode_TEST = 0x0,
@ -45,6 +52,18 @@ typedef struct
void* test;
} TIM_TypeDef;
typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus;
typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState;
typedef enum {TEST_IRQ = 0 } IRQn_Type;
typedef struct {
void* test;
} DMA_Channel_TypeDef;
uint8_t DMA_GetFlagStatus(void *);
void DMA_Cmd(DMA_Channel_TypeDef*, FunctionalState );
void DMA_ClearFlag(uint32_t);
#define WS2811_DMA_TC_FLAG (void *)1
#define WS2811_DMA_HANDLER_IDENTIFER 0