libws libws
WSwan hardware library for the Wonderful toolchain
|
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. |
#define ws_gdma_copy | ( | dest, | |
src, | |||
length ) |
Copy words from a source pointer to a destination pointer using DMA.
Note that this only works if Color mode is enabled - see ws_system_is_color For a function which works always, see ws_gdma_maybe_copy
dest | Destination pointer, in RAM. |
src | Source linear (20-bit) address. |
length | Length, in bytes. Must be a multiple of 2. |
#define ws_gdma_set_source | ( | src | ) |
Set the initial source address of a general DMA transfer.
One can specify a pointer, such as MK_FP(0x2100, 0x1234), or an integer representing a linear CPU address, such as 0x22234.
src | The source address. |
#define ws_sdma_set_source | ( | src | ) |
Set the initial source address of a sound DMA transfer.
One can specify a pointer, such as MK_FP(0x2100, 0x1234), or an integer representing a linear CPU address, such as 0x22234.
src | The source address. |
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.
dest | Destination pointer, in RAM. |
src | Source pointer, in any location. |
length | Length, in bytes. Must be a multiple of 2. |
|
inlinestatic |
|
inlinestatic |