libws libws
WSwan hardware library for the Wonderful toolchain
Loading...
Searching...
No Matches
dma.h File Reference
#include <stdint.h>
#include <wonderful.h>
#include "memory.h"
#include "ports.h"

Go to the source code of this file.

Macros

#define ws_gdma_set_source(src)
 Set the initial source address of a general DMA transfer.
#define ws_gdma_copy(dest, src, length)
 Copy words from a source pointer to a destination pointer using DMA.
#define ws_sdma_set_source(src)
 Set the initial source address of a sound DMA transfer.

Functions

static void ws_gdma_set_destination (void ws_iram *address)
 Set the destination of a general DMA transfer.
static void ws_gdma_set_length (uint16_t length)
 Set the length of a general DMA transfer.
void ws_gdma_maybe_copy (void ws_iram *dest, const void __far *src, uint16_t length)
 Copy words from a source pointer to a destination pointer, using DMA if present.
static void ws_sdma_set_length (uint32_t length)
 Set the length of a sound DMA transfer.

Detailed Description

Functionality related to DMA transfers.

Definition in file dma.h.