Go to the documentation of this file.
32 #ifndef BSP_BOARD_DEF_H
33 #define BSP_BOARD_DEF_H 1
34 #ifndef bsp_board_olimex_lpc_2478_stk
35 #define bsp_board_olimex_lpc_2478_stk 1
40 #define i_MCU_FAMILY LPC2xxx
42 #define i_MCU_MODEL 2478
44 #define i_BOARD olimex_lpc_2478_stk
46 #define i_VENDOR olimex
48 #define i_VERSION 0x01000B
50 #define BSP_BOARD_HAS_ETHERNET 1
51 #define BSP_BOARD_HAS_UART0 1
54 #define BSP_BOARD_HAS_CAN 1
55 #define BSP_BOARD_HAS_USB 1
56 #define BSP_BOARD_HAS_USB_HOST 2
57 #define BSP_BOARD_HAS_USB_OTG 0
58 #define BSP_BOARD_HAS_USB_DEVICE 1
60 #ifndef BSP_USB_MODE_DEFINED
61 #define BSP_USB_MODE_DEFINED \
62 (TYPE_DEVICE_PORT1_SOFT_CONNECT|TYPE_USB_PORT1_LED| \
63 TYPE_HOST_PORT2|TYPE_USB_PORT2_LED|TYPE_HOST_PORT2_POWER_EN)
67 #define BSP_BOARD_HAS_SDRAM 64
69 #define BSP_BOARD_HAS_SPI 1
70 #define BSP_BOARD_HAS_SPI_VS1002D 1
71 #define BSP_BOARD_HAS_PS2 1
73 #define BSP_BOARD_HAS_SD 1
74 #define BSP_BOARD_HAS_MMC 1
76 #define LPC2xxx_VIC_SETUP 1
77 #define LPC2xxx_CLOCK_SETUP 1
78 #define LPC2xxx_PLL_SETUP 1
80 #define XTAL_HZ 12000000UL
88 #define CLKSRCSEL_Val CLKSRCSEL_XTAL
99 #define USBCLKCFG_Val 5
115 #define PCLKSEL0_Val (LPC2XXX_PCLK_V(WDT,4) | LPC2XXX_PCLK_V(TIMER0,1))
119 #define PCLKSEL1_Val (LPC2XXX_PCLK_V(BAT_RAM,4) | LPC2XXX_PCLK_V(SYSCON,4))
123 #define LPC2xxx_FLASH_SETUP 1
126 #define MAMCR_Val LPC_SC_MAM_MODE_FULL
129 #define LPC2xxx_SDRAM_SETUP BSP_BOARD_HAS_SDRAM
137 #define port_spi_chip_select_init()
141 #define port_spi_chip_select(chip_num)
144 #define port_spi_chip_disselect(chip_num)