Nathan Leprevier / Mbed OS Grecordeur

Dependencies:   LCD_DISCO_F746NG GRecorder BSP_DISCO_F746NG

Embed: (wiki syntax)

« Back to documentation index

tft.c File Reference

tft.c File Reference

Go to the source code of this file.

Functions

static uint8_t LCD_Init (void)
 Initializes the LCD.
static void DMA_TransferComplete (DMA_HandleTypeDef *han)
 DMA conversion complete callback.
static void DMA_TransferError (DMA_HandleTypeDef *han)
 DMA conversion error callback.
static void DMA2D_Config (void)
 DMA2D configuration.
void tft_init (void)
 Initialize your display here.
static void LCD_MspInit (void)
 Configure LCD pins, and peripheral clocks.
static void LCD_ClockConfig (void)
 Configure LTDC PLL.
void CPY_BUF_DMA_STREAM_IRQHANDLER (void)
 This function handles DMA Stream interrupt request.
static void DMA2D_TransferComplete (DMA2D_HandleTypeDef *hdma2d)
 DMA2D Transfer completed callback.
static void DMA2D_TransferError (DMA2D_HandleTypeDef *hdma2d)
 DMA2D error callbacks.

Detailed Description

Definition in file tft.c.


Function Documentation

void CPY_BUF_DMA_STREAM_IRQHANDLER ( void   )

This function handles DMA Stream interrupt request.

Parameters:
None
Return values:
None

Definition at line 507 of file tft.c.

static void DMA2D_Config ( void   ) [static]

DMA2D configuration.

Note:
This function Configure the DMA2D peripheral : 1) Configure the Transfer mode as memory to memory with blending. 2) Configure the output color mode as RGB565 pixel format. 3) Configure the foreground
  • first image loaded from FLASH memory
  • constant alpha value (decreased to see the background)
  • color mode as RGB565 pixel format 4) Configure the background
  • second image loaded from FLASH memory
  • color mode as RGB565 pixel format
Return values:
None

Definition at line 560 of file tft.c.

static void DMA2D_TransferComplete ( DMA2D_HandleTypeDef *  hdma2d ) [static]

DMA2D Transfer completed callback.

Parameters:
hdma2d,:DMA2D handle.
Note:
This example shows a simple way to report end of DMA2D transfer, and you can add your own implementation.
Return values:
None

Definition at line 529 of file tft.c.

static void DMA2D_TransferError ( DMA2D_HandleTypeDef *  hdma2d ) [static]

DMA2D error callbacks.

Parameters:
hdma2d,:DMA2D handle
Note:
This example shows a simple way to report DMA2D transfer error, and you can add your own implementation.
Return values:
None

Definition at line 541 of file tft.c.

static void DMA_TransferComplete ( DMA_HandleTypeDef *  han ) [static]

DMA conversion complete callback.

Note:
This function is executed when the transfer complete interrupt is generated
Return values:
None

Definition at line 466 of file tft.c.

static void DMA_TransferError ( DMA_HandleTypeDef *  han ) [static]

DMA conversion error callback.

Note:
This function is executed when the transfer error interrupt is generated during DMA transfer
Return values:
None

Definition at line 497 of file tft.c.

static void LCD_ClockConfig ( void   ) [static]

Configure LTDC PLL.

Definition at line 304 of file tft.c.

static uint8_t LCD_Init ( void   ) [static]

Initializes the LCD.

Return values:
LCDstate

Definition at line 324 of file tft.c.

static void LCD_MspInit ( void   ) [static]

Configure LCD pins, and peripheral clocks.

Definition at line 234 of file tft.c.

void tft_init ( void   )

Initialize your display here.

Definition at line 123 of file tft.c.