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

UART Example Application main file. More...

Macros

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

Functions

static __INLINE void uart_quit ()
 Function for sending ' Exit!' string to UART. Execution is blocked until UART peripheral detects all characters have been sent.
 
static __INLINE void uart_start ()
 Function for sending 'Start: ' string to UART. Execution is blocked until UART peripheral detects all characters have been sent.
 
int main (void)
 Function for application main entry. More...
 

Detailed Description

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

Macro Definition Documentation

#define ERROR_PIN   (LED0)

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

int main ( void  )
Returns
0. int return type required by ANSI/ISO standard.