add aiit-riscv64-board for rt-thread

This commit is contained in:
Wang_Weigen
2022-03-14 17:30:12 +08:00
parent 56ab10f0e9
commit d528464e90
42 changed files with 6089 additions and 2 deletions
@@ -0,0 +1,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