![]() |
Kinetis SDK v.1.2 Demo Applications User's Guide
Rev. 0
Freescale Semiconductor, Inc.
|
#include <stdio.h>
#include <string.h>
#include "board.h"
#include "fsl_os_abstraction.h"
#include "fsl_dma_driver.h"
#include "fsl_debug_console.h"
Macros | |
#define | BUFFER_SIZE |
#define | TRANSFER_SIZE |
Functions | |
void | DMA_callback (void *param, dma_channel_status_t chanStatus) |
EDMA callback. More... | |
int | main (void) |
DMA transfers form memory to memory. More... | |
Variables | |
const uint8_t | srcAddr [BUFFER_SIZE] |
uint8_t | destAddr [BUFFER_SIZE] |
semaphore_t | sema |
#define BUFFER_SIZE |
#define TRANSFER_SIZE |
void DMA_callback | ( | void * | param, |
dma_channel_status_t | chanStatus | ||
) |
int main | ( | void | ) |
Function prototype for main function.
This function use DMA peripheral to transfer two buffers
receiveBuff | Buffer used to hold received data |
uint8_t destAddr[BUFFER_SIZE] |
semaphore_t sema |
const uint8_t srcAddr[BUFFER_SIZE] |