-
Notifications
You must be signed in to change notification settings - Fork 159
Expand file tree
/
Copy pathdma.c
More file actions
56 lines (38 loc) · 1.03 KB
/
dma.c
File metadata and controls
56 lines (38 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* SPDX-FileCopyrightText: 2026 Core Devices LLC */
/* SPDX-License-Identifier: Apache-2.0 */
#include <stdint.h>
#include <stdbool.h>
#include "drivers/dma.h"
T_STATIC DMADirectRequestHandler handlers[DMA_CHANNEL_NUM];
static void dma_cplt_callback(DMA_HandleTypeDef *hdma)
{
}
void dma_request_init(DMARequest *this)
{
}
void dma_request_start_direct(DMARequest *this, void *dst, const void *src, uint32_t length,
DMADirectRequestHandler handler, void *context)
{
}
void dma_request_start_circular(DMARequest *this, void *dst, const void *src, uint32_t length,
DMACircularRequestHandler handler, void *context)
{
}
void dma_request_stop(DMARequest *this)
{
}
bool dma_request_in_progress(DMARequest *this)
{
return true;
}
uint32_t dma_request_get_current_data_counter(DMARequest *this)
{
return 0;
}
bool dma_request_get_and_clear_transfer_error(DMARequest *this);
{
return true;
}
void dma_request_set_memory_increment_disabled(DMARequest *this, bool disabled)
{
}