dmalock.h 334 B

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