Loading...
Searching...
No Matches
ARM7 CPU common

Common implementations and headers for ARM based micro-controllers. More...

Detailed Description

Common implementations and headers for ARM based micro-controllers.

Files

file  architecture_arch.h
 Architecture details.
 
file  arm7_common.h
 ARM7 CPU common declarations.
 
file  atomic_utils_arch.h
 Implementation of fast atomic utility functions.
 
file  irq_arch.h
 Implementation of the kernels irq interface.
 
file  thread_arch.h
 Implementation of the kernels thread interface.
 

PCONP Constants

#define PCTIM0   (BIT1)
 
#define PCTIM1   (BIT2)
 
#define PCUART0   (BIT3)
 
#define PCUART1   (BIT4)
 
#define PCPWM1   (BIT6)
 
#define PCI2C0   (BIT7)
 
#define PCSPI   (BIT8)
 
#define PCRTC   (BIT9)
 
#define PCSSP1   (BIT10)
 
#define PCEMC   (BIT11)
 
#define PCAD   (BIT12)
 
#define PCAN1   (BIT13)
 
#define PCAN2   (BIT14)
 
#define PCI2C1   (BIT19)
 
#define PCSSP0   (BIT21)
 
#define PCTIM2   (BIT22)
 
#define PCTIM3   (BIT23)
 
#define PCUART2   (BIT24)
 
#define PCUART3   (BIT25)
 
#define PCI2C2   (BIT26)
 
#define PCI2S   (BIT27)
 
#define PCSDC   (BIT28)
 
#define PCGPDMA   (BIT29)
 
#define PCENET   (BIT30)
 
#define PCUSB   (BIT31)
 

PCON Constants

#define PM0   (BIT0)
 
#define PM1   (BIT1)
 
#define BODPDM   (BIT2)
 
#define BOGD   (BIT3)
 
#define BORD   (BIT4)
 
#define PM2   (BIT7)
 
#define PM_IDLE   (PM0)
 
#define PM_SLEEP   (PM2|PM0)
 
#define PM_POWERDOWN   (PM1)
 
#define PM_DEEP_POWERDOWN   (PM2|PM1)
 

Timer Symbols

#define MR0I   (BIT0)
 
#define MR0R   (BIT1)
 
#define MR0S   (BIT2)
 
#define MR1I   (BIT3)
 
#define MR1R   (BIT4)
 
#define MR1S   (BIT5)
 
#define MR2I   (BIT6)
 
#define MR2R   (BIT7)
 
#define MR2S   (BIT8)
 
#define MR3I   (BIT9)
 
#define MR3R   (BIT10)
 
#define MR3S   (BIT11)
 
#define I_Bit   0x80
 
#define F_Bit   0x40
 
#define SYS32Mode   0x1F
 
#define IRQ32Mode   0x12
 
#define FIQ32Mode   0x11
 
#define INTMode   (FIQ32Mode | IRQ32Mode)
 

Macro Definition Documentation

◆ BODPDM

#define BODPDM   (BIT2)

Definition at line 70 of file arm7_common.h.

◆ BOGD

#define BOGD   (BIT3)

Definition at line 71 of file arm7_common.h.

◆ BORD

#define BORD   (BIT4)

Definition at line 72 of file arm7_common.h.

◆ F_Bit

#define F_Bit   0x40

Definition at line 23 of file VIC.h.

◆ FIQ32Mode

#define FIQ32Mode   0x11

Definition at line 27 of file VIC.h.

◆ I_Bit

#define I_Bit   0x80

Definition at line 22 of file VIC.h.

◆ INTMode

#define INTMode   (FIQ32Mode | IRQ32Mode)

Definition at line 29 of file VIC.h.

◆ IRQ32Mode

#define IRQ32Mode   0x12

Definition at line 26 of file VIC.h.

◆ MR0I

#define MR0I   (BIT0)

Definition at line 85 of file arm7_common.h.

◆ MR0R

#define MR0R   (BIT1)

Definition at line 86 of file arm7_common.h.

◆ MR0S

#define MR0S   (BIT2)

Definition at line 87 of file arm7_common.h.

◆ MR1I

#define MR1I   (BIT3)

Definition at line 88 of file arm7_common.h.

◆ MR1R

#define MR1R   (BIT4)

Definition at line 89 of file arm7_common.h.

◆ MR1S

#define MR1S   (BIT5)

