| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
ssp.c File Reference
`#include "board.h"`

Go to the source code of this file.

## Macros
#define | LOOPBACK_TEST 1
#define | SSP_MODE_TEST 1 /*1: Master, 0: Slave */
#define | POLLING_MODE 0
#define | INTERRUPT_MODE 1
#define | BUFFER_SIZE (0x100)
#define | SSP_DATA_BITS (SSP_BITS_8)
#define | SSP_DATA_BIT_NUM(databits) (databits + 1)
#define | SSP_DATA_BYTES(databits) (((databits) > SSP_BITS_8) ? 2 : 1)
#define | SSP_LO_BYTE_MSK(databits)
#define | SSP_HI_BYTE_MSK(databits)
#define | LPC_SSP LPC_SSP0
#define | SSP_IRQ SSP0_IRQn
#define | SSPIRQHANDLER SSP0_IRQHandler

## Functions
static void | Buffer_Init (void)
static uint8_t | Buffer_Verify (void)
void | SSPIRQHANDLER (void)
| SSP interrupt handler sub-routine.
int | main (void)
| Main routine for SSP example.

## Variables
static uint8_t | Tx_Buf [BUFFER_SIZE]
static uint8_t | Rx_Buf [BUFFER_SIZE]
static SSP_ConfigFormat | ssp_format
static Chip_SSP_DATA_SETUP_T | xf_setup
static volatile uint8_t | isXferCompleted = 0