Audio Demo with DISCO Board, takes control samples, waits for user input, samples regularly.

Dependencies:   CMSIS_DSP_401 STM32L4xx_HAL_Driver mbed-src_DISO_AUDIO_DEMO

Committer:
EricLew
Date:
Sun Dec 13 19:12:11 2015 +0000
Revision:
0:3eee9435dd17
Audio Demo using DISCO Board

Who changed what in which revision?

UserRevisionLine numberNew contents of line
EricLew 0:3eee9435dd17 1 /**
EricLew 0:3eee9435dd17 2 ******************************************************************************
EricLew 0:3eee9435dd17 3 * @file main.h
EricLew 0:3eee9435dd17 4 * @author Central Labs
EricLew 0:3eee9435dd17 5 * @version V1.0.0
EricLew 0:3eee9435dd17 6 * @date 7-May-2015
EricLew 0:3eee9435dd17 7 * @brief Header for main.c module
EricLew 0:3eee9435dd17 8 ******************************************************************************
EricLew 0:3eee9435dd17 9 * @attention
EricLew 0:3eee9435dd17 10 *
EricLew 0:3eee9435dd17 11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
EricLew 0:3eee9435dd17 12 *
EricLew 0:3eee9435dd17 13 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
EricLew 0:3eee9435dd17 14 * You may not use this file except in compliance with the License.
EricLew 0:3eee9435dd17 15 * You may obtain a copy of the License at:
EricLew 0:3eee9435dd17 16 *
EricLew 0:3eee9435dd17 17 * http://www.st.com/software_license_agreement_liberty_v2
EricLew 0:3eee9435dd17 18 *
EricLew 0:3eee9435dd17 19 * Redistribution and use in source and binary forms, with or without modification,
EricLew 0:3eee9435dd17 20 * are permitted provided that the following conditions are met:
EricLew 0:3eee9435dd17 21 * 1. Redistributions of source code must retain the above copyright notice,
EricLew 0:3eee9435dd17 22 * this list of conditions and the following disclaimer.
EricLew 0:3eee9435dd17 23 * 2. Redistributions in binary form must reproduce the above copyright notice,
EricLew 0:3eee9435dd17 24 * this list of conditions and the following disclaimer in the documentation
EricLew 0:3eee9435dd17 25 * and/or other materials provided with the distribution.
EricLew 0:3eee9435dd17 26 * 3. Neither the name of STMicroelectronics nor the names of its contributors
EricLew 0:3eee9435dd17 27 * may be used to endorse or promote products derived from this software
EricLew 0:3eee9435dd17 28 * without specific prior written permission.
EricLew 0:3eee9435dd17 29 *
EricLew 0:3eee9435dd17 30 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
EricLew 0:3eee9435dd17 31 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
EricLew 0:3eee9435dd17 32 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
EricLew 0:3eee9435dd17 33 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
EricLew 0:3eee9435dd17 34 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
EricLew 0:3eee9435dd17 35 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
EricLew 0:3eee9435dd17 36 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
EricLew 0:3eee9435dd17 37 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
EricLew 0:3eee9435dd17 38 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
EricLew 0:3eee9435dd17 39 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
EricLew 0:3eee9435dd17 40 *
EricLew 0:3eee9435dd17 41 ********************************************************************************
EricLew 0:3eee9435dd17 42 */
EricLew 0:3eee9435dd17 43
EricLew 0:3eee9435dd17 44 /* Define to prevent recursive inclusion -------------------------------------*/
EricLew 0:3eee9435dd17 45 #ifndef __MAIN_H
EricLew 0:3eee9435dd17 46 #define __MAIN_H
EricLew 0:3eee9435dd17 47
EricLew 0:3eee9435dd17 48 /* Includes ------------------------------------------------------------------*/
EricLew 0:3eee9435dd17 49 #include "mbed.h"
EricLew 0:3eee9435dd17 50 #include "audio_if.h"
EricLew 0:3eee9435dd17 51 #include "stm32l4xx_hal_def.h"
EricLew 0:3eee9435dd17 52 #include "stm32l476g_discovery_audio.h"
EricLew 0:3eee9435dd17 53 #include "stm32l476g_discovery.h"
EricLew 0:3eee9435dd17 54 //AUDIO INCLUDES
EricLew 0:3eee9435dd17 55 #include "arm_math.h"
EricLew 0:3eee9435dd17 56 #include "arm_const_structs.h"
EricLew 0:3eee9435dd17 57 #include "math.h"
EricLew 0:3eee9435dd17 58 #include "core_cm4.h"
EricLew 0:3eee9435dd17 59 #include "core_cm4_simd.h"
EricLew 0:3eee9435dd17 60 #include "core_cmFunc.h"
EricLew 0:3eee9435dd17 61 #include "core_cmInstr.h"
EricLew 0:3eee9435dd17 62 #include "stdint.h"
EricLew 0:3eee9435dd17 63 //END AUDIO INCLUDES
EricLew 0:3eee9435dd17 64
EricLew 0:3eee9435dd17 65 /* Exported types ------------------------------------------------------------*/
EricLew 0:3eee9435dd17 66 /* Exported constants --------------------------------------------------------*/
EricLew 0:3eee9435dd17 67 /* Exported macro ------------------------------------------------------------*/
EricLew 0:3eee9435dd17 68 /* Exported functions ------------------------------------------------------- */
EricLew 0:3eee9435dd17 69
EricLew 0:3eee9435dd17 70
EricLew 0:3eee9435dd17 71 extern DigitalIn mybutton;
EricLew 0:3eee9435dd17 72 extern DigitalOut myled;
EricLew 0:3eee9435dd17 73 extern Serial pc;
EricLew 0:3eee9435dd17 74
EricLew 0:3eee9435dd17 75
EricLew 0:3eee9435dd17 76
EricLew 0:3eee9435dd17 77 #endif /* __MAIN_H */
EricLew 0:3eee9435dd17 78
EricLew 0:3eee9435dd17 79 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
EricLew 0:3eee9435dd17 80