Part of MicroGen4 Music Synthesizer Program. (But not test it yet.) I2S ,DMA ,Stereo ,16Bit Dac(PCM1781) See detail: http://www.geocities.jp/micro_diys/index2
stm32f4xx_it.cpp
00001 /** 00002 ****************************************************************************** 00003 * @file stm32f4xx_it.c 00004 * @date 22/06/2014 09:00:07 00005 * @brief Interrupt Service Routines. 00006 ****************************************************************************** 00007 * 00008 * COPYRIGHT(c) 2014 STMicroelectronics 00009 * 00010 * Redistribution and use in source and binary forms, with or without modification, 00011 * are permitted provided that the following conditions are met: 00012 * 1. Redistributions of source code must retain the above copyright notice, 00013 * this list of conditions and the following disclaimer. 00014 * 2. Redistributions in binary form must reproduce the above copyright notice, 00015 * this list of conditions and the following disclaimer in the documentation 00016 * and/or other materials provided with the distribution. 00017 * 3. Neither the name of STMicroelectronics nor the names of its contributors 00018 * may be used to endorse or promote products derived from this software 00019 * without specific prior written permission. 00020 * 00021 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00022 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00023 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00024 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00025 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00026 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00027 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00028 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00029 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00030 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00031 * 00032 ****************************************************************************** 00033 */ 00034 00035 #include "synthesizer.h" 00036 extern DigitalOut myled; 00037 extern DMA_HandleTypeDef hdma_i2s2_ext_tx; 00038 00039 /******************************************************************************/ 00040 /* Cortex-M4 Processor Interruption and Exception Handlers */ 00041 /******************************************************************************/ 00042 00043 /** 00044 * @brief This function handles System tick timer. 00045 */ 00046 /* 00047 void SysTick_Handler(void) 00048 { 00049 HAL_IncTick(); 00050 HAL_SYSTICK_IRQHandler(); 00051 } 00052 */ 00053 00054 /** 00055 * @brief This function handles DMA1 Stream4 global interrupt. 00056 */ 00057 void DMA1_Stream4_IRQHandler(void) 00058 { 00059 HAL_NVIC_ClearPendingIRQ(DMA1_Stream4_IRQn); 00060 HAL_DMA_IRQHandler(&hdma_i2s2_ext_tx); 00061 // myled = ~myled; 00062 } 00063 00064 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 00065
Generated on Wed Jul 13 2022 10:27:32 by 1.7.2