2019-04-29 21:39:56 +08:00
|
|
|
/**
|
|
|
|
******************************************************************************
|
|
|
|
* @file LibJPEG/LibJPEG_Decoding/Inc/main.h
|
|
|
|
* @author MCD Application Team
|
|
|
|
* @brief Header for main.c module
|
|
|
|
******************************************************************************
|
|
|
|
* @attention
|
|
|
|
*
|
2021-12-14 16:25:05 +08:00
|
|
|
* Copyright (c) 2018 STMicroelectronics.
|
|
|
|
* All rights reserved.
|
2019-04-29 21:39:56 +08:00
|
|
|
*
|
2021-12-14 16:25:05 +08:00
|
|
|
* 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.
|
2019-04-29 21:39:56 +08:00
|
|
|
*
|
|
|
|
******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
|
|
#ifndef __MAIN_H
|
|
|
|
#define __MAIN_H
|
|
|
|
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
|
|
#include "stm32f7308_discovery.h"
|
|
|
|
#include "stm32f7308_discovery_lcd.h"
|
|
|
|
#include "lcd_log.h"
|
|
|
|
#include "usbh_msc.h"
|
|
|
|
#include "ff.h"
|
|
|
|
#include "usbh_core.h"
|
|
|
|
/* FatFs includes component */
|
|
|
|
#include "ff_gen_drv.h"
|
|
|
|
#include "usbh_diskio.h"
|
|
|
|
|
|
|
|
/* Jpeg includes component */
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include "jpeglib.h"
|
|
|
|
#include "decode.h"
|
|
|
|
|
|
|
|
/* Exported types ------------------------------------------------------------*/
|
|
|
|
typedef enum {
|
|
|
|
APPLICATION_IDLE = 0,
|
|
|
|
APPLICATION_READY,
|
|
|
|
APPLICATION_DISCONNECT,
|
|
|
|
APPLICATION_CONNECTING,
|
|
|
|
}JPG_ApplicationTypeDef;
|
|
|
|
|
|
|
|
/* Exported types ------------------------------------------------------------*/
|
|
|
|
typedef struct RGB
|
|
|
|
{
|
|
|
|
uint8_t B;
|
|
|
|
uint8_t G;
|
|
|
|
uint8_t R;
|
|
|
|
}RGB_typedef;
|
|
|
|
|
|
|
|
/* Exported constants --------------------------------------------------------*/
|
|
|
|
#define IMAGE_WIDTH 240
|
|
|
|
|
|
|
|
/* Uncomment the following line to swap Red and Blue */
|
|
|
|
/* #define SWAP_RB */
|
|
|
|
|
|
|
|
/* Exported macro ------------------------------------------------------------*/
|
|
|
|
/* Exported functions ------------------------------------------------------- */
|
|
|
|
#endif /* __MAIN_H */
|
|
|
|
|