libws libws
WSwan hardware library for the Wonderful toolchain
|
Macros | |
#define | ws_dma_set_source(src) |
#define | ws_sdma_set_source(src) |
Functions | |
static void | ws_dma_set_sourcep (const void __far *src) |
static void | ws_dma_set_sourcei (uint32_t src) |
static void | ws_sdma_set_sourcep (const void __far *src) |
static void | ws_sdma_set_sourcei (uint32_t src) |
static void | ws_sdma_set_length (uint32_t length) |
void | ws_dma_copy_words_linear (void __wf_iram *dest, uint32_t src, uint16_t length) |
Copy words from a source linear address to a destination pointer using DMA. | |
static void | ws_dma_copy_words (void __wf_iram *dest, const void __far *src, uint16_t length) |
Copy words from a source pointer to a destination pointer using DMA. | |
void | ws_dma_opt_copy_words (void __wf_iram *dest, const void __far *src, uint16_t length) |
Copy words from a source pointer to a destination pointer, using DMA if present. | |
#define ws_dma_set_source | ( | src | ) |
#define ws_sdma_set_source | ( | src | ) |
|
inlinestatic |
Copy words from a source pointer to a destination pointer using DMA.
Note that this only works if Color mode is enabled - see system_is_color
dest | Destination pointer, in RAM. |
src | Source pointer, in any location. |
length | Length, in bytes. Must be a multiple of 2. |
void ws_dma_copy_words_linear | ( | void __wf_iram * | dest, |
uint32_t | src, | ||
uint16_t | length ) |
Copy words from a source linear address to a destination pointer using DMA.
Note that this only works if Color mode is enabled - see system_is_color
dest | Destination pointer, in RAM. |
src | Source linear (20-bit) address. |
length | Length, in bytes. Must be a multiple of 2. |
void ws_dma_opt_copy_words | ( | void __wf_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 |