36#ifndef LIBBSP_ARM_RTL22XX_BSP_H
37#define LIBBSP_ARM_RTL22XX_BSP_H
58#define BSP_FEATURE_IRQ_EXTENSION
60#define CONFIG_ARM_CLK 60000000L
65#define LPC22xx_Fcclk CONFIG_ARM_CLK
69#define LPC22xx_Fcclk CONFIG_ARM_CLK
70#define LPC22xx_Fcco LPC22xx_Fcclk * 4
72#define LPC22xx_Fpclk (LPC22xx_Fcclk /4) *1
81#define Fcclk_MIN 10000000L
82#define Fcclk_MAX 60000000L
91#define Fcco_MIN 156000000L
92#define Fcco_MAX 320000000L
96#define PLLFEED_DATA1 0xAA
97#define PLLFEED_DATA2 0x55
104#define PLLCON_ENABLE_BIT 0
105#define PLLCON_CONNECT_BIT 1
114#define PLLSTAT_ENABLE_BIT 8
115#define PLLSTAT_CONNECT_BIT 9
116#define PLLSTAT_LOCK_BIT 10
149#define Fcclk (Fosc << 2)
151#define Fcco (Fcclk <<2)
153#define Fpclk (Fcclk >>2) * 1
161#define JOEL_M Fcclk / Fosc
162#define P_min Fcco_MIN / (2*Fcclk) + 1;
163#define P_max Fcco_MAX / (2*Fcclk);
165#define UART_BPS 115200
168#define TIMER_PRECISION 10
171#define I2CSPEED 20000
184#define SPISPEED 1500000
189#define SPI_CS_PIN P0_13
190#define SPI_CS_PIN_FUNC PINSEL0_bit.SPI_CS_PIN
199#define RTL22XX_FLASH_SIZE (0x80000-RTL22XX_FLASH_BOOT)
201#define RTL22XX_FLASH_BEGIN 0x80000000
203#define RTL22XX_FLASH_BASE (RTL22XX_FLASH_BEGIN+RTL22XX_FLASH_BOOT)
213#define SRAM_SIZE 0x100000
215#define SRAM_BASE 0x81000000
220#define CS8900A_BASE 0x82000000
222#define RTL8019AS_BASE 0x82000000
224struct rtems_bsdnet_ifconfig;
225int cs8900_driver_attach (
struct rtems_bsdnet_ifconfig *config,
233#define RTEMS_BSP_NETWORK_DRIVER_NAME "eth0"
234#define RTEMS_BSP_NETWORK_DRIVER_ATTACH cs8900_driver_attach
241extern void UART0_Ini(
void);
This header file provides the default definition of BSP_INITIAL_EXTENSION.
This header file defines the RTEMS Classic API.