/** ****************************************************************************** * @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"stm32469i_eval.h"#include"stm32469i_eval_ts.h"#include"stm32469i_eval_io.h"#include"stm32469i_eval_lcd.h"#include"stm32469i_eval_sd.h"#include"stm32469i_eval_sdram.h"#include"stm32469i_eval_sram.h"#include"stm32469i_eval_nor.h"#include"stm32469i_eval_eeprom.h"#include"stm32469i_eval_audio.h"#include"stm32469i_eval_camera.h"#include"stm32469i_eval_qspi.h"13 includesIncludes/* Macros --------------------------------------------------------------------*//* Macros */#ifdefUSE_FULL_ASSERT/* Assert activated */#defineBSP_TEST_APPLI_ASSERT(__error_condition__)do{if(__error_condition__)\{while(1);\...}\...}while(0).../* ... */#else/* Assert not activated : macro has no effect */#defineBSP_TEST_APPLI_ASSERT(__error_condition__)do{if(__error_condition__)\{;\...}\...}while(0).../* ... */#endif/* USE_FULL_ASSERT */#defineRGB565_BYTE_PER_PIXEL2#defineARBG8888_BYTE_PER_PIXEL4/* Camera have a max resolution of VGA : 640x480 */#defineCAMERA_RES_MAX_X640#defineCAMERA_RES_MAX_Y480/** * @brief LCD FB_StartAddress * LCD Frame buffer start address : starts at beginning of SDRAM *//* ... */#defineLCD_FB_LENGTH((uint32_t)(OTM8009A_480X800_HEIGHT*OTM8009A_480X800_WIDTH*ARBG8888_BYTE_PER_PIXEL))/** * @brief Camera frame buffer start address * Assuming LCD frame buffer is of size 480x800 and format ARGB8888 (32 bits per pixel). *//* ... */#defineCAMERA_FB_START_ADDR((uint32_t)(LCD_FB_START_ADDRESS+LCD_FB_LENGTH))#defineCAMERA_FB_LENGTH((uint32_t)(CAMERA_RES_MAX_X*CAMERA_RES_MAX_Y*RGB565_BYTE_PER_PIXEL))/** * @brief SDRAM Write read buffer start address after CAM Frame buffer * Assuming Camera frame buffer is of size 640x480 and format RGB565 (16 bits per pixel). *//* ... */#defineSDRAM_WRITE_READ_ADDR((uint32_t)(CAMERA_FB_START_ADDR+CAMERA_FB_LENGTH))#defineSDRAM_WRITE_READ_ADDR_OFFSET((uint32_t)0x0800)#defineAUDIO_REC_START_ADDRSDRAM_WRITE_READ_ADDR#defineAUDIO_REC_TOTAL_SIZE((uint32_t)0x0000E000)#defineAUDIO_RECPDM_START_ADDR(AUDIO_REC_START_ADDR+AUDIO_REC_TOTAL_SIZE)/* The Audio file is flashed with ST-Link Utility @ flash address = AUDIO_SRC_FILE_ADDRESS */#defineAUDIO_SRC_FILE_ADDRESS0x08080000/* Audio file address in flash */#defineAUDIO_FILE_SIZE0x8000014 definesMacros/* Exported types ------------------------------------------------------------*/typedefstruct{void(*DemoFunc)(void);uint8_tDemoName[50];uint32_tDemoIndex;...}BSP_DemoTypedef;externconstunsignedcharstlogo[];typedefenum{AUDIO_ERROR_NONE=0,AUDIO_ERROR_NOTREADY,AUDIO_ERROR_IO,AUDIO_ERROR_EOF,...}AUDIO_ErrorTypeDef;Exported types/* Exported variables ---------------------------------------------------*/externvolatileuint8_tmfx_exti_received;externLCD_OrientationTypeDeflcd_display_orientation;externvolatileuint32_tCamera_AllowDma2dCopyCamFrmBuffToLcdFrmBuff;Exported variables/* Exported constants --------------------------------------------------------*//* Exported macro ------------------------------------------------------------*/#defineCOUNT_OF_EXAMPLE(x)(sizeof(x)/sizeof(BSP_DemoTypedef))Exported macro/* Exported functions ------------------------------------------------------- */voidJoystick_gpio_demo(void);voidJoystick_exti_demo(void);voidJoystick_SetCursorPosition(void);voidAudioPlay_demo(void);voidAudioRec_demo(void);uint8_tTouchscreen_Calibration(void);uint16_tTouchScreen_Get_Calibrated_X(uint16_tx);uint16_tTouchScreen_Get_Calibrated_Y(uint16_ty);uint8_tTouchScreen_IsCalibrationDone(void);voidTouchscreen_demo1(void);voidTouchscreen_demo2(void);voidTouchscreen_demo3(void);voidLCD_demo(void);voidSD_demo(void);voidSD_exti_demo(void);voidLog_demo(void);voidSDRAM_demo(void);voidSDRAM_DMA_demo(void);voidSRAM_demo(void);voidNOR_demo(void);voidEEPROM_demo(void);voidCamera_demo(void);voidAnimation_demo(void);uint8_tAUDIO_Process(void);voidQSPI_demo(void);uint8_tCheckForUserInput(void);voidToggle_Leds(void);Exported functions/* ... */#endif/* __MAIN_H */
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.