Subversion Repositories svn.mios32

Rev

Rev 27 | Rev 30 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10 tk 1
# $Id: mios32.mk 29 2008-09-16 23:57:41Z tk $
2
# defines additional rules for MIOS32
3
 
23 tk 4
# enhance include path
10 tk 5
C_INCLUDE += -I $(MIOS32_PATH)/modules/mios32
6
 
23 tk 7
 
29 tk 8
# add modules to thumb sources
9
# TODO: provide makefile option to add code to ARM sources
10
# TODO: select driver library depending on PROCESSOR/FAMILY variable
23 tk 11
THUMB_SOURCE += \
12
	$(MIOS32_PATH)/modules/mios32/mios32_sys.c \
13
	$(MIOS32_PATH)/modules/mios32/mios32_srio.c \
14
	$(MIOS32_PATH)/modules/mios32/mios32_din.c \
27 tk 15
	$(MIOS32_PATH)/modules/mios32/mios32_dout.c \
16
	$(MIOS32_PATH)/modules/mios32/mios32_usb.c \
17
	$(MIOS32_PATH)/modules/mios32/mios32_usb_desc.c \
29 tk 18
	$(DRIVER_LIB)/src/stm32f10x_gpio.c \
19
	$(DRIVER_LIB)/src/stm32f10x_flash.c \
20
	$(DRIVER_LIB)/src/stm32f10x_spi.c \
21
	$(DRIVER_LIB)/src/stm32f10x_rcc.c \
22
	$(DRIVER_LIB)/src/stm32f10x_systick.c \
23
	$(DRIVER_LIB)/src/stm32f10x_nvic.c \
27 tk 24
	$(DRIVER_LIB)/src/usb_core.c \
25
	$(DRIVER_LIB)/src/usb_init.c \
26
	$(DRIVER_LIB)/src/usb_int.c \
27
	$(DRIVER_LIB)/src/usb_mem.c \
28
	$(DRIVER_LIB)/src/usb_regs.c
23 tk 29
 
27 tk 30
# MEMO: the gcc linker is clever enough to exclude functions from the final memory image
31
# if they are not references from the main routine - accordingly we can savely include
32
# the USB drivers without the danger that this increases the project size of applications,
33
# which don't use the USB peripheral at all :-)
23 tk 34
 
27 tk 35
 
10 tk 36
# directories and files that should be part of the distribution (release) package
37
DIST += $(MIOS32_PATH)/modules/mios32