/** ****************************************************************************** * @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 component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __MAIN_H #define __MAIN_H /* Includes ------------------------------------------------------------------*/ #include "stm32f4_discovery.h" #include "stm32f4_discovery_accelerometer.h" #include "stm32f4_discovery_audio.h" #include "mems.h" #include "audio_play.h" #include "audio_record.h" #include /* Exported types ------------------------------------------------------------*/ typedef struct { void (*DemoFunc)(void); uint8_t DemoName[50]; uint32_t DemoIndex; }BSP_DemoTypedef; /* Exported constants --------------------------------------------------------*/ #define COUNT_OF_EXAMPLE(x) (sizeof(x)/sizeof(BSP_DemoTypedef)) /* Size of the recorder buffer (Multiple of 4096, RAM_BUFFER_SIZE used in BSP) */ #define WR_BUFFER_SIZE 0x7000 /* Defines for the Audio playing process */ #define PAUSE_STATUS ((uint32_t)0x00) /* Audio Player in Pause Status */ #define RESUME_STATUS ((uint32_t)0x01) /* Audio Player in Resume Status */ #define IDLE_STATUS ((uint32_t)0x02) /* Audio Player in Idle Status */ /* Exported functions ------------------------------------------------------- */ void Toggle_Leds(void); void Error_Handler(void); #endif /* __MAIN_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/