30 chBSemObjectInit(&
locks[i].semaphore,
false);
37 dma_allocate_fn_t _allocate,
38 dma_deallocate_fn_t _deallocate)
138 osalDbgAssert(
have_lock,
"must have lock");
151 osalDbgAssert(
have_lock,
"must have lock");
166 osalDbgAssert(
have_lock,
"must have lock");
175 chSysUnlockFromISR();
185 chBSemWait(&
locks[i].semaphore);
dma_allocate_fn_t deallocate
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
void unlock_from_IRQ(void)
static void lock_all(void)
dma_allocate_fn_t allocate
#define SHARED_DMA_MAX_STREAM_ID