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/flexio/uart/flexio_uart/main.c File Reference
#include "board.h"
#include "fsl_flexio_uart_driver.h"
#include "fsl_clock_manager.h"
#include "fsl_lpuart_driver.h"
#include "fsl_debug_console.h"

Macros

#define DATA_LENGTH
 
#define COMM_UART_INSTANCE
 

Functions

bool flexio_uart_compare (uint8_t *txBuff, uint8_t *rxBuff, uint32_t count)
 compare the data received with data sent. More...
 
void flexio_uart_reset_buffer (uint8_t *txBuff, uint32_t count)
 reset a buffer. More...
 
int main (void)
 Check send/receive blocking functionality. More...
 

Variables

static uint32_t s_flexioInstance
 
flexio_uart_state_t uartState
 
const uint8_t txBuff []
 
uint8_t rxBuff [DATA_LENGTH]
 

Macro Definition Documentation

#define COMM_UART_INSTANCE
#define DATA_LENGTH

Function Documentation

bool flexio_uart_compare ( uint8_t *  txBuff,
uint8_t *  rxBuff,
uint32_t  count 
)
Parameters
sourceThe pointer to send buffer
sinkThe pointer to received buffer
countThe number of bytes to be compared
Returns
true or false
void flexio_uart_reset_buffer ( uint8_t *  txBuff,
uint32_t  count 
)
Parameters
sourceThe pointer to the buffer
sizeof the buffer
int main ( void  )

Function prototype for main function.

Parameters
receiveBuffBuffer used to hold received data

Return code from each SSD function

Address of the target location

Return protection status

Number of longword or phrase to be verified

0=normal, 1=user, 2=factory - margin read for reading

Variable Documentation

uint8_t rxBuff[DATA_LENGTH]
uint32_t s_flexioInstance
static
const uint8_t txBuff[]
flexio_uart_state_t uartState