51 lines
2.0 KiB
C
51 lines
2.0 KiB
C
/**
|
|
******************************************************************************
|
|
* @file Display/LCD_PicturesFromSDCard/Inc/main.h
|
|
* @author MCD Application Team
|
|
* @brief Header for main.c module
|
|
******************************************************************************
|
|
* @attention
|
|
*
|
|
* Copyright (c) 2017 STMicroelectronics.
|
|
* All rights reserved.
|
|
*
|
|
* This software is licensed under terms that can be found in the LICENSE file
|
|
* in the root directory of this software component.
|
|
* If no LICENSE file comes with this software, it is provided AS-IS.
|
|
*
|
|
******************************************************************************
|
|
*/
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
#ifndef __MAIN_H
|
|
#define __MAIN_H
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include "stm32f769i_discovery.h"
|
|
#include "stm32f769i_discovery_lcd.h"
|
|
#include <stdlib.h>
|
|
#include "fatfs_storage.h"
|
|
|
|
/* FatFs includes component */
|
|
#include "ff_gen_drv.h"
|
|
#include "sd_diskio.h"
|
|
|
|
/* Exported types ------------------------------------------------------------*/
|
|
/* Exported constants --------------------------------------------------------*/
|
|
#define LCD_SCREEN_WIDTH 800
|
|
#define LCD_SCREEN_HEIGHT 480
|
|
#define ARGB8888_BYTE_PER_PIXEL 4
|
|
|
|
/* LTDC foreground layer address 800x480 in ARGB8888 */
|
|
#define LCD_FG_LAYER_ADDRESS LCD_FB_START_ADDRESS
|
|
|
|
/* LTDC background layer address 800x480 in ARGB8888 following the foreground layer */
|
|
#define LCD_BG_LAYER_ADDRESS LCD_FG_LAYER_ADDRESS + (LCD_SCREEN_WIDTH * LCD_SCREEN_HEIGHT * ARGB8888_BYTE_PER_PIXEL)
|
|
|
|
#define INTERNAL_BUFFER_START_ADDRESS LCD_BG_LAYER_ADDRESS + (LCD_SCREEN_WIDTH * LCD_SCREEN_HEIGHT * ARGB8888_BYTE_PER_PIXEL)
|
|
/* Exported macro ------------------------------------------------------------*/
|
|
/* Exported functions ------------------------------------------------------- */
|
|
|
|
#endif /* __MAIN_H */
|
|
|