/** ****************************************************************************** * @file BSP/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"stdio.h"#include"stm32446e_eval.h"#include"stm32446e_eval_ts.h"#include"stm32446e_eval_io.h"#include"stm32446e_eval_lcd.h"#include"stm32446e_eval_sd.h"#include"stm32446e_eval_sdram.h"#include"stm32446e_eval_eeprom.h"#include"stm32446e_eval_camera.h"#include"stm32446e_eval_audio.h"#include"stm32446e_eval_qspi.h"11 includesIncludes/* Macros --------------------------------------------------------------------*/Macros/* Exported types ------------------------------------------------------------*/typedefstruct{void(*DemoFunc)(void);uint8_tDemoName[50];uint32_tDemoIndex;...}BSP_DemoTypedef;externconstunsignedcharstlogo[];Exported types/* Exported global variables ---------------------------------------------------*/externvolatileuint8_tMfxExtiReceived;#ifndefUSE_FULL_ASSERTexternuint16_tErrorCounter;#endifExported global variables/* Exported constants --------------------------------------------------------*//* Camera buffer requested space (at max resolution) */#defineCAMERA_RES_MAX_X480#defineCAMERA_RES_MAX_Y272#defineRGB565_BYTE_PER_PIXEL2/* Memories addresses */#defineFLASH_CODE_ADDRESS0x08000000#defineFLASH_DATA_ADDRESS0x08040000#defineSRAM_WRITE_READ_ADDR0x2000b000#defineSDRAM_WRITE_READ_ADDRSDRAM_DEVICE_ADDR+(CAMERA_RES_MAX_X*CAMERA_RES_MAX_Y*RGB565_BYTE_PER_PIXEL)/* Exported macro ------------------------------------------------------------*/#defineCOUNT_OF_EXAMPLE(x)(sizeof(x)/sizeof(BSP_DemoTypedef))8 defines#ifdefUSE_FULL_ASSERT/* Assert activated */#defineASSERT(__condition__)do{if(__condition__)\{assert_failed(__FILE__,__LINE__);\while(1);\...}\...}while(0).../* ... */#else/* Assert not activated : macro has no effect */#defineASSERT(__condition__)do{if(__condition__)\{ErrorCounter++;\...}\...}while(0).../* ... */#endif/* USE_FULL_ASSERT *//* Exported functions ------------------------------------------------------- */voidJoystick_polling_demo(void);voidJoystick_exti_demo(void);voidJoystick_SetCursorPosition(void);voidTouchscreen_polling_demo(void);voidAudioPlay_demo(void);voidLCD_demo(void);voidSD_demo(void);voidSD_exti_demo(void);voidLog_demo(void);voidSDRAM_demo(void);voidEEPROM_demo(void);voidCamera_demo(void);voidTouchscreen_Calibration(void);uint16_tCalibration_GetX(uint16_tx);uint16_tCalibration_GetY(uint16_ty);uint8_tIsCalibrationDone(void);uint8_tAUDIO_Process(void);voidQSPI_demo(void);uint8_tCheckForUserInput(void);voidToggle_Leds(void);Exported functions/* ... */#endif/* __MAIN_H */