![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
#include <stdlib.h>#include <string.h>#include "board.h"Go to the source code of this file.
Macros | |
| #define | TRANSFER_DST_ADDR 0x28500000 |
| #define | TRANSFER_SRC_ADDR 0x28100000 |
| #define | TRANSFER_SIZE 0x200000 |
| #define | TRANSFER_BLOCK_SZ (4 * 3 * 1024) /* 3K of data transfered per LLI */ |
| #define | DMA_DESCRIPTOR_COUNT 256 |
Functions | |
| static void | prepare_src_data (uint32_t *src, int sz) |
| static int | prepare_dma_desc (uint32_t *dst, const uint32_t *src, uint32_t sz) |
| static void | print_result (const void *dst, const void *src, int sz, uint32_t stime, uint32_t etime, const char *mode) |
| void | DMA_IRQHandler (void) |
| RIT interrupt handler. | |
| int | main (void) |
| Main entry point. | |
Variables | |
| static uint8_t | ch_no |
| static DMA_TransferDescriptor_t | desc_array [DMA_DESCRIPTOR_COUNT] |
| static volatile int | dma_xfer_complete |