LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CHIP: LPC17xx/40xx Chip driver build time options

Detailed Description

Some chip drivers require build-time configuration to enable and disable specific platform features. A build-time option is configured by the use of a definition passed to the compiler during the build process or by adding the definition to the sys_config.h file.

How to add definitions using the compiler argument list: Adding platform definitions using the compiler
How to add definitions using sys_config.h: Adding platform definitions using sys_config.h

CORE_M3 and CORE_M4 definitions
LPC175x, LPC176x, LPC177x, and LPC178x should add a unvalued CORE_M3 definition to the compilers argument list. Do not add this definition as part of sys_config.h, as the CMSIS code doesn't include sys_config.h.

LPC407x and LPC408x should add a unvalued CORE_M4 definition to the compilers argument list. Do not add this definition as part of sys_config.h.

CHIP_LPC175X_6X, CHIP_LPC177X_8X, and CHIP_LPC407X_8X definitions
CHIP_LPC175X_6X must be defined for all code when building for the LPC175x and LPC176x devices. This unvalued definition can be added to the compilers argument list or as part of sys_config.h.

CHIP_LPC177X_8X must be defined for all code when building for the LPC177x and LPC178x devices. This unvalued definition can be added to the compilers argument list or as part of sys_config.h.

CHIP_LPC407X_8X must be defined for all code when building for the LPC407x and LPC408x devices. This unvalued definition can be added to the compilers argument list or as part of sys_config.h.

__FPU_PRESENT on select LPC40xx devices
For LPC407x/8x devices that do not have an FPU, the __FPU_PRESENT definition must be defined with the value of 0. This valued definition can be added to the compilers argument list or as part of sys_config.h
Example:

#define __FPU_PRESENT 0 /* Needed for LPC4074 */

Other 17xx/40xx driver specific build time options
CHIP: LPC17xx/40xx Clock Driver driver options
CHIP: LPC17xx/40xx Ethernet driver build options

Common platform build time options
Common platform enables can be found at Common build definitions on all platforms.

Modules

 CHIP: LPC17xx/40xx Clock Driver driver options
 
 CHIP: LPC17xx/40xx Ethernet driver build options