Go to the documentation of this file.
33 #ifndef BSP_BOARD_DEF_H
34 #define BSP_BOARD_DEF_H 1
51 #ifndef bsp_board_generic
52 #define bsp_board_generic 1
57 #define i_MCU_FAMILY LPC2xxx
59 #define i_MCU_MODEL 2478
61 #define i_BOARD GENERIC_BOARD
63 #define i_VENDOR GENERIC_VERNDOR
65 #define i_VERSION 0x010100
67 #define BSP_BOARD_HAS_SDRAM 0
69 #define BSP_BOARD_HAS_ETHERNET 0
70 #define BSP_BOARD_HAS_UART0 1
71 #define BSP_BOARD_HAS_UART1 0
72 #define BSP_BOARD_HAS_UART2 0
73 #define BSP_BOARD_HAS_CAN 0
74 #define BSP_BOARD_HAS_USB 0
75 #define BSP_BOARD_HAS_USB_HOST 0
76 #define BSP_BOARD_HAS_USB_OTG 0
77 #define BSP_BOARD_HAS_USB_DEVICE 0
79 #define BSP_BOARD_HAS_SD 0
80 #define BSP_BOARD_HAS_MMC 0
82 #define BSP_BOARD_HAS_I2C 0
83 #define BSP_BOARD_HAS_I2C_PCA9532 0
85 #define BSP_BOARD_HAS_SPI 0
86 #define BSP_BOARD_HAS_SPI_TSC2046 0
89 #define LPC2xxx_VIC_SETUP 1
90 #define LPC2xxx_CLOCK_SETUP 1
91 #define LPC2xxx_PLL_SETUP 1
93 #define XTAL_HZ 12000000UL
101 #define CLKSRCSEL_Val CLKSRCSEL_XTAL
109 #define PLL_MValue 11
111 #define CCLKCFG_Val 3
112 #define USBCLKCFG_Val 5
137 #define PCLKSEL0_Val (LPC2XXX_PCLK_V(WDT,4) | LPC2XXX_PCLK_V(TIMER0,1))
141 #define PCLKSEL1_Val (LPC2XXX_PCLK_V(BAT_RAM,4) | LPC2XXX_PCLK_V(SYSCON,4))
145 #define LPC2xxx_FLASH_SETUP 1
148 #define MAMCR_Val LPC_SC_MAM_MODE_FULL
151 #define LPC2xxx_SDRAM_SETUP BSP_BOARD_HAS_SDRAM
156 #define port_spi_chip_select_init()
160 #define port_spi_chip_select(chip_num)
163 #define port_spi_chip_disselect(chip_num)