LPCOpen Platform for LPC112X microcontrollers  112X
LPCOpen Platform for the NXP LPC112X family of Microcontrollers
Macros | Functions | Variables
chip.h File Reference
#include "lpc_types.h"
#include "sys_config.h"
#include "cmsis.h"
#include "i2c_112x.h"
#include "i2cm_112x.h"
#include "wwdt_112x.h"
#include "uart_112x.h"
#include "timer_112x.h"
#include "adc_112x.h"
#include "pmu_112x.h"
#include "fmc_112x.h"
#include "ssp_112x.h"
#include "iocon_112x.h"
#include "syscon_112x.h"
#include "clock_112x.h"
#include "gpio_112x.h"
#include "romapi_112x.h"

Go to the source code of this file.

Macros

#define LPC_I2C_BASE   0x40000000
 
#define LPC_WWDT_BASE   0x40004000
 
#define LPC_UART0_BASE   0x40008000
 
#define LPC_UART1_BASE   0x40020000
 
#define LPC_UART2_BASE   0x40024000
 
#define LPC_TIMER16_0_BASE   0x4000C000
 
#define LPC_TIMER16_1_BASE   0x40010000
 
#define LPC_TIMER32_0_BASE   0x40014000
 
#define LPC_TIMER32_1_BASE   0x40018000
 
#define LPC_ADC_BASE   0x4001C000
 
#define LPC_PMU_BASE   0x40038000
 
#define LPC_FLASH_BASE   0x4003C000
 
#define LPC_SSP0_BASE   0x40040000
 
#define LPC_IOCON_BASE   0x40044000
 
#define LPC_SYSCON_BASE   0x40048000
 
#define LPC_SSP1_BASE   0x40058000
 
#define LPC_GPIO_PORT0_BASE   0x50000000
 
#define LPC_GPIO_PORT1_BASE   0x50010000
 
#define LPC_GPIO_PORT2_BASE   0x50020000
 
#define LPC_GPIO_PORT3_BASE   0x50030000
 
#define LPC_I2C   ((LPC_I2C_T *) LPC_I2C_BASE)
 
#define LPC_WWDT   ((LPC_WWDT_T *) LPC_WWDT_BASE)
 
#define LPC_UART0   ((LPC_UART_T *) LPC_UART0_BASE)
 
#define LPC_UART1   ((LPC_UART_T *) LPC_UART1_BASE)
 
#define LPC_UART2   ((LPC_UART_T *) LPC_UART2_BASE)
 
#define LPC_TIMER16_0   ((LPC_TIMER_T *) LPC_TIMER16_0_BASE)
 
#define LPC_TIMER16_1   ((LPC_TIMER_T *) LPC_TIMER16_1_BASE)
 
#define LPC_TIMER32_0   ((LPC_TIMER_T *) LPC_TIMER32_0_BASE)
 
#define LPC_TIMER32_1   ((LPC_TIMER_T *) LPC_TIMER32_1_BASE)
 
#define LPC_ADC   ((LPC_ADC_T *) LPC_ADC_BASE)
 
#define LPC_PMU   ((LPC_PMU_T *) LPC_PMU_BASE)
 
#define LPC_FMC   ((LPC_FMC_T *) LPC_FLASH_BASE)
 
#define LPC_SSP0   ((LPC_SSP_T *) LPC_SSP0_BASE)
 
#define LPC_IOCON   ((LPC_IOCON_T *) LPC_IOCON_BASE)
 
#define LPC_SYSCON   ((LPC_SYSCON_T*) LPC_SYSCON_BASE)
 
#define LPC_SSP1   ((LPC_SSP_T *) LPC_SSP1_BASE)
 
#define LPC_GPIO   ((LPC_GPIO_T *) LPC_GPIO_PORT0_BASE)
 
#define UART0_IRQHanlder   UART_IRQHandler
 
#define I2C0_IRQHandler   I2C_IRQHandler
 
#define CMP_IRQHandler   ACMP_IRQHandler
 
#define WWDT_IRQHandler   WDT_IRQHandler
 

Functions

void SystemCoreClockUpdate (void)
 Update system core clock rate, should be called if the system has a clock rate change. More...
 
void Chip_SystemInit (void)
 Set up and initialize hardware prior to call to main() More...
 
void Chip_SetupXtalClocking (void)
 Clock and PLL initialization based on the external oscillator. More...
 
void Chip_SetupIrcClocking (void)
 Clock and PLL initialization based on the internal oscillator. More...
 

Variables

uint32_t SystemCoreClock
 Current system clock rate, mainly used for sysTick. More...
 
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. More...
 
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. More...
 

Macro Definition Documentation

#define CMP_IRQHandler   ACMP_IRQHandler

Definition at line 161 of file chip.h.

#define I2C0_IRQHandler   I2C_IRQHandler

Definition at line 160 of file chip.h.

#define UART0_IRQHanlder   UART_IRQHandler

Definition at line 159 of file chip.h.

#define WWDT_IRQHandler   WDT_IRQHandler

Definition at line 162 of file chip.h.

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 55 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 54 of file board.c.