LPCOpen Platform for LPC18XX/43XX microcontrollers  18XX43XX
LPCOpen Platform for the NXP LPC18XX/43XX family of Microcontrollers
Modules
CHIP: LPC18xx/43xx 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.

CORE_M0, CORE_M3, and CORE_M4 definitions
All LPC18xx devices should add a unvalued CORE_M3 definition to the compilers argument list. All LPC43xx devices (M4 core only) should add a unvalued CORE_M4 definition to the compilers argument list. For the M0 core of the LPC43xx devices, a CORE_M0 definition should be added to the compilers argument list. Do not add this definition as part of sys_config.h.

CHIP_LPC18XX definition
CHIP_LPC18XX must be defined for all code when building for the LPC18XX family of devices. This unvalued definition can be added to the compilers argument list or as part of sys_config.h.

CHIP_LPC43XX definition
CHIP_LPC43XX must be defined for all code when building for the LPC43XX family of devices for both the M0 and M4 cores. This unvalued definition can be added to the compilers argument list or as part of sys_config.h.

Modules

 CHIP: LPC18xx/43xx Clock Driver driver options
 

Variable Documentation

const uint32_t ExtRateIn

Clock rate on the CLKIN pin This value is defined externally to the chip layer and contains the value in Hz for the CLKIN pin for the board. If this pin isn't used, this rate can be 0.

Definition at line 132 of file board.c.

const uint32_t OscRateIn

System oscillator rate This value is defined externally to the chip layer and contains the value in Hz for the external oscillator for the board. If using the internal oscillator, this rate can be 0.

Definition at line 133 of file board.c.