/** ****************************************************************************** * @file Audio/Audio_playback_and_record/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"stm32f4xx_hal.h"#include"stm32f4_discovery.h"#include"stm32f4_discovery_audio.h"#include"stm32f4_discovery_accelerometer.h"#include<stdio.h>#include"stm32f4xx_it.h"#include"waveplayer.h"#include"waverecorder.h"#include"ff.h"#include"ff_gen_drv.h"#include"usbh_diskio_dma.h"11 includesIncludes/* Exported types ------------------------------------------------------------*//* Exported constants --------------------------------------------------------*//* Uncomment this define to disable repeat feature *//* #define PLAY_REPEAT_DISABLED */typedefenum{APPLICATION_IDLE=0,APPLICATION_START,APPLICATION_RUNNING,...}MSC_ApplicationTypeDef;/* You can change the Wave file name as you need, but do not exceed 11 characters */#defineWAVE_NAME"0:audio_sample.wav"#defineREC_WAVE_NAME"0:rec.wav"/* State Machine for the USBH_USR_ApplicationState */#defineUSBH_USR_FS_INIT((uint8_t)0x00)#defineUSBH_USR_AUDIO((uint8_t)0x01)/* Defines for the Audio used commands */#defineCMD_PLAY((uint32_t)0x00)#defineCMD_RECORD((uint32_t)0x01)#defineCMD_STOP((uint32_t)0x02)/* Defines for LEDs lighting */#defineLED3_TOGGLE0x03/* Toggle LED3 */#defineLED4_TOGGLE0x04/* Toggle LED4 */#defineLED6_TOGGLE0x06/* Toggle LED6 */#defineLEDS_OFF0x07/* Turn OFF all LEDs */#defineSTOP_TOGGLE0x00/* Stop LED Toggling *//* Defines for the Audio playing process */#definePAUSE_STATUS((uint32_t)0x00)/* Audio Player in Pause Status */#defineRESUME_STATUS((uint32_t)0x01)/* Audio Player in Resume Status */#defineIDLE_STATUS((uint32_t)0x02)/* Audio Player in Idle Status */#defineREPEAT_ON((uint32_t)0x00)/* Replay Status in ON */#defineREPEAT_OFF((uint32_t)0x01)/* Replay Status in OFF *//* Defines for MEMS Acclerometer ID Types */#defineMEMS_LIS3DSH0x3F/* LIS3DSH MEMS Acclerometer ID */#defineMEMS_LIS302DL0x3B/* LIS302DL MEMS Acclerometer ID */19 definesExported constants/* Exported macro ------------------------------------------------------------*//* Exported functions ------------------------------------------------------- */voidError_Handler(void);Exported functions/* ... */#endif/* __MAIN_H */