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

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

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
LPC17xx/40xx Cyclic Redundancy Check (CRC) generator example
Peripheral examples

## Detailed Description

Example description
The CRC example demonstrates using the CRC engine for 8-bit, 16-bit, and 32-bit CRC computation. The CRC engine will run via CRC computations for 8-bit, 16-bit, and 32-bit blocks and verify the CRC checksum. The expected and actual results of the test are output on the UART. If the test fails, the LED will be on.

Special connection requirements
There are no special connection requirements for this example.

Build procedures:
LPC17xx/40xx example quickstart for Keil uVision4
LPC17xx/40xx example quickstart for IAR EWARM
LPC17xx/40xx example quickstart for Code Red Xpresso

Supported boards and board setup:
Embedded Artists' LPC1788 Developer's Kit
Embedded Artists' LPC4088 Developer's Kit

Submitting LPCOpen issues:
Community support for LPCOpen

## Macros
#define | EXPECTED_CCIT_SUM (0xFD2F)
#define | EXPECTED_CRC16_SUM (0x2799)
#define | EXPECTED_CRC32_SUM (0x100ECE8C)
#define | BLOCK_SIZE 0x40

## Functions
static void | initBlockData (uint8_t *p8)
int | main (void)
| Main program body.

## Macro Definition Documentation

#define BLOCK_SIZE 0x40

Definition at line 70 of file crc.c.

#define EXPECTED_CCIT_SUM (0xFD2F)

Definition at line 65 of file crc.c.

#define EXPECTED_CRC16_SUM (0x2799)

Definition at line 66 of file crc.c.

#define EXPECTED_CRC32_SUM (0x100ECE8C)

Definition at line 67 of file crc.c.

## Function Documentation

static void initBlockData | ( | uint8_t * | p8 | ) |
| static

Definition at line 81 of file crc.c.

int main | ( | void |  | ) |

Main program body.

Returns
  This function doesn't return

Definition at line 98 of file crc.c.