embedded/projects/osp-steval-mki109v2/sources/boardsupport/stm32f10x_it.c
void DMA1_Channel4_IRQHandler(void)
{
#if defined STEVAL_MKI109V2
# ifdef UART_DMA_ENABLE
    void *pNewBuf;
    uint8_t *pPrintBuf;

    if(DMA_GetFlagStatus(DMA1_FLAG_TC4))
    {
        DMA_ClearFlag(DMA1_FLAG_TC4);

        /* Disable DMA Channel */
        DisableDbgUartDMAChannel();

        /*Get the next print buffer */
        pNewBuf = GetNextBuffer(&gDbgUartPort);
        if (pNewBuf != NULL)
        {
            pPrintBuf = M_GetBuffStart(pNewBuf);
            UartDMAConfiguration(&gDbgUartPort, pPrintBuf, M_GetBuffLen(pNewBuf));
            /* Enable DMA Channel Transfer complete interrupt */
            gDbgUartPort.EnableDMAxferCompleteInt();

            /* Enable DMA Channel for TX */
            gDbgUartPort.EnableDMAChannel();
        }
    }
# endif //UART_DMA_ENABLE
#endif
}
/****************************************************************************************************
 * @fn      DMA1_Channel4_IRQHandler
 *          This function handles DMA1 Channel 4 interrupt request.
 *
 ***************************************************************************************************/
@fn      DMA1_Channel4_IRQHandler
This function handles DMA1 Channel 4 interrupt request.
@fn DMA1_Channel4_IRQHandler This function handles DMA1 Channel 4 interrupt request .
void DMA1_Channel4_IRQHandler(void)
{
#if defined STEVAL_MKI109V2
# ifdef UART_DMA_ENABLE
    void *pNewBuf;
    uint8_t *pPrintBuf;
    if(DMA_GetFlagStatus(DMA1_FLAG_TC4))
    {
        DMA_ClearFlag(DMA1_FLAG_TC4);
        DisableDbgUartDMAChannel();
        pNewBuf = GetNextBuffer(&gDbgUartPort);
        if (pNewBuf != NULL)
        {
            pPrintBuf = M_GetBuffStart(pNewBuf);
            UartDMAConfiguration(&gDbgUartPort, pPrintBuf, M_GetBuffLen(pNewBuf));
            gDbgUartPort.EnableDMAxferCompleteInt();
            gDbgUartPort.EnableDMAChannel();
        }
    }
# endif 
#endif
}
void DMA1_Channel4_IRQHandler ( void ) { #if defined STEVAL_MKI109V2 # ifdef UART_DMA_ENABLE void * pNewBuf ; uint8_t * pPrintBuf ; if ( DMA_GetFlagStatus ( DMA1_FLAG_TC4 ) ) { DMA_ClearFlag ( DMA1_FLAG_TC4 ) ; DisableDbgUartDMAChannel ( ) ; pNewBuf = GetNextBuffer ( & gDbgUartPort ) ; if ( pNewBuf != NULL ) { pPrintBuf = M_GetBuffStart ( pNewBuf ) ; UartDMAConfiguration ( & gDbgUartPort , pPrintBuf , M_GetBuffLen ( pNewBuf ) ) ; gDbgUartPort . EnableDMAxferCompleteInt ( ) ; gDbgUartPort . EnableDMAChannel ( ) ; } } # endif #endif }
@fn      DMA1_Channel4_IRQHandler
          This function handles DMA1 Channel 4 interrupt request.
@fn DMA1_Channel4_IRQHandler This function handles DMA1 Channel 4 interrupt request .
/* Disable DMA Channel */ /*Get the next print buffer */ /* Enable DMA Channel Transfer complete interrupt */ /* Enable DMA Channel for TX */ //UART_DMA_ENABLE