#include "lpc24xx.h"
Go to the source code of this file.
Defines | |
#define | XTAL_CLOCK 12000000 |
#define | CPU_CLOCK_HZ ( ( unsigned int ) XTAL_CLOCK * 2 * (PLL_MUL+1) / (CPU_CLK_DIV+1) / (PLL_DIV+1) ) |
#define | PLL_MUL ( ( unsigned int ) ( 6 - 1 ) ) |
#define | PLL_DIV ( ( unsigned int ) 0x0000 ) |
#define | CPU_CLK_DIV ( ( unsigned int ) 0x0001 ) |
#define | PLL_ENABLE ( ( unsigned int ) 0x0001 ) |
#define | PLL_CONNECT ( ( ( unsigned int ) 0x0002 ) | PLL_ENABLE ) |
#define | PLL_FEED_BYTE1 ( ( unsigned int ) 0xaa ) |
#define | PLL_FEED_BYTE2 ( ( unsigned int ) 0x55 ) |
#define | PLL_LOCK ( ( unsigned int ) 0x4000000 ) |
#define | PLL_CONNECTED ( ( unsigned int ) 0x2000000 ) |
#define | OSC_ENABLE ( ( unsigned int ) 0x20 ) |
#define | OSC_STAT ( ( unsigned int ) 0x40 ) |
#define | OSC_SELECT ( ( unsigned int ) 0x01 ) |
#define | mainMAM_TIM_3 ( ( unsigned char ) 0x03 ) |
#define | mainMAM_MODE_FULL ( ( unsigned char ) 0x02 ) |
#define | FALSE (1==2) |
#define | TRUE !FALSE |
#define | PASS 1 |
#define | FAIL 0 |
#define | enableFIQ() |
#define | disableFIQ() |
#define | enableIRQ() |
#define | disableIRQ() |
Functions | |
void | SWI_Routine (void) __attribute__((interrupt("SWI"))) |
void | IRQ_Routine (void) __attribute__((interrupt("IRQ"))) |
void | FIQ_Routine (void) __attribute__((interrupt("FIQ"))) |
#define CPU_CLK_DIV ( ( unsigned int ) 0x0001 ) |
Definition at line 13 of file lpc_config.h.
#define CPU_CLOCK_HZ ( ( unsigned int ) XTAL_CLOCK * 2 * (PLL_MUL+1) / (CPU_CLK_DIV+1) / (PLL_DIV+1) ) |
Definition at line 8 of file lpc_config.h.
#define disableFIQ | ( | ) |
asm volatile(\ "mrs r3, cpsr\n" \ "orr r3, r3, # 0x40\n" \ "msr cpsr, r3\n")
Definition at line 49 of file lpc_config.h.
#define disableIRQ | ( | ) |
asm volatile(\ "mrs r3, cpsr\n" \ "orr r3, r3, # 0x80\n" \ "msr cpsr, r3\n")
Definition at line 59 of file lpc_config.h.
#define enableFIQ | ( | ) |
asm volatile(\ "mrs r3, cpsr\n" \ "bic r3, r3, # 0x40\n" \ "msr cpsr, r3\n")
Definition at line 44 of file lpc_config.h.
#define enableIRQ | ( | ) |
asm volatile(\ "mrs r3, cpsr\n" \ "bic r3, r3, # 0x80\n" \ "msr cpsr, r3\n")
Definition at line 54 of file lpc_config.h.
#define FAIL 0 |
Definition at line 31 of file lpc_config.h.
#define FALSE (1==2) |
Definition at line 28 of file lpc_config.h.
#define mainMAM_MODE_FULL ( ( unsigned char ) 0x02 ) |
Definition at line 26 of file lpc_config.h.
#define mainMAM_TIM_3 ( ( unsigned char ) 0x03 ) |
Definition at line 25 of file lpc_config.h.
#define OSC_ENABLE ( ( unsigned int ) 0x20 ) |
Definition at line 20 of file lpc_config.h.
#define OSC_SELECT ( ( unsigned int ) 0x01 ) |
Definition at line 22 of file lpc_config.h.
#define OSC_STAT ( ( unsigned int ) 0x40 ) |
Definition at line 21 of file lpc_config.h.
#define PASS 1 |
Definition at line 30 of file lpc_config.h.
#define PLL_CONNECT ( ( ( unsigned int ) 0x0002 ) | PLL_ENABLE ) |
Definition at line 15 of file lpc_config.h.
#define PLL_CONNECTED ( ( unsigned int ) 0x2000000 ) |
Definition at line 19 of file lpc_config.h.
#define PLL_DIV ( ( unsigned int ) 0x0000 ) |
Definition at line 12 of file lpc_config.h.
#define PLL_ENABLE ( ( unsigned int ) 0x0001 ) |
Definition at line 14 of file lpc_config.h.
#define PLL_FEED_BYTE1 ( ( unsigned int ) 0xaa ) |
Definition at line 16 of file lpc_config.h.
#define PLL_FEED_BYTE2 ( ( unsigned int ) 0x55 ) |
Definition at line 17 of file lpc_config.h.
#define PLL_LOCK ( ( unsigned int ) 0x4000000 ) |
Definition at line 18 of file lpc_config.h.
#define PLL_MUL ( ( unsigned int ) ( 6 - 1 ) ) |
Definition at line 11 of file lpc_config.h.
#define TRUE !FALSE |
Definition at line 29 of file lpc_config.h.
#define XTAL_CLOCK 12000000 |
Definition at line 7 of file lpc_config.h.
void IRQ_Routine | ( | void | ) |