Skip to content

Commit f20428c

Browse files
committed
Update subproject commit reference and refactor DMA initialization and transfer logic
1 parent 03086d6 commit f20428c

File tree

4 files changed

+190
-215
lines changed

4 files changed

+190
-215
lines changed

boards

include/esp32_smartdisplay_dma.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,6 @@
1212
#ifdef __cplusplus
1313
extern "C"
1414
{
15-
#endif
16-
17-
// DMA transfer configuration (default values, can be overridden via build flags)
18-
#ifndef SMARTDISPLAY_DMA_BUFFER_SIZE
19-
#define SMARTDISPLAY_DMA_BUFFER_SIZE (32 * 1024) // 32KB DMA buffer
20-
#endif
21-
22-
#ifndef SMARTDISPLAY_DMA_QUEUE_SIZE
23-
#define SMARTDISPLAY_DMA_QUEUE_SIZE 8 // Number of pending transfers
24-
#endif
25-
26-
#ifndef SMARTDISPLAY_DMA_CHUNK_THRESHOLD
27-
#define SMARTDISPLAY_DMA_CHUNK_THRESHOLD (4 * 1024) // Use DMA for transfers > 4KB
28-
#endif
29-
30-
#ifndef SMARTDISPLAY_DMA_TIMEOUT_MS
31-
#define SMARTDISPLAY_DMA_TIMEOUT_MS 1000 // DMA operation timeout
3215
#endif
3316

3417
// DMA transfer states

0 commit comments

Comments
 (0)