[an error occurred while processing this directive]
|
При операциях с DMA нужно зарегистрировать свой call-back, который система вызовет по окончанию операции.
int alt_dma_txchan_send (alt_dma_txchan dma, const void* from,
alt_u32 length, alt_txchan_done* done,
void* handle)
The alt_dma_txchan_send() function posts a transmit request to a DMA
transmit channel. The input arguments are: dma, the channel to use; from, a pointer to the start of the data to send; length, the length of the data to send in bytes; done, a callback function that is called once the data has been sent; and handle, an opaque value passed to done. Whether this function is thread-safe, or can be called from an ISR is dependent on the underlying device driver. In general it should be assumed this is not the case.
E-mail: info@telesys.ru