Subversion Repositories svn.mios32

Rev

Rev 66 | Rev 78 | 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 69 2008-10-06 22:24:22Z tk $
2
# defines additional rules for MIOS32
3
 
69 tk 4
# select driver library
5
DRIVER_LIB =	$(MIOS32_PATH)/drivers/$(FAMILY)/v2.0.1
6
 
23 tk 7
# enhance include path
30 tk 8
C_INCLUDE +=	-I $(MIOS32_PATH)/modules/mios32 \
9
		-I $(DRIVER_LIB)/inc
10 tk 10
 
69 tk 11
# forward MIOS32 environment variables to preprocessor
12
CFLAGS    +=    -DMIOS32_PROCESSOR_$(PROCESSOR) \
13
		-DMIOS32_FAMILY_$(FAMILY) \
14
		-DMIOS32_BOARD_$(BOARD)
23 tk 15
 
69 tk 16
 
29 tk 17
# add modules to thumb sources
18
# TODO: provide makefile option to add code to ARM sources
19
# TODO: select driver library depending on PROCESSOR/FAMILY variable
23 tk 20
THUMB_SOURCE += \
21
	$(MIOS32_PATH)/modules/mios32/mios32_sys.c \
22
	$(MIOS32_PATH)/modules/mios32/mios32_srio.c \
23
	$(MIOS32_PATH)/modules/mios32/mios32_din.c \
27 tk 24
	$(MIOS32_PATH)/modules/mios32/mios32_dout.c \
58 tk 25
	$(MIOS32_PATH)/modules/mios32/mios32_enc.c \
37 tk 26
	$(MIOS32_PATH)/modules/mios32/mios32_lcd.c \
32 tk 27
	$(MIOS32_PATH)/modules/mios32/mios32_midi.c \
27 tk 28
	$(MIOS32_PATH)/modules/mios32/mios32_usb.c \
29
	$(MIOS32_PATH)/modules/mios32/mios32_usb_desc.c \
47 tk 30
	$(MIOS32_PATH)/modules/mios32/mios32_board.c \
29 tk 31
	$(DRIVER_LIB)/src/stm32f10x_gpio.c \
32
	$(DRIVER_LIB)/src/stm32f10x_flash.c \
33
	$(DRIVER_LIB)/src/stm32f10x_spi.c \
66 tk 34
	$(DRIVER_LIB)/src/stm32f10x_dma.c \
29 tk 35
	$(DRIVER_LIB)/src/stm32f10x_rcc.c \
36
	$(DRIVER_LIB)/src/stm32f10x_systick.c \
37
	$(DRIVER_LIB)/src/stm32f10x_nvic.c \
27 tk 38
	$(DRIVER_LIB)/src/usb_core.c \
39
	$(DRIVER_LIB)/src/usb_init.c \
40
	$(DRIVER_LIB)/src/usb_int.c \
41
	$(DRIVER_LIB)/src/usb_mem.c \
42
	$(DRIVER_LIB)/src/usb_regs.c
23 tk 43
 
27 tk 44
# MEMO: the gcc linker is clever enough to exclude functions from the final memory image
45
# if they are not references from the main routine - accordingly we can savely include
46
# the USB drivers without the danger that this increases the project size of applications,
47
# which don't use the USB peripheral at all :-)
23 tk 48
 
27 tk 49
 
10 tk 50
# directories and files that should be part of the distribution (release) package
51
DIST += $(MIOS32_PATH)/modules/mios32