1 #ifndef __DMALOCK_H 2 #define __DMALOCK_H 3 4 #include <stdint.h> 5 #include <rtdef.h> 6 #include <dmac.h> 7 8 #define dmalock_sync_take(x,y) _dmalock_sync_take(x, y, __func__) 9 10 void dmalock_init(void); 11 int _dmalock_sync_take(dmac_channel_number_t *chn, int timeout_ms, const char *name); 12 void dmalock_release(dmac_channel_number_t chn); 13 14 #endif 15