p igmon
/
uGen4x
PCM Digital Synthesizer
stm32f4xx_it.cpp@0:ad6637c36dc7, 2016-09-02 (annotated)
- Committer:
- p_igmon
- Date:
- Fri Sep 02 13:24:16 2016 +0000
- Revision:
- 0:ad6637c36dc7
for Micro Gen4 Synthesizer
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
p_igmon | 0:ad6637c36dc7 | 1 | /** |
p_igmon | 0:ad6637c36dc7 | 2 | ****************************************************************************** |
p_igmon | 0:ad6637c36dc7 | 3 | * @file stm32f4xx_it.c |
p_igmon | 0:ad6637c36dc7 | 4 | * @date 22/06/2014 09:00:07 |
p_igmon | 0:ad6637c36dc7 | 5 | * @brief Interrupt Service Routines. |
p_igmon | 0:ad6637c36dc7 | 6 | ****************************************************************************** |
p_igmon | 0:ad6637c36dc7 | 7 | * |
p_igmon | 0:ad6637c36dc7 | 8 | * COPYRIGHT(c) 2014 STMicroelectronics |
p_igmon | 0:ad6637c36dc7 | 9 | * |
p_igmon | 0:ad6637c36dc7 | 10 | * Redistribution and use in source and binary forms, with or without modification, |
p_igmon | 0:ad6637c36dc7 | 11 | * are permitted provided that the following conditions are met: |
p_igmon | 0:ad6637c36dc7 | 12 | * 1. Redistributions of source code must retain the above copyright notice, |
p_igmon | 0:ad6637c36dc7 | 13 | * this list of conditions and the following disclaimer. |
p_igmon | 0:ad6637c36dc7 | 14 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
p_igmon | 0:ad6637c36dc7 | 15 | * this list of conditions and the following disclaimer in the documentation |
p_igmon | 0:ad6637c36dc7 | 16 | * and/or other materials provided with the distribution. |
p_igmon | 0:ad6637c36dc7 | 17 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
p_igmon | 0:ad6637c36dc7 | 18 | * may be used to endorse or promote products derived from this software |
p_igmon | 0:ad6637c36dc7 | 19 | * without specific prior written permission. |
p_igmon | 0:ad6637c36dc7 | 20 | * |
p_igmon | 0:ad6637c36dc7 | 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
p_igmon | 0:ad6637c36dc7 | 22 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
p_igmon | 0:ad6637c36dc7 | 23 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
p_igmon | 0:ad6637c36dc7 | 24 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
p_igmon | 0:ad6637c36dc7 | 25 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
p_igmon | 0:ad6637c36dc7 | 26 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
p_igmon | 0:ad6637c36dc7 | 27 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
p_igmon | 0:ad6637c36dc7 | 28 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
p_igmon | 0:ad6637c36dc7 | 29 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
p_igmon | 0:ad6637c36dc7 | 30 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
p_igmon | 0:ad6637c36dc7 | 31 | * |
p_igmon | 0:ad6637c36dc7 | 32 | ****************************************************************************** |
p_igmon | 0:ad6637c36dc7 | 33 | */ |
p_igmon | 0:ad6637c36dc7 | 34 | |
p_igmon | 0:ad6637c36dc7 | 35 | #include "synthesizer.h" |
p_igmon | 0:ad6637c36dc7 | 36 | extern DigitalOut myled; |
p_igmon | 0:ad6637c36dc7 | 37 | extern DMA_HandleTypeDef hdma_i2s2_ext_tx; |
p_igmon | 0:ad6637c36dc7 | 38 | |
p_igmon | 0:ad6637c36dc7 | 39 | /******************************************************************************/ |
p_igmon | 0:ad6637c36dc7 | 40 | /* Cortex-M4 Processor Interruption and Exception Handlers */ |
p_igmon | 0:ad6637c36dc7 | 41 | /******************************************************************************/ |
p_igmon | 0:ad6637c36dc7 | 42 | |
p_igmon | 0:ad6637c36dc7 | 43 | /** |
p_igmon | 0:ad6637c36dc7 | 44 | * @brief This function handles System tick timer. |
p_igmon | 0:ad6637c36dc7 | 45 | */ |
p_igmon | 0:ad6637c36dc7 | 46 | /* |
p_igmon | 0:ad6637c36dc7 | 47 | void SysTick_Handler(void) |
p_igmon | 0:ad6637c36dc7 | 48 | { |
p_igmon | 0:ad6637c36dc7 | 49 | HAL_IncTick(); |
p_igmon | 0:ad6637c36dc7 | 50 | HAL_SYSTICK_IRQHandler(); |
p_igmon | 0:ad6637c36dc7 | 51 | } |
p_igmon | 0:ad6637c36dc7 | 52 | */ |
p_igmon | 0:ad6637c36dc7 | 53 | |
p_igmon | 0:ad6637c36dc7 | 54 | /** |
p_igmon | 0:ad6637c36dc7 | 55 | * @brief This function handles DMA1 Stream4 global interrupt. |
p_igmon | 0:ad6637c36dc7 | 56 | */ |
p_igmon | 0:ad6637c36dc7 | 57 | void DMA1_Stream4_IRQHandler(void) |
p_igmon | 0:ad6637c36dc7 | 58 | { |
p_igmon | 0:ad6637c36dc7 | 59 | HAL_NVIC_ClearPendingIRQ(DMA1_Stream4_IRQn); |
p_igmon | 0:ad6637c36dc7 | 60 | HAL_DMA_IRQHandler(&hdma_i2s2_ext_tx); |
p_igmon | 0:ad6637c36dc7 | 61 | // myled = ~myled; |
p_igmon | 0:ad6637c36dc7 | 62 | } |
p_igmon | 0:ad6637c36dc7 | 63 | |
p_igmon | 0:ad6637c36dc7 | 64 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |