source: rtems/c/src/lib/libbsp/arm/lpc24xx/Makefile.am @ c499856

4.115
Last change on this file since c499856 was 24bf11e, checked in by Sebastian Huber <sebastian.huber@…>, on 02/12/14 at 09:31:38

score: Add CPU counter support

Add a CPU counter interface to allow access to a free-running counter.
It is useful to measure short time intervals. This can be used for
example to enable profiling of critical low-level functions.

Add two busy wait functions rtems_counter_delay_ticks() and
rtems_counter_delay_nanoseconds() implemented via the CPU counter.

  • Property mode set to 100644
File size: 6.6 KB
RevLine 
[5aeed17]1##
2#
3# @file
4#
[29cc1477]5# @brief Makefile of LibBSP for the LPC24XX boards.
[5aeed17]6#
7
8ACLOCAL_AMFLAGS = -I ../../../../aclocal
9
10include $(top_srcdir)/../../../../automake/compile.am
11
12include_bspdir = $(includedir)/bsp
13
[3416c44]14dist_project_lib_DATA = bsp_specs
15
[5aeed17]16###############################################################################
17#                  Header                                                     #
18###############################################################################
19
[f969fcb]20include_HEADERS = include/bsp.h
[5aeed17]21
[9647f7fe]22nodist_include_HEADERS = ../../shared/include/coverhd.h \
23        include/bspopts.h
[29cc1477]24
[3416c44]25nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
[5aeed17]26
[f969fcb]27include_bsp_HEADERS =
28include_bsp_HEADERS += ../../shared/include/utility.h
[ef06d30]29include_bsp_HEADERS += ../../shared/include/irq-generic.h
[9647f7fe]30include_bsp_HEADERS += ../../shared/include/irq-info.h
[7ae2775]31include_bsp_HEADERS += ../../shared/include/stackalloc.h
[a9485d7b]32include_bsp_HEADERS += ../../shared/include/uart-output-char.h
[ef06d30]33include_bsp_HEADERS += ../../shared/tod.h
34include_bsp_HEADERS += ../shared/include/start.h
[8fdf4e57]35include_bsp_HEADERS += ../shared/include/arm-pl111-fb.h
36include_bsp_HEADERS += ../shared/include/arm-pl111-regs.h
[c468f18b]37include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h
[dd853a3]38include_bsp_HEADERS += ../shared/lpc/include/lpc-i2s.h
[d74ed4a]39include_bsp_HEADERS += ../shared/lpc/include/lpc-emc.h
40include_bsp_HEADERS += ../shared/lpc/include/lpc-dma.h
41include_bsp_HEADERS += ../shared/lpc/include/lpc-lcd.h
[bd0fb473]42include_bsp_HEADERS += ../shared/armv7m/include/armv7m-irq.h
[ef06d30]43include_bsp_HEADERS += include/dma.h
[7ae2775]44include_bsp_HEADERS += include/i2c.h
45include_bsp_HEADERS += include/io.h
[4f609eec]46include_bsp_HEADERS += include/irq.h
[dd853a3]47include_bsp_HEADERS += include/lcd.h
[4a6cc2a]48include_bsp_HEADERS += include/lpc17xx.h
[4f609eec]49include_bsp_HEADERS += include/lpc24xx.h
[c468f18b]50include_bsp_HEADERS += include/lpc-clock-config.h
[39c8fdb]51include_bsp_HEADERS += include/lpc-ethernet-config.h
[4f609eec]52include_bsp_HEADERS += include/ssp.h
53include_bsp_HEADERS += include/start-config.h
54include_bsp_HEADERS += include/system-clocks.h
[9647f7fe]55
[ef06d30]56include_HEADERS += ../../shared/include/tm27.h
[5aeed17]57
58###############################################################################
59#                  Data                                                       #
60###############################################################################
61
[c0bea05]62noinst_LIBRARIES = libbspstart.a
[29cc1477]63
[c0bea05]64libbspstart_a_SOURCES = ../shared/start/start.S
[29cc1477]65
[5aeed17]66project_lib_DATA = start.$(OBJEXT)
67
[7187942]68project_lib_DATA += startup/linkcmds
[4f609eec]69EXTRA_DIST =
[14ee5a1e]70EXTRA_DIST += startup/linkcmds.lpc17xx_ea_ram
71EXTRA_DIST += startup/linkcmds.lpc17xx_ea_rom_int
[d40b09d]72EXTRA_DIST += startup/linkcmds.lpc17xx_plx800_ram
73EXTRA_DIST += startup/linkcmds.lpc17xx_plx800_rom_int
[c468f18b]74EXTRA_DIST += startup/linkcmds.lpc2362
[b18fd86]75EXTRA_DIST += startup/linkcmds.lpc23xx_tli800
[4f609eec]76EXTRA_DIST += startup/linkcmds.lpc24xx_ea
77EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_ram
78EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_rom_ext
79EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_rom_int
[4868c771]80EXTRA_DIST += startup/linkcmds.lpc24xx_plx800_ram
[4f609eec]81EXTRA_DIST += startup/linkcmds.lpc24xx_plx800_rom_int
[5aeed17]82
83###############################################################################
84#                  LibBSP                                                     #
85###############################################################################
[29cc1477]86
[c0bea05]87noinst_LIBRARIES += libbsp.a
[29cc1477]88
[64eb0c7]89libbsp_a_SOURCES =
[39c8fdb]90libbsp_a_CPPFLAGS =
91libbsp_a_LIBADD =
[5aeed17]92
[29cc1477]93# Shared
[64eb0c7]94libbsp_a_SOURCES += ../../shared/bootcard.c \
[5aeed17]95        ../../shared/bspclean.c \
96        ../../shared/bspgetworkarea.c \
97        ../../shared/bsplibc.c \
98        ../../shared/bsppost.c \
99        ../../shared/bsppredriverhook.c \
100        ../../shared/gnatinstallhandler.c \
101        ../../shared/sbrk.c \
[7ae2775]102        ../../shared/src/stackalloc.c \
[4a6cc2a]103        ../../shared/src/uart-output-char.c
[24bf11e]104libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
[5aeed17]105
[29cc1477]106# Startup
[4a6cc2a]107libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
108libbsp_a_SOURCES += startup/bspreset.c
109libbsp_a_SOURCES += startup/bspstart.c
[5aeed17]110
[29cc1477]111# IRQ
[0f31fddc]112libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
113libbsp_a_SOURCES += ../../shared/src/irq-generic.c
114libbsp_a_SOURCES += ../../shared/src/irq-info.c
115libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
116libbsp_a_SOURCES += ../../shared/src/irq-server.c
117libbsp_a_SOURCES += ../../shared/src/irq-shell.c
[bd0fb473]118libbsp_a_SOURCES += ../shared/armv7m/irq/armv7m-irq.c
119libbsp_a_SOURCES += ../shared/armv7m/irq/armv7m-irq-dispatch.c
[0f31fddc]120libbsp_a_SOURCES += irq/irq.c
121libbsp_a_SOURCES += irq/irq-dispatch.c
[5aeed17]122
[29cc1477]123# Console
[6a22637]124libbsp_a_SOURCES += ../../shared/console.c
125libbsp_a_SOURCES += ../../shared/console_control.c
126libbsp_a_SOURCES += ../../shared/console_read.c
127libbsp_a_SOURCES += ../../shared/console_select.c
128libbsp_a_SOURCES += ../../shared/console_write.c
129libbsp_a_SOURCES += console/console-config.c
130libbsp_a_SOURCES += console/uart-probe-1.c
131libbsp_a_SOURCES += console/uart-probe-2.c
132libbsp_a_SOURCES += console/uart-probe-3.c
[5aeed17]133
[29cc1477]134# Clock
[1f7d0cca]135libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
[34c61517]136libbsp_a_SOURCES += ../shared/lpc/clock/lpc-clock-config.c
137libbsp_a_SOURCES += ../shared/armv7m/clock/armv7m-clock-config.c
[5aeed17]138
[29cc1477]139# RTC
[64eb0c7]140libbsp_a_SOURCES += ../../shared/tod.c \
[5aeed17]141        rtc/rtc-config.c
142
[29cc1477]143# Misc
144libbsp_a_SOURCES += misc/system-clocks.c \
[7ae2775]145        misc/dma.c \
[ba938b8d]146        misc/dma-copy.c \
[e90329f]147        misc/bspidle.c \
[ba938b8d]148        misc/io.c \
[dd853a3]149        misc/lcd.c \
[c446d7c]150        misc/restart.c \
[ba938b8d]151        misc/timer.c
[29cc1477]152
153# SSP
154libbsp_a_SOURCES += ssp/ssp.c
[5aeed17]155
[7ae2775]156# I2C
[d74ed4a]157libbsp_a_SOURCES += i2c/i2c.c \
158        i2c/i2c-config.c
[7ae2775]159
[8fdf4e57]160# Framebuffer
161libbsp_a_SOURCES += ../shared/arm-pl111-fb.c
162libbsp_a_SOURCES += startup/fb-config.c
163
[39c8fdb]164# Cache
[30a45737]165libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
166libbsp_a_SOURCES += ../../../libcpu/arm/shared/include/cache_.h
[39c8fdb]167libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include
168
[22f107b6]169# Start hooks
[ba938b8d]170libbsp_a_SOURCES += startup/bspstarthooks.c
[4f609eec]171libbsp_a_SOURCES += startup/start-config-emc-dynamic.c
172libbsp_a_SOURCES += startup/start-config-emc-static.c
[14ee5a1e]173libbsp_a_SOURCES += startup/start-config-mpu.c
[4f609eec]174libbsp_a_SOURCES += startup/start-config-pinsel.c
[ba938b8d]175
[9647f7fe]176###############################################################################
177#                  Network                                                    #
178###############################################################################
179
180if HAS_NETWORKING
181
182noinst_PROGRAMS = network.rel
183
[39c8fdb]184network_rel_SOURCES = ../shared/lpc/network/lpc-ethernet.c
[9647f7fe]185network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
186network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
187
[39c8fdb]188libbsp_a_LIBADD += network.rel
[9647f7fe]189
190endif
191
[5aeed17]192###############################################################################
193#                  Special Rules                                              #
194###############################################################################
195
[29cc1477]196DISTCLEANFILES = include/bspopts.h
[5aeed17]197
198include $(srcdir)/preinstall.am
199include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.