an2739_waveplay(2009-10-14)

所属分类:多媒体编程
开发工具:C/C++
文件大小:5244KB
下载次数:7
上传日期:2010-06-02 22:16:10
上 传 者pengyang_954
说明:  播放wav文件的例程。在官方基础上替换了音频CODEC的驱动。
(Play wav file routines. Based on the replacement of the official audio CODEC driver.)

文件列表:
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\CMSIS\Core\CM3\core_cm3.c (16249, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\CMSIS\Core\CM3\core_cm3.h (42077, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_hd.s (15872, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_ld.s (12236, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_md.s (12564, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c (16437, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_ld.c (12790, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_md.c (13104, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_hd.s (16573, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_ld.s (12001, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_md.s (12492, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\CMSIS\Core\CM3\stm32f10x.h (530869, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\CMSIS\Core\CM3\system_stm32f10x.c (24166, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\CMSIS\Core\CM3\system_stm32f10x.h (2158, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\CMSIS\Core\Documentation\CMSIS_Core.htm (50779, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\misc.h (4951, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_adc.h (19558, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_bkp.h (7373, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_can.h (14289, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_crc.h (1980, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dac.h (10271, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dbgmcu.h (2980, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dma.h (18790, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_exti.h (5833, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_flash.h (14446, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_fsmc.h (17276, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_gpio.h (15050, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_i2c.h (16923, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_iwdg.h (3677, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_pwr.h (4201, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_rcc.h (16258, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_rtc.h (3659, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_sdio.h (18598, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_spi.h (14896, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_tim.h (48768, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_usart.h (14483, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_wwdg.h (2785, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\src\misc.c (6874, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_adc.c (46634, 2009-04-25)
an2739_waveplay\STM32F10x_AN2739_FW_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_bkp.c (8248, 2009-04-25)
... ...

/** @page I2S_Audio_Codec AN2739 I2S_Audio_Codec Readme file @verbatim ******************** (C) COPYRIGHT 2009 STMicroelectronics ******************* * @file I2S_Audio_Codec/readme.txt * @author MCD Application Team * @version V2.0.0 * @date 04/27/2009 * @brief The AN2739 application note describes how to use the high-density * devices I2S feature to play audio files using an external codec. ****************************************************************************** * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. ****************************************************************************** @endverbatim @par Description This application note describes how to use the high-density devices I2S feature to play audio files using an external codec. @par Directory contents + inc - I2S_Audio_Codec/inc/fonts.h LCD fonts size definition - I2S_Audio_Codec/inc/fsmc_nor.h FSMC NOR driver Header file - I2S_Audio_Codec/inc/i2s_codec.h I2S codec driver Header file - I2S_Audio_Codec/inc/stm3210e_lcd.h LCD Header file - I2S_Audio_Codec/inc/main.h Main Header file - I2S_Audio_Codec/inc/spi_flash.h SPI Flash driver Header file - I2S_Audio_Codec/inc/stm32f10x_conf.h Library Configuration file - I2S_Audio_Codec/inc/stm32f10x_it.h Interrupt handlers header file + src - I2S_Audio_Codec/src/fsmc_nor.c FSMC NOR driver firmware functions - I2S_Audio_Codec/src/i2s_codec.c I2S codec driver firmware functions - I2S_Audio_Codec/src/main.c Main program - I2S_Audio_Codec/src/stm3210e_lcd.c LCD driver firmware functions - I2S_Audio_Codec/src/spi_flash.c SPI Flash drvier firmware functions - I2S_Audio_Codec/src/stm32f10x_it.c Interrupt handlers @par Hardware and Software environment - This example runs on STM32F10x High-Density Devices. - This example has been tested with STMicroelectronics STM3210E-EVAL (STM32F10x High-Density) evaluation board and can be easily tailored to any other supported device and development board. - STM3210E-EVAL Set-up - Since the MCLK feature is enabled, configure MCKI Jumper (JP18) in the 2<>3 position to connect the I2S2 MCLK signal to the MCLKI codec pin. @note If the audio file to be played has a big size, it should be previously loaded into the memory source (NOR Flash memory or SPI Flash) using an independent application (IAP, DFU, etc.). It may also be included as a table file. @par How to use it ? - RVMDK - Open the I2S_Audio_Codec.Uv2 project - In the build toolbar select the project config: - Rebuild all files: Project->Rebuild all target files - Load project image: Debug->Start/Stop Debug Session - Run program: Debug->Run (F5) - EWARM5 - Open the I2S_Audio_Codec.eww workspace. - Rebuild all files: Project->Rebuild all - Load project image: Project->Debug - Run program: Debug->Go(F5) - RIDE - Open the I2S_Audio_Codec.rprj project. - Rebuild all files: Project->build project - Load project image: Debug->start(ctrl+D) - Run program: Debug->Run(ctrl+F9) @note - High-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 256 and 512 Kbytes. *

© COPYRIGHT 2009 STMicroelectronics

*/

近期下载者

相关文件


收藏者