57 #if defined(PIOS_INCLUDE_VIDEO_QUADSPI)
58 #include <stm32f4xx_qspi.h>
69 QSPI_InitTypeDef qspi_init;
70 DMA_TypeDef *pixel_dma;
80 void (* set_x_offset)(int8_t);
128 #define GRAPHICS_LEFT 0
129 #define GRAPHICS_TOP 0
130 #define GRAPHICS_RIGHT pios_video_type_boundary_act->graphics_right
131 #define GRAPHICS_BOTTOM pios_video_type_boundary_act->graphics_bottom
133 #define GRAPHICS_X_MIDDLE ((GRAPHICS_RIGHT + 1) / 2)
134 #define GRAPHICS_Y_MIDDLE ((GRAPHICS_BOTTOM + 1) / 2)
137 #define VIDEO_TYPE_PAL_ROWS 300
140 #define GRAPHICS_WIDTH_REAL 376 // max columns
141 #define GRAPHICS_HEIGHT_REAL 266 // max lines
142 #if defined(PIOS_VIDEO_SPLITBUFFER)
143 #define BUFFER_WIDTH (GRAPHICS_WIDTH_REAL / 8 + 1) // Bytes plus one byte for SPI, needs to be multiple of 4 for alignment
144 #define BUFFER_HEIGHT (GRAPHICS_HEIGHT_REAL)
146 #define BUFFER_WIDTH_TMP (GRAPHICS_WIDTH_REAL / (8 / PIOS_VIDEO_BITS_PER_PIXEL))
147 #define BUFFER_WIDTH (BUFFER_WIDTH_TMP + BUFFER_WIDTH_TMP % 4)
148 #define BUFFER_HEIGHT (GRAPHICS_HEIGHT_REAL)
152 #define SWAP_BUFFS(tmp, a, b) { tmp = a; a = b; b = tmp; }
Types that are specific to the STM32 peripherals.
const struct pios_video_type_boundary * pios_video_type_boundary_act
const struct pios_exti_cfg * vsync
void PIOS_Video_SetXScale(uint8_t x_scale)
uint8_t graphics_line_start
void(* set_3d_config)(enum pios_video_3d_mode, uint8_t)
uint16_t graphics_height_real
enum pios_video_system PIOS_Video_GetSystem(void)
void(* set_bw_levels)(uint8_t, uint8_t)
struct pios_tim_channel pixel_timer
const struct pios_spi_cfg level
void PIOS_Video_SetYOffset(int8_t)
static struct flyingpicmd_cfg_fa cfg
void PIOS_Video_Set3DConfig(enum pios_video_3d_mode mode, uint8_t right_eye_x_shift)
TIM_OCInitTypeDef tim_oc_init
const struct pios_spi_cfg mask
void PIOS_Video_SetXOffset(int8_t)
void PIOS_Video_Init(const struct pios_video_cfg *cfg)
struct pios_tim_channel hsync_capture
void(* set_x_scale)(uint8_t)
void PIOS_Pixel_Init(void)
uint16_t PIOS_Video_GetLines(void)
void PIOS_Video_SetLevels(uint8_t, uint8_t)
uint16_t graphics_column_start
uint8_t dma_buffer_length