![]() |
Kinetis SDK v.1.2 Demo Applications User's Guide
Rev. 0
Freescale Semiconductor, Inc.
|
#include <stdio.h>
#include "board.h"
#include "fsl_clock_manager.h"
#include "fsl_os_abstraction.h"
#include "fsl_dspi_master_driver.h"
#include "fsl_debug_console.h"
Macros | |
#define | DSPI_MASTER_INSTANCE |
#define | TRANSFER_SIZE |
#define | TRANSFER_BAUDRATE |
Functions | |
int | main (void) |
DSPI master non-blocking. More... | |
Variables | |
uint8_t | receiveBuffer [TRANSFER_SIZE] |
uint8_t | sendBuffer [TRANSFER_SIZE] |
#define DSPI_MASTER_INSTANCE |
#define TRANSFER_BAUDRATE |
#define TRANSFER_SIZE |
int main | ( | void | ) |
Function prototype for main function.
Thid function uses DSPI master to send an array to slave and receive the array back from slave, thencompare whether the two buffers are the same.
receiveBuff | Buffer used to hold received data |
uint8_t receiveBuffer[TRANSFER_SIZE] |
Prototypes
uint8_t sendBuffer[TRANSFER_SIZE] |