This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
/*
* interrupts.c
*
* Created on: 23 окт. 2021 г.
* Author: ivan
*/
#include "interrupts.h"
#include "downstream_spi.h"
/* DMA0_Channel0 handle function */
//receive
void DMA0_Channel1_IRQHandler(void){
if(dma_interrupt_flag_get(DMA0, DMA_CH1, DMA_INT_FLAG_FTF)){
DMA_SPI_TxRxCpltCallback();
dma_interrupt_flag_clear(DMA0, DMA_CH1, DMA_INT_FLAG_G);
}
//transmit
void DMA0_Channel2_IRQHandler(void){