CMSIS2000  0.0.7
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
system_LPC2xxx.c File Reference

CMSIS like Device Peripheral Access Layer system.c Source File for the NXP LPC2xxx Device Series. More...

#include "mcu_id.h"
#include "LPC2xxx.h"
#include "lpc2xxx_pclk.h"
#include "lpc2xxx_pconp.h"
#include "lpc2xxx_pllclk.h"
Include dependency graph for system_LPC2xxx.c:

Go to the source code of this file.

Macros

#define CHECK_RANGE(val, min, max)   ((val < min) || (val > max))
#define CHECK_RSVD(val, mask)   (val & mask)
#define def_IRQHandler_name(handler_name)   handler_name##_IRQHandler
#define LPC_SC_MAM_MODE_DISABLED   0
#define LPC_SC_MAM_MODE_FULL   2
#define LPC_SC_MAM_MODE_PARTIAL   1
#define MAMCR_Val   LPC_SC_MAM_MODE_FULL
#define MAMTIM_Val   4
#define NULL   ((void *)0)
#define PCLKSEL0_Val   0
#define PCLKSEL1_Val   0
#define VIC_DEFAULT_ISR   vic_def_isr

Functions

 ISR_IRQ_PROTO (VIC_DEFAULT_ISR)
 ISR_IRQ_PROTO (WDT)
 ISR_IRQ_PROTO (PROGRAMM_INT)
 ISR_IRQ_PROTO (ARM_CORE_ICE_RX)
 ISR_IRQ_PROTO (ARM_CORE_ICE_TX)
 ISR_IRQ_PROTO (TIMER0)
 ISR_IRQ_PROTO (TIMER1)
 ISR_IRQ_PROTO (UART0)
 ISR_IRQ_PROTO (UART1)
 ISR_IRQ_PROTO (PWM)
 ISR_IRQ_PROTO (PWM0)
 ISR_IRQ_PROTO (I2C)
 ISR_IRQ_PROTO (I2C0)
 ISR_IRQ_PROTO (SPI)
 ISR_IRQ_PROTO (SPI0)
 ISR_IRQ_PROTO (SSP0)
 ISR_IRQ_PROTO (SPI1)
 ISR_IRQ_PROTO (SSP1)
 ISR_IRQ_PROTO (PLL0)
 ISR_IRQ_PROTO (RTC)
 ISR_IRQ_PROTO (EINT0)
 ISR_IRQ_PROTO (EINT1)
 ISR_IRQ_PROTO (EINT2)
 ISR_IRQ_PROTO (EINT3)
 ISR_IRQ_PROTO (ADC)
 ISR_IRQ_PROTO (CAN1_TX)
 ISR_IRQ_PROTO (CAN2_TX)
 ISR_IRQ_PROTO (CAN3_TX)
 ISR_IRQ_PROTO (CAN4_TX)
 ISR_IRQ_PROTO (PROGRAMM_INT24)
 ISR_IRQ_PROTO (PROGRAMM_INT25)
 ISR_IRQ_PROTO (CAN1_RX)
 ISR_IRQ_PROTO (CAN2_RX)
 ISR_IRQ_PROTO (CAN3_RX)
 ISR_IRQ_PROTO (CAN4_RX)
void NVIC_EnableIRQ (IRQn_Type IRQn)
 Enable External Interrupt.
void SystemInit (void)
 Initialize the system.
void SystemVIC_Init (void)
 Initialize the system VIC.
MOVE_CODE_TO_FLASH void * SystemVIC_SetISR (ISR_HANDLER((*isr_func)), IRQn_Type IRQ_type, signed char priority)

Variables

const ISR_ptr_type ISR_HANDLES_ARRAY []
const char sizeof_ISR_HANDLES_ARRAY = (sizeof(ISR_HANDLES_ARRAY)/sizeof(ISR_HANDLES_ARRAY[0]))

Detailed Description

CMSIS like Device Peripheral Access Layer system.c Source File for the NXP LPC2xxx Device Series.

Author
Dmitriy Cherepanov
Date
2011

Definition in file system_LPC2xxx.c.

Macro Definition Documentation

#define CHECK_RANGE (   val,
  min,
  max 
)    ((val < min) || (val > max))
#define CHECK_RSVD (   val,
  mask 
)    (val & mask)
#define def_IRQHandler_name (   handler_name)    handler_name##_IRQHandler

Definition at line 392 of file system_LPC2xxx.c.

#define LPC_SC_MAM_MODE_DISABLED   0
#define LPC_SC_MAM_MODE_FULL   2
#define LPC_SC_MAM_MODE_PARTIAL   1
#define MAMCR_Val   LPC_SC_MAM_MODE_FULL
#define MAMTIM_Val   4
#define PCLKSEL0_Val   0
#define PCLKSEL1_Val   0
#define VIC_DEFAULT_ISR   vic_def_isr

Definition at line 357 of file system_LPC2xxx.c.

Referenced by SystemVIC_Init().

Function Documentation

ISR_IRQ_PROTO ( VIC_DEFAULT_ISR  )
ISR_IRQ_PROTO ( WDT  )
ISR_IRQ_PROTO ( PROGRAMM_INT  )
ISR_IRQ_PROTO ( ARM_CORE_ICE_RX  )
ISR_IRQ_PROTO ( ARM_CORE_ICE_TX  )
ISR_IRQ_PROTO ( TIMER0  )
ISR_IRQ_PROTO ( TIMER1  )
ISR_IRQ_PROTO ( UART0  )
ISR_IRQ_PROTO ( UART1  )
ISR_IRQ_PROTO ( PWM  )
ISR_IRQ_PROTO ( PWM0  )
ISR_IRQ_PROTO ( I2C  )
ISR_IRQ_PROTO ( I2C0  )
ISR_IRQ_PROTO ( SPI  )
ISR_IRQ_PROTO ( SPI0  )
ISR_IRQ_PROTO ( SSP0  )
ISR_IRQ_PROTO ( SPI1  )
ISR_IRQ_PROTO ( SSP1  )
ISR_IRQ_PROTO ( PLL0  )
ISR_IRQ_PROTO ( RTC  )
ISR_IRQ_PROTO ( EINT0  )
ISR_IRQ_PROTO ( EINT1  )
ISR_IRQ_PROTO ( EINT2  )
ISR_IRQ_PROTO ( EINT3  )
ISR_IRQ_PROTO ( ADC  )
ISR_IRQ_PROTO ( CAN1_TX  )
ISR_IRQ_PROTO ( CAN2_TX  )
ISR_IRQ_PROTO ( CAN3_TX  )
ISR_IRQ_PROTO ( CAN4_TX  )
ISR_IRQ_PROTO ( PROGRAMM_INT24  )
ISR_IRQ_PROTO ( PROGRAMM_INT25  )
ISR_IRQ_PROTO ( CAN1_RX  )
ISR_IRQ_PROTO ( CAN2_RX  )
ISR_IRQ_PROTO ( CAN3_RX  )
ISR_IRQ_PROTO ( CAN4_RX  )
MOVE_CODE_TO_FLASH void* SystemVIC_SetISR ( ISR_HANDLER((*isr_func))  ,
IRQn_Type  IRQ_type,
signed char  priority 
)

Definition at line 294 of file system_LPC2xxx.c.

References NULL, VIC, VIC_ENABLE, VIC_MAX_IRQ_NUMBER, and VIC_SIZE.

Referenced by NVIC_EnableIRQ(), and SystemVIC_Init().

Here is the caller graph for this function: