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 system_stm32l4xx.h
EricLew 0:3eee9435dd17 4 * @author MCD Application Team
EricLew 0:3eee9435dd17 5 * @version V1.0.1
EricLew 0:3eee9435dd17 6 * @date 16-September-2015
EricLew 0:3eee9435dd17 7 * @brief CMSIS Cortex-M4 Device System Source File for STM32L4xx devices.
EricLew 0:3eee9435dd17 8 ******************************************************************************
EricLew 0:3eee9435dd17 9 * @attention
EricLew 0:3eee9435dd17 10 *
EricLew 0:3eee9435dd17 11 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
EricLew 0:3eee9435dd17 12 *
EricLew 0:3eee9435dd17 13 * Redistribution and use in source and binary forms, with or without modification,
EricLew 0:3eee9435dd17 14 * are permitted provided that the following conditions are met:
EricLew 0:3eee9435dd17 15 * 1. Redistributions of source code must retain the above copyright notice,
EricLew 0:3eee9435dd17 16 * this list of conditions and the following disclaimer.
EricLew 0:3eee9435dd17 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
EricLew 0:3eee9435dd17 18 * this list of conditions and the following disclaimer in the documentation
EricLew 0:3eee9435dd17 19 * and/or other materials provided with the distribution.
EricLew 0:3eee9435dd17 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
EricLew 0:3eee9435dd17 21 * may be used to endorse or promote products derived from this software
EricLew 0:3eee9435dd17 22 * without specific prior written permission.
EricLew 0:3eee9435dd17 23 *
EricLew 0:3eee9435dd17 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
EricLew 0:3eee9435dd17 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
EricLew 0:3eee9435dd17 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
EricLew 0:3eee9435dd17 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
EricLew 0:3eee9435dd17 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
EricLew 0:3eee9435dd17 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
EricLew 0:3eee9435dd17 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
EricLew 0:3eee9435dd17 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
EricLew 0:3eee9435dd17 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
EricLew 0:3eee9435dd17 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
EricLew 0:3eee9435dd17 34 *
EricLew 0:3eee9435dd17 35 ******************************************************************************
EricLew 0:3eee9435dd17 36 */
EricLew 0:3eee9435dd17 37
EricLew 0:3eee9435dd17 38 /** @addtogroup CMSIS
EricLew 0:3eee9435dd17 39 * @{
EricLew 0:3eee9435dd17 40 */
EricLew 0:3eee9435dd17 41
EricLew 0:3eee9435dd17 42 /** @addtogroup stm32l4xx_system
EricLew 0:3eee9435dd17 43 * @{
EricLew 0:3eee9435dd17 44 */
EricLew 0:3eee9435dd17 45
EricLew 0:3eee9435dd17 46 /**
EricLew 0:3eee9435dd17 47 * @brief Define to prevent recursive inclusion
EricLew 0:3eee9435dd17 48 */
EricLew 0:3eee9435dd17 49 #ifndef __SYSTEM_STM32L4XX_H
EricLew 0:3eee9435dd17 50 #define __SYSTEM_STM32L4XX_H
EricLew 0:3eee9435dd17 51
EricLew 0:3eee9435dd17 52 #ifdef __cplusplus
EricLew 0:3eee9435dd17 53 extern "C" {
EricLew 0:3eee9435dd17 54 #endif
EricLew 0:3eee9435dd17 55
EricLew 0:3eee9435dd17 56 /** @addtogroup STM32L4xx_System_Includes
EricLew 0:3eee9435dd17 57 * @{
EricLew 0:3eee9435dd17 58 */
EricLew 0:3eee9435dd17 59
EricLew 0:3eee9435dd17 60 /**
EricLew 0:3eee9435dd17 61 * @}
EricLew 0:3eee9435dd17 62 */
EricLew 0:3eee9435dd17 63
EricLew 0:3eee9435dd17 64
EricLew 0:3eee9435dd17 65 /** @addtogroup STM32L4xx_System_Exported_types
EricLew 0:3eee9435dd17 66 * @{
EricLew 0:3eee9435dd17 67 */
EricLew 0:3eee9435dd17 68 /* This variable is updated in three ways:
EricLew 0:3eee9435dd17 69 1) by calling CMSIS function SystemCoreClockUpdate()
EricLew 0:3eee9435dd17 70 2) by calling HAL API function HAL_RCC_GetSysClockFreq()
EricLew 0:3eee9435dd17 71 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
EricLew 0:3eee9435dd17 72 Note: If you use this function to configure the system clock; then there
EricLew 0:3eee9435dd17 73 is no need to call the 2 first functions listed above, since SystemCoreClock
EricLew 0:3eee9435dd17 74 variable is updated automatically.
EricLew 0:3eee9435dd17 75 */
EricLew 0:3eee9435dd17 76 extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
EricLew 0:3eee9435dd17 77
EricLew 0:3eee9435dd17 78 extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */
EricLew 0:3eee9435dd17 79 extern const uint32_t MSIRangeTable[12]; /*!< MSI ranges table values */
EricLew 0:3eee9435dd17 80
EricLew 0:3eee9435dd17 81 /**
EricLew 0:3eee9435dd17 82 * @}
EricLew 0:3eee9435dd17 83 */
EricLew 0:3eee9435dd17 84
EricLew 0:3eee9435dd17 85 /** @addtogroup STM32L4xx_System_Exported_Constants
EricLew 0:3eee9435dd17 86 * @{
EricLew 0:3eee9435dd17 87 */
EricLew 0:3eee9435dd17 88
EricLew 0:3eee9435dd17 89 /**
EricLew 0:3eee9435dd17 90 * @}
EricLew 0:3eee9435dd17 91 */
EricLew 0:3eee9435dd17 92
EricLew 0:3eee9435dd17 93 /** @addtogroup STM32L4xx_System_Exported_Macros
EricLew 0:3eee9435dd17 94 * @{
EricLew 0:3eee9435dd17 95 */
EricLew 0:3eee9435dd17 96
EricLew 0:3eee9435dd17 97 /**
EricLew 0:3eee9435dd17 98 * @}
EricLew 0:3eee9435dd17 99 */
EricLew 0:3eee9435dd17 100
EricLew 0:3eee9435dd17 101 /** @addtogroup STM32L4xx_System_Exported_Functions
EricLew 0:3eee9435dd17 102 * @{
EricLew 0:3eee9435dd17 103 */
EricLew 0:3eee9435dd17 104
EricLew 0:3eee9435dd17 105 extern void SystemInit(void);
EricLew 0:3eee9435dd17 106 extern void SystemCoreClockUpdate(void);
EricLew 0:3eee9435dd17 107 /**
EricLew 0:3eee9435dd17 108 * @}
EricLew 0:3eee9435dd17 109 */
EricLew 0:3eee9435dd17 110
EricLew 0:3eee9435dd17 111 #ifdef __cplusplus
EricLew 0:3eee9435dd17 112 }
EricLew 0:3eee9435dd17 113 #endif
EricLew 0:3eee9435dd17 114
EricLew 0:3eee9435dd17 115 #endif /*__SYSTEM_STM32L4XX_H */
EricLew 0:3eee9435dd17 116
EricLew 0:3eee9435dd17 117 /**
EricLew 0:3eee9435dd17 118 * @}
EricLew 0:3eee9435dd17 119 */
EricLew 0:3eee9435dd17 120
EricLew 0:3eee9435dd17 121 /**
EricLew 0:3eee9435dd17 122 * @}
EricLew 0:3eee9435dd17 123 */
EricLew 0:3eee9435dd17 124 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
EricLew 0:3eee9435dd17 125