source: rtems/c/src/lib/libbsp/arm/lpc176x/Makefile.am @ 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: 5.0 KB
Line 
1##
2#
3# @file
4#
5# @brief Makefile of LibBSP for the LPC176x boards.
6#
7
8ACLOCAL_AMFLAGS = -I ../../../../aclocal
9
10include $(top_srcdir)/../../../../automake/compile.am
11
12include_bspdir = $(includedir)/bsp
13
14dist_project_lib_DATA = bsp_specs
15
16
17# ----------------------------
18# ------  Headers
19# ----------------------------
20
21include_HEADERS = include/bsp.h
22
23nodist_include_HEADERS = ../../shared/include/coverhd.h
24nodist_include_HEADERS += include/bspopts.h
25
26nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
27
28include_bsp_HEADERS =
29include_bsp_HEADERS += ../../shared/include/utility.h
30include_bsp_HEADERS += ../../shared/include/irq-generic.h
31include_bsp_HEADERS += ../../shared/include/irq-info.h
32include_bsp_HEADERS += ../../shared/include/stackalloc.h
33include_bsp_HEADERS += ../../shared/include/uart-output-char.h
34include_bsp_HEADERS += ../shared/include/start.h
35include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h
36include_bsp_HEADERS += ../shared/lpc/include/lpc-i2s.h
37include_bsp_HEADERS += ../shared/lpc/include/lpc-dma.h
38include_bsp_HEADERS += ../shared/armv7m/include/armv7m-irq.h
39include_bsp_HEADERS += include/dma.h
40include_bsp_HEADERS += include/io-defs.h
41include_bsp_HEADERS += include/io.h
42include_bsp_HEADERS += include/common-types.h
43include_bsp_HEADERS += include/gpio-defs.h
44include_bsp_HEADERS += include/gpio.h
45include_bsp_HEADERS += include/can.h
46include_bsp_HEADERS += include/can-defs.h
47include_bsp_HEADERS += include/pwmout.h
48include_bsp_HEADERS += include/pwmout-defs.h
49include_bsp_HEADERS += include/adc.h
50include_bsp_HEADERS += include/adc-defs.h
51include_bsp_HEADERS += include/timer-defs.h
52include_bsp_HEADERS += include/timer.h
53include_bsp_HEADERS += include/watchdog.h
54include_bsp_HEADERS += include/watchdog-defs.h
55include_bsp_HEADERS += include/irq.h
56include_bsp_HEADERS += include/lpc176x.h
57include_bsp_HEADERS += include/lpc-clock-config.h
58include_bsp_HEADERS += include/system-clocks.h
59include_bsp_HEADERS += include/mbed-pinmap.h
60
61include_HEADERS += ../../shared/include/tm27.h
62
63
64# ----------------------------
65# ------  Data
66# ----------------------------
67
68noinst_LIBRARIES = libbspstart.a
69
70libbspstart_a_SOURCES = ../shared/start/start.S
71
72project_lib_DATA = start.$(OBJEXT)
73project_lib_DATA += startup/linkcmds
74
75EXTRA_DIST =
76EXTRA_DIST += startup/linkcmds.lpc1768_mbed
77EXTRA_DIST += startup/linkcmds.lpc1768_mbed_ahb_ram
78EXTRA_DIST += startup/linkcmds.lpc1768_mbed_ahb_ram_eth
79
80
81# ----------------------------
82# ------  LibBSP
83# ----------------------------
84
85noinst_LIBRARIES += libbsp.a
86
87libbsp_a_SOURCES =
88libbsp_a_CPPFLAGS =
89libbsp_a_LIBADD =
90
91# Shared
92libbsp_a_SOURCES += ../../shared/bootcard.c
93libbsp_a_SOURCES += ../../shared/bspclean.c
94libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
95libbsp_a_SOURCES += ../../shared/bsplibc.c
96libbsp_a_SOURCES += ../../shared/bsppost.c
97libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
98libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
99libbsp_a_SOURCES += ../../shared/sbrk.c
100libbsp_a_SOURCES += ../../shared/src/stackalloc.c
101libbsp_a_SOURCES += ../../shared/src/uart-output-char.c
102
103# Startup
104libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
105libbsp_a_SOURCES += startup/bspreset.c
106libbsp_a_SOURCES += startup/bspstart.c
107
108# IRQ
109libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
110libbsp_a_SOURCES += ../../shared/src/irq-generic.c
111libbsp_a_SOURCES += ../../shared/src/irq-info.c
112libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
113libbsp_a_SOURCES += ../../shared/src/irq-server.c
114libbsp_a_SOURCES += ../../shared/src/irq-shell.c
115libbsp_a_SOURCES += ../shared/armv7m/irq/armv7m-irq.c
116libbsp_a_SOURCES += ../shared/armv7m/irq/armv7m-irq-dispatch.c
117libbsp_a_SOURCES += irq/irq.c
118
119# Console
120libbsp_a_SOURCES += ../../shared/console-termios-init.c
121libbsp_a_SOURCES += ../../shared/console-termios.c
122libbsp_a_SOURCES += console/console-config.c
123
124# Clock
125libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
126libbsp_a_SOURCES += ../shared/lpc/clock/lpc-clock-config.c
127libbsp_a_SOURCES += ../shared/armv7m/clock/armv7m-clock-config.c
128
129# RTC
130libbsp_a_SOURCES += ../../shared/tod.c \
131                        rtc/rtc-config.c
132
133# GPIO
134libbsp_a_SOURCES += gpio/gpio.c
135
136# CAN
137libbsp_a_SOURCES += can/can.c
138
139# PWMOUT
140libbsp_a_SOURCES += pwmout/pwmout.c
141
142# ADC
143libbsp_a_SOURCES += adc/adc.c
144
145# Timer
146libbsp_a_SOURCES += timer/timer.c
147
148# Benchmark Timer
149libbsp_a_SOURCES += benchmark_timer/benchmark_timer.c
150
151# Misc
152libbsp_a_SOURCES += misc/system-clocks.c
153libbsp_a_SOURCES += misc/dma.c
154libbsp_a_SOURCES += misc/dma-copy.c
155libbsp_a_SOURCES += misc/bspidle.c
156libbsp_a_SOURCES += misc/io.c
157libbsp_a_SOURCES += misc/restart.c
158
159# Watchdog
160libbsp_a_SOURCES += watchdog/watchdog.c
161
162# Cache
163libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
164libbsp_a_SOURCES += ../../../libcpu/arm/shared/include/cache_.h
165libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include
166
167# Start hooks
168libbsp_a_SOURCES += startup/bspstarthooks.c
169
170
171# ----------------------------
172# ------  Special Rules
173# ----------------------------
174
175DISTCLEANFILES = include/bspopts.h
176
177include $(srcdir)/preinstall.am
178include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.