summaryrefslogtreecommitdiff
path: root/bsp/k210/drivers/dmalock.h
blob: bca6a0d24aa8df9d6b6954f0b65669ab79583a3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef __DMALOCK_H
#define __DMALOCK_H

#include <stdint.h>
#include <rtdef.h>
#include <dmac.h>

#define dmalock_sync_take(x,y) _dmalock_sync_take(x, y, __func__)

void dmalock_init(void);
int _dmalock_sync_take(dmac_channel_number_t *chn, int timeout_ms, const char *name);
void dmalock_release(dmac_channel_number_t chn);

#endif