/** ****************************************************************************** * @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"stm32412g_discovery.h"#include"stm32412g_discovery_lcd.h"#include"stm32412g_discovery_sd.h"#include"stm32412g_discovery_eeprom.h"#include"stm32412g_discovery_audio.h"#include"stm32412g_discovery_qspi.h"#include"stm32412g_discovery_ts.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;Exported global variables/* Exported constants --------------------------------------------------------*//* Memories addresses */#defineFLASH_CODE_ADDRESS0x08000000#defineFLASH_DATA_ADDRESS0x08040000#defineSRAM_WRITE_READ_ADDR0x2000b000#defineAUDIO_REC_START_ADDR0x20030000/* Exported macro ------------------------------------------------------------*/#defineCOUNT_OF_EXAMPLE(x)(sizeof(x)/sizeof(BSP_DemoTypedef))5 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_demo(void);voidJoystick_SetCursorPosition(void);voidAudioPlay_demo(void);voidAudioRecAnalog_demo(void);voidLCD_demo(void);voidTS_demo(void);voidSD_demo(void);voidSD_DMA_demo(void);voidSD_exti_demo(void);voidLog_demo(void);voidEEPROM_demo(void);uint8_tAUDIO_Process(void);voidQSPI_demo(void);uint8_tCheckForUserInput(void);voidToggle_Leds(void);voidAudioRecDfsdm_demo(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.