source: rtems/c/src/lib/libbsp/arm/lpc24xx/configure.ac @ 4f609eec

4.115
Last change on this file since 4f609eec was 4f609eec, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 17, 2011 at 10:40:00 AM

2011-10-17 Sebastian Huber <sebastian.huber@…>

  • include/start-config.h, make/custom/lpc24xx_plx800_rom_int.cfg, startup/linkcmds.lpc24xx_plx800_rom_int, startup/start-config-emc-dynamic.c, startup/start-config-emc-static.c, startup/start-config-pinsel.c: New files.
  • Makefile.am, configure.ac, preinstall.am: Reflect changes above.
  • startup/bspstarthooks.c: Use configuration tables for EMC initialization.
  • Property mode set to 100644
File size: 4.3 KB
Line 
1##
2#
3# @file
4#
5# @brief Configure script of LibBSP for the LPC24XX boards.
6#
7
8AC_PREREQ([2.68])
9AC_INIT([rtems-c-src-lib-libbsp-arm-lpc24xx],[_RTEMS_VERSION],[rtems-bugs@rtems.com])
10AC_CONFIG_SRCDIR([bsp_specs])
11RTEMS_TOP(../../../../../..)
12
13RTEMS_CANONICAL_TARGET_CPU
14AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.11.1])
15RTEMS_BSP_CONFIGURE
16
17RTEMS_PROG_CC_FOR_TARGET
18RTEMS_CANONICALIZE_TOOLS
19RTEMS_PROG_CCAS
20
21RTEMS_CHECK_NETWORKING
22AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
23
24RTEMS_BSPOPTS_SET([BSP_SMALL_MEMORY],[lpc23*],[1])
25RTEMS_BSPOPTS_SET([BSP_SMALL_MEMORY],[*],[])
26RTEMS_BSPOPTS_HELP([BSP_SMALL_MEMORY],[disable testsuite samples with high memory demands])
27
28RTEMS_BSPOPTS_SET([LPC24XX_OSCILLATOR_MAIN],[lpc23*],[3686400U])
29RTEMS_BSPOPTS_SET([LPC24XX_OSCILLATOR_MAIN],[*],[12000000U])
30RTEMS_BSPOPTS_HELP([LPC24XX_OSCILLATOR_MAIN],[main oscillator frequency in Hz])
31
32RTEMS_BSPOPTS_SET([LPC24XX_OSCILLATOR_RTC],[*],[32768U])
33RTEMS_BSPOPTS_HELP([LPC24XX_OSCILLATOR_RTC],[RTC oscillator frequency in Hz])
34
35RTEMS_BSPOPTS_SET([LPC24XX_CCLK],[lpc23*],[58982400U])
36RTEMS_BSPOPTS_SET([LPC24XX_CCLK],[lpc24xx_plx800*],[51612800U])
37RTEMS_BSPOPTS_SET([LPC24XX_CCLK],[*],[72000000U])
38RTEMS_BSPOPTS_HELP([LPC24XX_CCLK],[CPU clock in Hz])
39
40RTEMS_BSPOPTS_SET([LPC24XX_UART_BAUD],[*],[115200U])
41RTEMS_BSPOPTS_HELP([LPC24XX_UART_BAUD],[baud for UARTs])
42
43RTEMS_BSPOPTS_SET([LPC24XX_ETHERNET_RMII],[lpc24xx_ea],[1])
44RTEMS_BSPOPTS_SET([LPC24XX_ETHERNET_RMII],[*],[])
45RTEMS_BSPOPTS_HELP([LPC24XX_ETHERNET_RMII],[enable RMII for Ethernet])
46
47RTEMS_BSPOPTS_SET([LPC24XX_EMC_MICRON],[lpc24xx_plx800_rom_*],[1])
48RTEMS_BSPOPTS_SET([LPC24XX_EMC_MICRON],[lpc24xx_ncs_rom_*],[1])
49RTEMS_BSPOPTS_HELP([LPC24XX_EMC_MICRON],[enable Micron configuration for EMC])
50
51RTEMS_BSPOPTS_SET([LPC24XX_EMC_NUMONYX],[lpc24xx_ncs_rom_*],[1])
52RTEMS_BSPOPTS_HELP([LPC24XX_EMC_NUMONYX],[enable Numonyx configuration for EMC])
53
54RTEMS_BSPOPTS_SET([LPC24XX_EMC_W9825G2JB],[lpc24xx_plx800_rom_*],[1])
55RTEMS_BSPOPTS_HELP([LPC24XX_EMC_W9825G2JB],[enable Winbond W9825G2JB configuration for EMC])
56
57RTEMS_BSPOPTS_SET([LPC24XX_EMC_TEST],[*],[])
58RTEMS_BSPOPTS_HELP([LPC24XX_EMC_TEST],[enable tests for EMC])
59
60RTEMS_BSPOPTS_SET([LPC24XX_SPECIAL_TASK_STACKS_SUPPORT],[lpc23*],[])
61RTEMS_BSPOPTS_SET([LPC24XX_SPECIAL_TASK_STACKS_SUPPORT],[*],[1])
62RTEMS_BSPOPTS_HELP([LPC24XX_SPECIAL_TASK_STACKS_SUPPORT],[enable special task stack support for task stacks in internal RAM])
63
64RTEMS_BSPOPTS_SET([LPC24XX_CONFIG_CONSOLE],[*],[0])
65RTEMS_BSPOPTS_HELP([LPC24XX_CONFIG_CONSOLE],[configuration for console (UART 0)])
66
67RTEMS_BSPOPTS_SET([LPC24XX_CONFIG_UART_1],[*],[])
68RTEMS_BSPOPTS_HELP([LPC24XX_CONFIG_UART_1],[configuration for UART 1])
69
70RTEMS_BSPOPTS_SET([LPC24XX_CONFIG_UART_2],[lpc23*],[0])
71RTEMS_BSPOPTS_SET([LPC24XX_CONFIG_UART_2],[lpc24xx_ncs_*],[0])
72RTEMS_BSPOPTS_HELP([LPC24XX_CONFIG_UART_2],[configuration for UART 2])
73
74RTEMS_BSPOPTS_SET([LPC24XX_CONFIG_UART_3],[lpc23*],[0])
75RTEMS_BSPOPTS_SET([LPC24XX_CONFIG_UART_3],[lpc24xx_ncs_*],[0])
76RTEMS_BSPOPTS_HELP([LPC24XX_CONFIG_UART_3],[configuration for UART 3])
77
78RTEMS_BSPOPTS_SET([LPC24XX_CONFIG_I2C_0],[lpc24xx_ncs_*],[0])
79RTEMS_BSPOPTS_HELP([LPC24XX_CONFIG_I2C_0],[configuration for I2C 0])
80
81RTEMS_BSPOPTS_SET([LPC24XX_CONFIG_I2C_1],[lpc24xx_ncs_*],[1])
82RTEMS_BSPOPTS_HELP([LPC24XX_CONFIG_I2C_1],[configuration for I2C 1])
83
84RTEMS_BSPOPTS_SET([LPC24XX_CONFIG_I2C_2],[*],[])
85RTEMS_BSPOPTS_HELP([LPC24XX_CONFIG_I2C_2],[configuration for I2C 2])
86
87RTEMS_BSPOPTS_SET([LPC24XX_HEAP_EXTEND],[lpc23*],[1])
88RTEMS_BSPOPTS_HELP([LPC24XX_HEAP_EXTEND],[enable heap extend by Ethernet and USB regions])
89
90RTEMS_BSPOPTS_SET([LPC24XX_STOP_GPDMA],[*],[1])
91RTEMS_BSPOPTS_HELP([LPC24XX_STOP_GPDMA],[stop general purpose DMA at start-up to avoid DMA interference])
92
93RTEMS_BSPOPTS_SET([LPC24XX_STOP_ETHERNET],[lpc23*],[])
94RTEMS_BSPOPTS_SET([LPC24XX_STOP_ETHERNET],[*],[1])
95RTEMS_BSPOPTS_HELP([LPC24XX_STOP_ETHERNET],[stop Ethernet controller at start-up to avoid DMA interference])
96
97RTEMS_BSPOPTS_SET([LPC24XX_STOP_USB],[lpc23*],[])
98RTEMS_BSPOPTS_SET([LPC24XX_STOP_USB],[*],[1])
99RTEMS_BSPOPTS_HELP([LPC24XX_STOP_USB],[stop USB controller at start-up to avoid DMA interference])
100
101RTEMS_BSPOPTS_SET([BSP_START_RESET_VECTOR],[lpc24xx_ncs_rom_ext],[0x80000040])
102RTEMS_BSPOPTS_HELP([BSP_START_RESET_VECTOR],[reset vector address for BSP start])
103
104RTEMS_BSP_CLEANUP_OPTIONS(0, 0)
105RTEMS_BSP_LINKCMDS
106
107AC_CONFIG_FILES([Makefile])
108AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.