14#include "vendor/lpc23xx.h"
22#define F_CCO 288000000
24#define F_RC_OSCILLATOR 4000000
25#define F_RTC_OSCILLATOR 32767
29#define PLLCFG_N(n) ((n - 1) << 16)
30#define PLLCFG_M(m) (m - 1)
41#define IMSEC 0x00000001
42#define IMMIN 0x00000002
43#define IMHOUR 0x00000004
44#define IMDOM 0x00000008
45#define IMDOW 0x00000010
46#define IMDOY 0x00000020
47#define IMMON 0x00000040
48#define IMYEAR 0x00000080
50#define AMRSEC 0x00000001
51#define AMRMIN 0x00000002
52#define AMRHOUR 0x00000004
53#define AMRDOM 0x00000008
54#define AMRDOW 0x00000010
55#define AMRDOY 0x00000020
56#define AMRMON 0x00000040
57#define AMRYEAR 0x00000080
59#define ILR_RTCCIF BIT0
60#define ILR_RTCALF BIT1
64#define CCR_CTCRST 0x02
65#define CCR_CLKSRC 0x10
104#define ULSR_THRE BIT5
105#define ULSR_TEMT BIT6
106#define ULSR_RXFE BIT7
108#define UIIR_INT_STATUS (BIT0)
109#define UIIR_THRE_INT (BIT1)
110#define UIIR_RDA_INT (BIT2)
111#define UIIR_RLS_INT (BIT1 | BIT2)
112#define UIIR_CTI_INT (BIT2 | BIT3)
113#define UIIR_ID_MASK (BIT1 | BIT2 | BIT3)
114#define UIIR_ABEO_INT BIT8
115#define UIIR_ABTO_INT BIT9
122#define SSPSR_TFE BIT0
123#define SSPSR_TNF BIT1
124#define SSPSR_RNE BIT2
125#define SSPSR_RFF BIT3
126#define SSPSR_BSY BIT4
ARM7 CPU common declarations.
Helper functions for bit arithmetic.