/** ****************************************************************************** * @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"stm32f413h_discovery.h"#include"stm32f413h_discovery_lcd.h"#include"stm32f413h_discovery_sd.h"#include"stm32f413h_discovery_qspi.h"#include"stm32f413h_discovery_ts.h"#include"stm32f413h_discovery_psram.h"#include"stm32f413h_discovery_audio.h"8 includes/* Macros --------------------------------------------------------------------*/IncludesMacros/* Exported types ------------------------------------------------------------*/typedefstruct{void(*DemoFunc)(void);uint8_tDemoName[50];uint32_tDemoIndex;...}BSP_DemoTypedef;typedefenum{AUDIO_ERROR_NONE=0,AUDIO_ERROR_NOTREADY,AUDIO_ERROR_IO,AUDIO_ERROR_EOF,...}AUDIO_ErrorTypeDef;externconstunsignedcharstlogo[];Exported types/* Exported global variables ---------------------------------------------------*/#ifndefUSE_FULL_ASSERTexternuint16_tErrorCounter;#endifexternuint32_tSdmmcTest;#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 */Exported global variables/* Exported constants --------------------------------------------------------*//* Exported macro ------------------------------------------------------------*/#defineCOUNT_OF_EXAMPLE(x)(sizeof(x)/sizeof(BSP_DemoTypedef))#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 macro/* Exported functions ------------------------------------------------------- */voidTouchscreen_demo1(void);voidTouchscreen_demo2(void);voidTouchscreen_demo3(void);voidJoystick_demo(void);voidJoystick_exti_demo(void);voidJoystick_SetCursorPosition(void);voidAudioPlay_demo(void);voidAudioRecDfsdm_demo(void);voidLCD_demo(void);voidSD_demo(void);voidSD_DMA_demo(void);voidSD_exti_demo(void);voidQSPI_demo(void);voidPSRAM_demo(void);voidPSRAM_DMA_demo(void);voidLog_demo(void);uint8_tAUDIO_Process(void);uint8_tTouchscreen_Calibration(void);uint16_tTouchScreen_Get_Calibrated_X(uint16_tx);uint16_tTouchScreen_Get_Calibrated_Y(uint16_ty);uint8_tTouchScreen_IsCalibrationDone(void);uint8_tTouchScreen_GetTouchPosition(void);voidTouchscreen_DrawBackground_Circles(uint8_tstate);voidTouchscreen_DrawControl_Buttons(void);uint8_tTouchScreen_GetTouchButtonPosition(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.