source: rtems/c/src/lib/libbsp/arm/lpc176x/configure.ac @ 7b35a36

4.115
Last change on this file since 7b35a36 was 7b35a36, checked in by Martin Galvan <martin.galvan@…>, on Mar 11, 2015 at 7:57:23 PM

Add CAN, PWM, ADC and UART1/2/3 support to the LPC176x BSP.

This patch adds support for the following devices to the LPC176x BSP:

  • CAN
  • PWM
  • ADC

It also adds the probe routines for UART1/2/3 to the console_device_table in console-config.c, and enables UART1 in configure.ac.

  • Property mode set to 100644
File size: 2.3 KB
Line 
1##
2#
3# @file
4#
5# @brief Configure script of LibBSP for the LPC176X board.
6#
7
8AC_PREREQ([2.69])
9AC_INIT([rtems-c-src-lib-libbsp-arm-lpc176x],[_RTEMS_VERSION],
10                                [https://devel.rtems.org/newticket])
11AC_CONFIG_SRCDIR([bsp_specs])
12RTEMS_TOP(../../../../../..)
13
14RTEMS_CANONICAL_TARGET_CPU
15AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2])
16RTEMS_BSP_CONFIGURE
17
18RTEMS_PROG_CC_FOR_TARGET
19RTEMS_CANONICALIZE_TOOLS
20RTEMS_PROG_CCAS
21
22RTEMS_CHECK_NETWORKING
23AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "no")
24
25RTEMS_BSPOPTS_SET([ARM_LPC1768],[*],[0])
26RTEMS_BSPOPTS_HELP([ARM_LPC1768],[target used for identify LPC1768 board])
27
28RTEMS_BSPOPTS_SET([BSP_MINIMUM_TASK_STACK_SIZE],[*],[1024])
29RTEMS_BSPOPTS_HELP([BSP_MINIMUM_TASK_STACK_SIZE],[Suggested minimum task stack
30                        size in bytes])
31
32RTEMS_BSPOPTS_SET([BSP_SMALL_MEMORY],[*],[])
33RTEMS_BSPOPTS_HELP([BSP_SMALL_MEMORY],[disable testsuite
34                        samples with high memory demands])
35
36RTEMS_BSPOPTS_SET([LPC176X_OSCILLATOR_MAIN],[*],[12000000U])
37RTEMS_BSPOPTS_HELP([LPC176X_OSCILLATOR_MAIN],[main oscillator frequency in Hz])
38
39RTEMS_BSPOPTS_SET([LPC176X_OSCILLATOR_RTC],[*],[32768U])
40RTEMS_BSPOPTS_HELP([LPC176X_OSCILLATOR_RTC],[RTC oscillator frequency in Hz])
41
42RTEMS_BSPOPTS_SET([LPC176X_CCLK],[*],[96000000U])
43RTEMS_BSPOPTS_HELP([LPC176X_CCLK],[CPU clock in Hz])
44
45RTEMS_BSPOPTS_SET([LPC176X_PCLKDIV],[*],[1U])
46RTEMS_BSPOPTS_HELP([LPC176X_PCLKDIV],[clock divider for default
47                        PCLK (PCLK = CCLK / PCLKDIV)])
48
49RTEMS_BSPOPTS_SET([LPC176X_UART_BAUD],[*],[9600U])
50RTEMS_BSPOPTS_HELP([LPC176X_UART_BAUD],[baud for UARTs])
51
52RTEMS_BSPOPTS_SET([LPC176X_CONFIG_UART_1],[*],[1])
53RTEMS_BSPOPTS_HELP([LPC176X_CONFIG_UART_1],[Use Uart 1])
54
55RTEMS_BSPOPTS_SET([LPC176X_CONFIG_CONSOLE],[*],[0])
56RTEMS_BSPOPTS_HELP([LPC176X_CONFIG_CONSOLE],[configuration
57                        for console (UART 0)])
58
59RTEMS_BSPOPTS_SET([LPC176X_STOP_GPDMA],[*],[1])
60RTEMS_BSPOPTS_HELP([LPC176X_STOP_GPDMA],[stop general purpose DMA
61                        at start-up to avoid DMA interference])
62
63RTEMS_BSPOPTS_SET([LPC176X_STOP_USB],[*],[1])
64RTEMS_BSPOPTS_HELP([LPC176X_STOP_USB],[stop USB controller
65                        at start-up to avoid DMA interference])
66
67RTEMS_BSPOPTS_SET([LPC_DMA_CHANNEL_COUNT],[*],[2])
68RTEMS_BSPOPTS_HELP([LPC_DMA_CHANNEL_COUNT],[DMA channel count])
69
70RTEMS_BSP_CLEANUP_OPTIONS(0, 1)
71RTEMS_BSP_LINKCMDS
72
73AC_CONFIG_FILES([Makefile])
74AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.