precision-converters-firmware
Loading...
Searching...
No Matches
Macros | Functions | Variables
tft.c File Reference
#include "lv_conf.h"
#include "lvgl/lvgl.h"
#include <string.h>
#include "tft.h"
#include "stm32f7xx_hal.h"
#include "stm32f769i_discovery.h"
#include "stm32f769i_discovery_lcd.h"
#include "stm32f769i_discovery_sdram.h"
Include dependency graph for tft.c:

Macros

#define DMA_STREAM   DMA2_Stream0
 
#define DMA_CHANNEL   DMA_CHANNEL_0
 
#define DMA_STREAM_IRQ   DMA2_Stream0_IRQn
 
#define DMA_STREAM_IRQHANDLER(void)   DMA2_Stream0_IRQHandler
 This function handles DMA Stream interrupt request.
 
#define ZONES   1
 
#define VSYNC   OTM8009A_800X480_VSYNC
 
#define VBP   OTM8009A_800X480_VBP
 
#define VFP   OTM8009A_800X480_VFP
 
#define VACT   OTM8009A_800X480_HEIGHT
 
#define HSYNC   OTM8009A_800X480_HSYNC
 
#define HBP   OTM8009A_800X480_HBP
 
#define HFP   OTM8009A_800X480_HFP
 
#define HACT   (OTM8009A_800X480_WIDTH / ZONES)
 
#define LAYER0_ADDRESS   (LCD_FB_START_ADDRESS)
 

Functions

void DSI_IRQHandler (void)
 
void tft_init (void)
 
void BSP_LCD_MspInit (void)
 Initialize the BSP LCD Msp. Do not DMA2D is initialized by LVGL.
 

Variables

LTDC_HandleTypeDef hltdc_discovery
 
DSI_HandleTypeDef hdsi_discovery
 
DSI_VidCfgTypeDef hdsivideo_handle
 
DSI_CmdCfgTypeDef CmdCfg
 
DSI_LPCmdTypeDef LPCmd
 
DSI_PLLInitTypeDef dsiPllInit
 

Macro Definition Documentation

◆ DMA_CHANNEL

#define DMA_CHANNEL   DMA_CHANNEL_0

◆ DMA_STREAM

#define DMA_STREAM   DMA2_Stream0

◆ DMA_STREAM_IRQ

#define DMA_STREAM_IRQ   DMA2_Stream0_IRQn

◆ DMA_STREAM_IRQHANDLER

void DMA_STREAM_IRQHANDLER (   void)    DMA2_Stream0_IRQHandler

This function handles DMA Stream interrupt request.

Parameters
None
Return values
None

◆ HACT

#define HACT   (OTM8009A_800X480_WIDTH / ZONES)

◆ HBP

#define HBP   OTM8009A_800X480_HBP

◆ HFP

#define HFP   OTM8009A_800X480_HFP

◆ HSYNC

#define HSYNC   OTM8009A_800X480_HSYNC

◆ LAYER0_ADDRESS

#define LAYER0_ADDRESS   (LCD_FB_START_ADDRESS)

◆ VACT

#define VACT   OTM8009A_800X480_HEIGHT

◆ VBP

#define VBP   OTM8009A_800X480_VBP

◆ VFP

#define VFP   OTM8009A_800X480_VFP

◆ VSYNC

#define VSYNC   OTM8009A_800X480_VSYNC

◆ ZONES

#define ZONES   1

Function Documentation

◆ BSP_LCD_MspInit()

void BSP_LCD_MspInit ( void  )

Initialize the BSP LCD Msp. Do not DMA2D is initialized by LVGL.

Enable the LTDC clock

Toggle Sw reset of LTDC IP

Enable DSI Host and wrapper clocks

Soft Reset the DSI Host and wrapper

NVIC configuration for LTDC interrupt that is now enabled

NVIC configuration for DSI interrupt that is now enabled

◆ DSI_IRQHandler()

void DSI_IRQHandler ( void  )

◆ tft_init()

void tft_init ( void  )

Initialize your display here

Here is the caller graph for this function:

Variable Documentation

◆ CmdCfg

DSI_CmdCfgTypeDef CmdCfg

◆ dsiPllInit

DSI_PLLInitTypeDef dsiPllInit

◆ hdsi_discovery

DSI_HandleTypeDef hdsi_discovery
extern

◆ hdsivideo_handle

DSI_VidCfgTypeDef hdsivideo_handle

◆ hltdc_discovery

LTDC_HandleTypeDef hltdc_discovery
extern

◆ LPCmd

DSI_LPCmdTypeDef LPCmd