source: rtems/c/src/lib/libbsp/arm/atsam/Makefile.am @ 6878519

Last change on this file since 6878519 was 6878519, checked in by Christian Mauderer <christian.mauderer@…>, on Feb 6, 2018 at 3:28:28 PM

bsp/atsam: Fix cache / DMA handling in SPI.

This patch fixes the cache handling for the atsam SPI driver. Note that
this solution might doesn't have the best performance for small packets.

  • Property mode set to 100644
File size: 7.0 KB
Line 
1ACLOCAL_AMFLAGS = -I ../../../../aclocal
2EXTRA_DIST =
3
4include $(top_srcdir)/../../../../automake/compile.am
5include $(top_srcdir)/../../bsp.am
6
7###############################################################################
8#                  Data                                                       #
9###############################################################################
10
11dist_project_lib_DATA = startup/bsp_specs
12
13EXTRA_DIST += ../shared/start/start.S
14start.$(OBJEXT): ../shared/start/start.S
15        $(CPPASCOMPILE) -o $@ -c $<
16project_lib_DATA = start.$(OBJEXT)
17
18project_lib_DATA += linkcmds
19project_lib_DATA += linkcmds.memory
20dist_project_lib_DATA += startup/linkcmds.intsram
21dist_project_lib_DATA += startup/linkcmds.sdram
22dist_project_lib_DATA += startup/linkcmds.qspiflash
23
24###############################################################################
25#                  Header                                                     #
26###############################################################################
27
28###############################################################################
29#                  LibBSP                                                     #
30###############################################################################
31
32noinst_LIBRARIES = libbsp.a
33
34libbsp_a_SOURCES =
35libbsp_a_CPPFLAGS = $(AM_CPPFLAGS)
36libbsp_a_LIBADD =
37
38# Shared
39libbsp_a_SOURCES += ../../shared/bootcard.c
40libbsp_a_SOURCES += ../../shared/bspclean.c
41libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
42libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
43libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
44libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
45libbsp_a_SOURCES += ../../shared/sbrk.c
46libbsp_a_SOURCES += ../../shared/src/stackalloc.c
47
48# libchip
49libbsp_a_SOURCES += libraries/libchip/source/acc.c
50libbsp_a_SOURCES += libraries/libchip/source/aes.c
51libbsp_a_SOURCES += libraries/libchip/source/afec.c
52libbsp_a_SOURCES += libraries/libchip/source/afe_dma.c
53libbsp_a_SOURCES += libraries/libchip/source/dac_dma.c
54libbsp_a_SOURCES += libraries/libchip/source/efc.c
55libbsp_a_SOURCES += libraries/libchip/source/exceptions.c
56libbsp_a_SOURCES += libraries/libchip/source/flashd.c
57libbsp_a_SOURCES += libraries/libchip/source/gmac.c
58libbsp_a_SOURCES += libraries/libchip/source/gmacd.c
59libbsp_a_SOURCES += libraries/libchip/source/hsmci.c
60libbsp_a_SOURCES += libraries/libchip/source/icm.c
61libbsp_a_SOURCES += libraries/libchip/source/isi.c
62libbsp_a_SOURCES += libraries/libchip/source/mcan.c
63libbsp_a_SOURCES += libraries/libchip/source/mediaLB.c
64libbsp_a_SOURCES += libraries/libchip/source/mpu.c
65libbsp_a_SOURCES += libraries/libchip/source/pio.c
66libbsp_a_SOURCES += libraries/libchip/source/pio_capture.c
67libbsp_a_SOURCES += libraries/libchip/source/pio_it.c
68libbsp_a_SOURCES += libraries/libchip/source/pmc.c
69libbsp_a_SOURCES += libraries/libchip/source/pwmc.c
70libbsp_a_SOURCES += libraries/libchip/source/qspi.c
71libbsp_a_SOURCES += libraries/libchip/source/qspi_dma.c
72libbsp_a_SOURCES += libraries/libchip/source/rstc.c
73libbsp_a_SOURCES += libraries/libchip/source/rtc.c
74libbsp_a_SOURCES += libraries/libchip/source/rtt.c
75libbsp_a_SOURCES += libraries/libchip/source/sdramc.c
76libbsp_a_SOURCES += libraries/libchip/source/spi.c
77libbsp_a_SOURCES += libraries/libchip/source/spi_dma.c
78libbsp_a_SOURCES += libraries/libchip/source/ssc.c
79libbsp_a_SOURCES += libraries/libchip/source/supc.c
80libbsp_a_SOURCES += libraries/libchip/source/tc.c
81libbsp_a_SOURCES += libraries/libchip/source/trng.c
82libbsp_a_SOURCES += libraries/libchip/source/twi.c
83libbsp_a_SOURCES += libraries/libchip/source/twid.c
84libbsp_a_SOURCES += libraries/libchip/source/uart.c
85libbsp_a_SOURCES += libraries/libchip/source/uart_dma.c
86libbsp_a_SOURCES += libraries/libchip/source/usart.c
87libbsp_a_SOURCES += libraries/libchip/source/usart_dma.c
88libbsp_a_SOURCES += libraries/libchip/source/wdt.c
89libbsp_a_SOURCES += libraries/libchip/source/xdmad.c
90libbsp_a_SOURCES += libraries/libchip/source/xdma_hardware_interface.c
91
92# libboard
93libbsp_a_SOURCES += libraries/libboard/resources_v71/system_samv71.c
94libbsp_a_SOURCES += libraries/libboard/source/board_lowlevel.c
95libbsp_a_SOURCES += libraries/libboard/source/board_memories.c
96libbsp_a_SOURCES += libraries/libboard/source/dbg_console.c
97
98# Startup
99libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S
100libbsp_a_SOURCES += ../shared/armv7m/startup/bspreset.c
101libbsp_a_SOURCES += ../shared/armv7m/startup/armv7m-cpucounter.c
102libbsp_a_SOURCES += startup/bspstart.c
103libbsp_a_SOURCES += startup/bspstarthooks.c
104libbsp_a_SOURCES += startup/getentropy-trng.c
105libbsp_a_SOURCES += startup/pin-config.c
106libbsp_a_SOURCES += startup/pmc-config.c
107libbsp_a_SOURCES += startup/power-clock.c
108libbsp_a_SOURCES += startup/power-rtc.c
109libbsp_a_SOURCES += startup/power.c
110libbsp_a_SOURCES += startup/power-rtc.c
111libbsp_a_SOURCES += startup/power-clock.c
112libbsp_a_SOURCES += startup/restart.c
113libbsp_a_SOURCES += startup/sdram-config.c
114
115# IRQ
116libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c
117libbsp_a_SOURCES += ../../shared/src/irq-generic.c
118libbsp_a_SOURCES += ../../shared/src/irq-info.c
119libbsp_a_SOURCES += ../../shared/src/irq-legacy.c
120libbsp_a_SOURCES += ../../shared/src/irq-server.c
121libbsp_a_SOURCES += ../../shared/src/irq-shell.c
122libbsp_a_SOURCES += ../shared/armv7m/irq/armv7m-irq.c
123libbsp_a_SOURCES += ../shared/armv7m/irq/armv7m-irq-dispatch.c
124
125# Console
126libbsp_a_SOURCES += ../../shared/console-termios.c
127libbsp_a_SOURCES += console/console.c
128libbsp_a_SOURCES += console/debug-console.c
129
130# Clock
131libbsp_a_SOURCES += ../../shared/clockdrv_shell.h
132libbsp_a_SOURCES += ../shared/armv7m/clock/armv7m-clock-config.c
133libbsp_a_SOURCES += clock/systick-freq.c
134
135# Timer
136libbsp_a_SOURCES += ../../shared/timerstub.c
137
138# Cache
139libbsp_a_SOURCES += ../../../../../../bsps/arm/shared/cache/cache-v7m.c
140
141# Network
142if HAS_NETWORKING
143libbsp_a_SOURCES += network/if_atsam.c
144endif
145
146# I2C
147libbsp_a_SOURCES += i2c/atsam_i2c_bus.c
148libbsp_a_SOURCES += i2c/atsam_i2c_init.c
149
150# SPI
151libbsp_a_SOURCES += spi/atsam_spi_bus.c
152libbsp_a_SOURCES += spi/atsam_spi_init.c
153libbsp_a_SOURCES += spi/sc16is752.c
154
155# RTC
156libbsp_a_SOURCES += ../../shared/tod.c
157libbsp_a_SOURCES += rtc/rtc-config.c
158
159# Helper functions
160libbsp_a_SOURCES += utils/iocopy.c
161
162# Includes
163libbsp_a_CPPFLAGS += -I$(srcdir)/../shared/CMSIS/Include
164libbsp_a_CPPFLAGS += -I$(srcdir)/libraries/libboard
165libbsp_a_CPPFLAGS += -I$(srcdir)/libraries/libboard/include
166libbsp_a_CPPFLAGS += -I$(srcdir)/libraries/libchip
167libbsp_a_CPPFLAGS += -I$(srcdir)/libraries/libchip/include
168
169# hack to get the BSP to build
170libbsp_a_CPPFLAGS += -I$(RTEMS_SOURCE_ROOT)/bsps/arm/atsam/include/libchip
171libbsp_a_CPPFLAGS += -I$(RTEMS_SOURCE_ROOT)/bsps/arm/atsam/include/libchip/include
172
173###############################################################################
174#                  Special Rules                                              #
175###############################################################################
176
177DISTCLEANFILES = include/bspopts.h
178
179include $(top_srcdir)/../../../../automake/local.am
180include $(srcdir)/../../../../../../bsps/arm/atsam/headers.am
Note: See TracBrowser for help on using the repository browser.