Subversion Repositories svn.mios

Rev

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

Rev Author Line No. Line
859 tk 1
# $Id: Makefile 1194 2015-06-08 21:05:14Z tk $
2
 
3
# define the processor, linker file and project name
4
PROCESSOR = 18f452
5
LKR_FILE  = $(MIOS_PATH)/etc/lkr/p$(PROCESSOR).lkr
6
PROJECT   = project
7
 
8
# list of objects that should be created and linked
973 tk 9
OBJS = mios_wrapper.o app_lcd.o main.o blm_scalar.o sysex.o
859 tk 10
 
11
# include pathes (more will be added by .mk files)
12
GPASM_INCLUDE =
13
SDCC_INCLUDE  =
14
 
15
# optional defines that should be passed to GPASM/SDCC
16
GPASM_DEFINES = -DDEBUG_MODE=0
17
SDCC_DEFINES  = -DDEBUG_MODE=0
18
 
1194 tk 19
# optional app flags for special hardware variants
20
SDCC_DEFINES += -DBLM_MIRROR_MAIN_DIN=0
21
SDCC_DEFINES += -DBLM_AIN_PIN_MAP=0
22
 
23
 
859 tk 24
# pass parameters to MIOS wrapper
25
MIOS_WRAPPER_DEFINES = -DSTACK_HEAD=0x37f -DSTACK_IRQ_HEAD=0x33f
26
 
27
# directories and files that should be part of the distribution (release) package
28
# more will be added by *.mk files
29
DIST = ./
30
 
31
 
32
# include the common.mk file
33
include $(MIOS_PATH)/include/makefile/common.mk
34
 
35
# include application specific driver (select app_lcd/dummy if MIOS internal driver used)
36
include $(MIOS_PATH)/modules/app_lcd/dummy/app_lcd.mk
37
 
909 tk 38
# include Button/Duo-LED driver for BLM_SCALAR
973 tk 39
# You can override following defines to re-assign shiftregisters if required
40
# some of the parameters are self-explaining, some others maybe not... just
41
# have a look into the source code at $(MIOS_PATH)/modules/blm_scalar/blm_scalar.inc
42
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_GREEN1=2
43
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_GREEN2=5
44
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_GREEN3=8
45
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_GREEN4=11
46
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_GREEN5=14
47
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_RED1=3
48
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_RED2=6
49
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_RED3=9
50
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_RED4=12
51
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_RED5=15
52
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_CATHODES1=1
53
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_CATHODES2=4
54
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_CATHODES3=7
55
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_CATHODES4=10
56
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_CATHODES5=13
57
BLM_SCALAR_DEFINES += -DBLM_SCALAR_CATHODES_INV_MASK=0xff
58
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DIN1=1
59
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DIN2=2
60
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DIN3=3
61
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DIN4=4
62
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DIN5=5
909 tk 63
include $(MIOS_PATH)/modules/blm_scalar/blm_scalar.mk