21 #define SHARED_DMA_MAX_STREAM_ID (8*2) 24 #define SHARED_DMA_NONE 255 39 static void init(
void);
FUNCTOR_TYPEDEF(dma_allocate_fn_t, void, Shared_DMA *)
dma_allocate_fn_t deallocate
binary_semaphore_t semaphore
Shared_DMA(uint8_t stream_id1, uint8_t stream_id2, dma_allocate_fn_t allocate, dma_allocate_fn_t deallocate)
void unlock_from_lockzone(void)
static struct ChibiOS::Shared_DMA::dma_lock locks[SHARED_DMA_MAX_STREAM_ID]
dma_deallocate_fn_t deallocate
bool has_contention(void) const
void unlock_from_IRQ(void)
static void lock_all(void)
dma_allocate_fn_t allocate
#define SHARED_DMA_MAX_STREAM_ID