예제 #1
0
externC void cyg_drv_interrupt_delete( cyg_handle_t interrupt )
{
    CYG_REPORT_FUNCTION();

    cyg_drv_interrupt_detach( interrupt );
    
    CYG_REPORT_RETURN();    
}
예제 #2
0
void hal_stm32_dma_delete( hal_stm32_dma_stream *stream )
{
    dma_diag("ctlr %08x stream %d chan %d\n", stream->ctlr, stream->stream,
             CYGHWR_HAL_STM32_DMA_CHANNEL(stream->desc) );

    // Clear CCR, disables stream
    HAL_WRITE_UINT32(stream->ctlr+CYGHWR_HAL_STM32_DMA_CCR(stream->stream), 0 );

    // Mask, detach and delete interrupt object
    cyg_drv_interrupt_mask( CYGHWR_HAL_STM32_DMA_INTERRUPT(stream->desc) );
    cyg_drv_interrupt_detach( stream->handle );
    cyg_drv_interrupt_delete( stream->handle );
}