Subversion Repositories svn.mios32

Rev

Rev 145 | Rev 150 | 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 146 2008-12-02 00:18:00Z 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
146 tk 8
C_INCLUDE +=	-I $(MIOS32_PATH)/include/mios32 \
30 tk 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
23 tk 19
THUMB_SOURCE += \
146 tk 20
	$(MIOS32_PATH)/mios32/common/mios32_din.c \
21
	$(MIOS32_PATH)/mios32/common/mios32_dout.c \
22
	$(MIOS32_PATH)/mios32/common/mios32_enc.c \
23
	$(MIOS32_PATH)/mios32/common/mios32_lcd.c \
24
	$(MIOS32_PATH)/mios32/common/mios32_midi.c \
25
	$(MIOS32_PATH)/mios32/common/mios32_com.c \
26
	$(MIOS32_PATH)/mios32/common/mios32_uart_midi.c \
27
	$(MIOS32_PATH)/mios32/common/mios32_iic_bs.c \
28
	$(MIOS32_PATH)/mios32/stm32/mios32_sys.c \
29
	$(MIOS32_PATH)/mios32/stm32/mios32_irq.c \
30
	$(MIOS32_PATH)/mios32/stm32/mios32_srio.c \
31
	$(MIOS32_PATH)/mios32/stm32/mios32_iic_midi.c \
32
	$(MIOS32_PATH)/mios32/stm32/mios32_i2s.c \
33
	$(MIOS32_PATH)/mios32/stm32/mios32_board.c \
34
	$(MIOS32_PATH)/mios32/stm32/mios32_timer.c \
35
	$(MIOS32_PATH)/mios32/stm32/mios32_delay.c \
36
	$(MIOS32_PATH)/mios32/stm32/mios32_sdcard.c \
37
	$(MIOS32_PATH)/mios32/stm32/mios32_ain.c \
38
	$(MIOS32_PATH)/mios32/stm32/mios32_mf.c \
39
	$(MIOS32_PATH)/mios32/stm32/mios32_usb.c \
40
	$(MIOS32_PATH)/mios32/stm32/mios32_usb_midi.c \
41
	$(MIOS32_PATH)/mios32/stm32/mios32_usb_com.c \
42
	$(MIOS32_PATH)/mios32/stm32/mios32_uart.c \
43
	$(MIOS32_PATH)/mios32/stm32/mios32_iic.c \
29 tk 44
	$(DRIVER_LIB)/src/stm32f10x_gpio.c \
45
	$(DRIVER_LIB)/src/stm32f10x_flash.c \
90 tk 46
	$(DRIVER_LIB)/src/stm32f10x_adc.c \
29 tk 47
	$(DRIVER_LIB)/src/stm32f10x_spi.c \
80 tk 48
	$(DRIVER_LIB)/src/stm32f10x_usart.c \
78 tk 49
	$(DRIVER_LIB)/src/stm32f10x_i2c.c \
66 tk 50
	$(DRIVER_LIB)/src/stm32f10x_dma.c \
87 tk 51
	$(DRIVER_LIB)/src/stm32f10x_tim.c \
29 tk 52
	$(DRIVER_LIB)/src/stm32f10x_rcc.c \
53
	$(DRIVER_LIB)/src/stm32f10x_systick.c \
54
	$(DRIVER_LIB)/src/stm32f10x_nvic.c \
27 tk 55
	$(DRIVER_LIB)/src/usb_core.c \
56
	$(DRIVER_LIB)/src/usb_init.c \
57
	$(DRIVER_LIB)/src/usb_int.c \
58
	$(DRIVER_LIB)/src/usb_mem.c \
59
	$(DRIVER_LIB)/src/usb_regs.c
23 tk 60
 
27 tk 61
# MEMO: the gcc linker is clever enough to exclude functions from the final memory image
62
# if they are not references from the main routine - accordingly we can savely include
63
# the USB drivers without the danger that this increases the project size of applications,
64
# which don't use the USB peripheral at all :-)
23 tk 65
 
27 tk 66
 
10 tk 67
# directories and files that should be part of the distribution (release) package
68
DIST += $(MIOS32_PATH)/modules/mios32