Subversion Repositories svn.mios

Rev

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

# $Id: Makefile 1194 2015-06-08 21:05:14Z tk $

# define the processor, linker file and project name
PROCESSOR = 18f452
LKR_FILE  = $(MIOS_PATH)/etc/lkr/p$(PROCESSOR).lkr
PROJECT   = project

# list of objects that should be created and linked
OBJS = mios_wrapper.o app_lcd.o main.o blm_scalar.o sysex.o

# include pathes (more will be added by .mk files)
GPASM_INCLUDE = 
SDCC_INCLUDE  = 

# optional defines that should be passed to GPASM/SDCC
GPASM_DEFINES = -DDEBUG_MODE=0
SDCC_DEFINES  = -DDEBUG_MODE=0

# optional app flags for special hardware variants
SDCC_DEFINES += -DBLM_MIRROR_MAIN_DIN=0
SDCC_DEFINES += -DBLM_AIN_PIN_MAP=0


# pass parameters to MIOS wrapper
MIOS_WRAPPER_DEFINES = -DSTACK_HEAD=0x37f -DSTACK_IRQ_HEAD=0x33f

# directories and files that should be part of the distribution (release) package
# more will be added by *.mk files
DIST = ./


# include the common.mk file
include $(MIOS_PATH)/include/makefile/common.mk

# include application specific driver (select app_lcd/dummy if MIOS internal driver used)
include $(MIOS_PATH)/modules/app_lcd/dummy/app_lcd.mk

# include Button/Duo-LED driver for BLM_SCALAR
# You can override following defines to re-assign shiftregisters if required
# some of the parameters are self-explaining, some others maybe not... just
# have a look into the source code at $(MIOS_PATH)/modules/blm_scalar/blm_scalar.inc
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_GREEN1=2
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_GREEN2=5
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_GREEN3=8
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_GREEN4=11
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_GREEN5=14
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_RED1=3
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_RED2=6
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_RED3=9
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_RED4=12
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_RED5=15
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_CATHODES1=1
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_CATHODES2=4
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_CATHODES3=7
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_CATHODES4=10
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DOUT_CATHODES5=13
BLM_SCALAR_DEFINES += -DBLM_SCALAR_CATHODES_INV_MASK=0xff
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DIN1=1
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DIN2=2
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DIN3=3
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DIN4=4
BLM_SCALAR_DEFINES += -DBLM_SCALAR_DIN5=5
include $(MIOS_PATH)/modules/blm_scalar/blm_scalar.mk