nRF51 SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages

UART Example Application main file. More...

Macros

#define ERROR_PIN   (8)
 
#define MAX_TEST_DATA_BYTES   (15U)
 

Functions

static __INLINE void uart_quit ()
 Function for sending 'Exit!' string to UART. More...
 
static __INLINE void uart_start ()
 Function for sending 'Start:' string to UART. More...
 
int main (void)
 Function for main application entry.
 

Detailed Description

This file contains the source code for a sample application using UART.

example_board_setup_a.jpg
Use board setup A for this example.

Macro Definition Documentation

#define ERROR_PIN   (8)

gpio pin number to show error if loopback is enabled.

#define MAX_TEST_DATA_BYTES   (15U)

max number of test bytes to be used for tx and rx.

Function Documentation

static __INLINE void uart_quit ( )
static
Note
Execution is blocked until UART peripheral detects all characters have been sent.
static __INLINE void uart_start ( )
static

Execution is blocked until UART peripheral detects all characters have been sent.