Kinetis SDK v.1.2 Demo Applications User's Guide  Rev. 0
Freescale Semiconductor, Inc.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
driver_examples/dspi/dspi_loopback/main.c File Reference
#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_INSTANCE
 
#define TRANSFER_SIZE
 
#define TRANSFER_BAUDRATE
 
#define MASTER_TRANSFER_TIMEOUT
 

Functions

int main (void)
 DSPI loopback. More...
 

Variables

uint8_t receiveBuffer [TRANSFER_SIZE]
 
uint8_t sendBuffer [TRANSFER_SIZE]
 

Macro Definition Documentation

#define DSPI_INSTANCE
#define MASTER_TRANSFER_TIMEOUT
#define TRANSFER_BAUDRATE
#define TRANSFER_SIZE

Function Documentation

int main ( void  )

Function prototype for main function.

This function sends an array through DSPI loopback interface and compare it with received buffer whether they are the same.

Parameters
receiveBuffBuffer used to hold received data

Variable Documentation

uint8_t receiveBuffer[TRANSFER_SIZE]
uint8_t sendBuffer[TRANSFER_SIZE]