NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
platform.h File Reference
#include "target.h"
Include dependency graph for platform.h:

Go to the source code of this file.

Data Structures

struct  GPIO_TypeDef
 
struct  TIM_TypeDef
 
struct  DMA_Channel_TypeDef
 

Macros

#define U_ID_0   0
 
#define U_ID_1   1
 
#define U_ID_2   2
 
#define MAG
 
#define BARO
 
#define GPS
 
#define TELEMETRY
 
#define LED_STRIP
 
#define USE_SERVOS
 
#define USART1   ((USART_TypeDef *) 1)
 
#define USART2   ((USART_TypeDef *) 2)
 
#define USART3   ((USART_TypeDef *) 3)
 
#define UART4   ((USART_TypeDef *) 4)
 
#define UART5   ((USART_TypeDef *) 5)
 
#define WS2811_DMA_TC_FLAG   1
 
#define WS2811_DMA_HANDLER_IDENTIFER   0
 
#define MAX_SIMULTANEOUS_ADJUSTMENT_COUNT   6
 

Typedefs

typedef enum FlagStatus ITStatus
 
typedef struct USART_Struct USART_TypeDef
 

Enumerations

enum  GPIO_Mode { Mode_TEST = 0x0, Mode_Out_PP = 0x10 }
 
enum  FlagStatus { RESET = 0, SET = !RESET }
 
enum  FunctionalState { DISABLE = 0, ENABLE = !DISABLE }
 
enum  IRQn_Type { TEST_IRQ = 0 }
 
enum  FLASH_Status {
  FLASH_BUSY = 1, FLASH_ERROR_PG, FLASH_ERROR_WRP, FLASH_COMPLETE,
  FLASH_TIMEOUT
}
 

Functions

uint8_t DMA_GetFlagStatus (uint32_t)
 
void DMA_Cmd (DMA_Channel_TypeDef *, FunctionalState)
 
void DMA_ClearFlag (uint32_t)
 
void FLASH_Unlock (void)
 
void FLASH_Lock (void)
 
FLASH_Status FLASH_ErasePage (uint32_t Page_Address)
 
FLASH_Status FLASH_ProgramWord (uint32_t Address, uint32_t Data)
 

Macro Definition Documentation

#define BARO
#define GPS
#define LED_STRIP
#define MAG
#define MAX_SIMULTANEOUS_ADJUSTMENT_COUNT   6
#define TELEMETRY
#define U_ID_0   0
#define U_ID_1   1
#define U_ID_2   2
#define UART4   ((USART_TypeDef *) 4)
#define UART5   ((USART_TypeDef *) 5)
#define USART1   ((USART_TypeDef *) 1)
#define USART2   ((USART_TypeDef *) 2)
#define USART3   ((USART_TypeDef *) 3)
#define USE_SERVOS
#define WS2811_DMA_HANDLER_IDENTIFER   0
#define WS2811_DMA_TC_FLAG   1

Typedef Documentation

typedef enum FlagStatus ITStatus
typedef struct USART_Struct USART_TypeDef

Enumeration Type Documentation

enum FlagStatus
Enumerator
RESET 
SET 
Enumerator
FLASH_BUSY 
FLASH_ERROR_PG 
FLASH_ERROR_WRP 
FLASH_COMPLETE 
FLASH_TIMEOUT 
Enumerator
DISABLE 
ENABLE 
enum GPIO_Mode
Enumerator
Mode_TEST 
Mode_Out_PP 
enum IRQn_Type
Enumerator
TEST_IRQ 

Function Documentation

void DMA_ClearFlag ( uint32_t  )
void DMA_Cmd ( DMA_Channel_TypeDef ,
FunctionalState   
)
uint8_t DMA_GetFlagStatus ( uint32_t  )
FLASH_Status FLASH_ErasePage ( uint32_t  Page_Address)

Here is the call graph for this function:

void FLASH_Lock ( void  )
FLASH_Status FLASH_ProgramWord ( uint32_t  Address,
uint32_t  Data 
)

Here is the call graph for this function:

void FLASH_Unlock ( void  )