Definition at line 90 of file arm7_common.h.

◆ MR2I

#define MR2I   (BIT6)

Definition at line 91 of file arm7_common.h.

◆ MR2R

#define MR2R   (BIT7)

Definition at line 92 of file arm7_common.h.

◆ MR2S

#define MR2S   (BIT8)

Definition at line 93 of file arm7_common.h.

◆ MR3I

#define MR3I   (BIT9)

Definition at line 94 of file arm7_common.h.

◆ MR3R

#define MR3R   (BIT10)

Definition at line 95 of file arm7_common.h.

◆ MR3S

#define MR3S   (BIT11)

Definition at line 96 of file arm7_common.h.

◆ PCAD

#define PCAD   (BIT12)

Definition at line 47 of file arm7_common.h.

◆ PCAN1

#define PCAN1   (BIT13)

Definition at line 48 of file arm7_common.h.

◆ PCAN2

#define PCAN2   (BIT14)

Definition at line 49 of file arm7_common.h.

◆ PCEMC

#define PCEMC   (BIT11)

Definition at line 46 of file arm7_common.h.

◆ PCENET

#define PCENET   (BIT30)

Definition at line 60 of file arm7_common.h.

◆ PCGPDMA

#define PCGPDMA   (BIT29)

Definition at line 59 of file arm7_common.h.

◆ PCI2C0

#define PCI2C0   (BIT7)

Definition at line 42 of file arm7_common.h.

◆ PCI2C1

#define PCI2C1   (BIT19)

Definition at line 50 of file arm7_common.h.

◆ PCI2C2

#define PCI2C2   (BIT26)

Definition at line 56 of file arm7_common.h.

◆ PCI2S

#define PCI2S   (BIT27)

Definition at line 57 of file arm7_common.h.

◆ PCPWM1

#define PCPWM1   (BIT6)

Definition at line 41 of file arm7_common.h.

◆ PCRTC

#define PCRTC   (BIT9)

Definition at line 44 of file arm7_common.h.

◆ PCSDC

#define PCSDC   (BIT28)

Definition at line 58 of file arm7_common.h.

◆ PCSPI

#define PCSPI   (BIT8)

Definition at line 43 of file arm7_common.h.

◆ PCSSP0

#define PCSSP0   (BIT21)

Definition at line 51 of file arm7_common.h.

◆ PCSSP1

#define PCSSP1   (BIT10)

Definition at line 45 of file arm7_common.h.

◆ PCTIM0

#define PCTIM0   (BIT1)

Definition at line 37 of file arm7_common.h.

◆ PCTIM1

#define PCTIM1   (BIT2)

Definition at line 38 of file arm7_common.h.

◆ PCTIM2

#define PCTIM2   (BIT22)

Definition at line 52 of file arm7_common.h.

◆ PCTIM3

#define PCTIM3   (BIT23)

Definition at line 53 of file arm7_common.h.

◆ PCUART0

#define PCUART0   (BIT3)

Definition at line 39 of file arm7_common.h.

◆ PCUART1

#define PCUART1   (BIT4)

Definition at line 40 of file arm7_common.h.

◆ PCUART2

#define PCUART2   (BIT24)

Definition at line 54 of file arm7_common.h.

◆ PCUART3

#define PCUART3   (BIT25)

Definition at line 55 of file arm7_common.h.

◆ PCUSB

#define PCUSB   (BIT31)

Definition at line 61 of file arm7_common.h.

◆ PM0

#define PM0   (BIT0)

Definition at line 68 of file arm7_common.h.

◆ PM1

#define PM1   (BIT1)

Definition at line 69 of file arm7_common.h.

◆ PM2

#define PM2   (BIT7)

Definition at line 73 of file arm7_common.h.

◆ PM_DEEP_POWERDOWN

#define PM_DEEP_POWERDOWN   (PM2|PM1)

Definition at line 78 of file arm7_common.h.

◆ PM_IDLE

#define PM_IDLE   (PM0)

Definition at line 75 of file arm7_common.h.

◆ PM_POWERDOWN

#define PM_POWERDOWN   (PM1)

Definition at line 77 of file arm7_common.h.

◆ PM_SLEEP

#define PM_SLEEP   (PM2|PM0)

Definition at line 76 of file arm7_common.h.

◆ SYS32Mode

#define SYS32Mode   0x1F

Definition at line 25 of file VIC.h.