Go to the documentation of this file.
33 #ifndef _PORT_LPC2XXX_PCONP_H_
34 #define _PORT_LPC2XXX_PCONP_H_ 1
47 #include "bsp_board_def.h"
51 #if ((i_MCU_MODEL > 2300) || ((i_MCU_MODEL > 1700) && (i_MCU_MODEL < 1900)))
54 #define PCTIMER0 (1<<1)
55 #define PCTIMER1 (1<<2)
56 #define PCUART0 (1<<3)
57 #define PCUART1 (1<<4)
63 #define PCSSP1 (1<<10)
66 #define PCADC0 (1<<12)
67 #define PCCAN1 (1<<13)
68 #define PCCAN2 (1<<14)
71 #define PCGPIO (1<<15)
73 #define PCMCPWM (1<<17)
75 #define PCI2C1 (1<<19)
77 #define PCADC1 (1<<20)
78 #define PCSSP0 (1<<21)
79 #define PCTIMER2 (1<<22)
80 #define PCTIMER3 (1<<23)
81 #define PCUART2 (1<<24)
82 #define PCUART3 (1<<25)
83 #define PCI2C2 (1<<26)
86 #define PCGPDMA (1<<29)
87 #define PCENET (1<<30)
93 #define PORT_LPC2XXX_PWR_CONTRL_ON(_lpc_periph) LPC_SC->PCONP = LPC_SC->PCONP | (PC##_lpc_periph)
94 #define PORT_LPC2XXX_PWR_CONTRL_OFF(_lpc_periph) LPC_SC->PCONP = LPC_SC->PCONP & (~(PC##_lpc_periph))