Subversion Repositories idreammicro-avr

Compare Revisions

Ignore whitespace Rev 5 → Rev 6

/trunk/libraries/digital_io/SConstruct/SConstruct
10,16 → 10,18
env['RANLIB'] = 'avr-ranlib'
env.Append(CCFLAGS = '-Os')
 
# Declare some variables about microcontroller.
# Define environment name.
env.Append(NAME = 'env_arduino_uno')
 
# Microcontroller type.
DEVICE = 'atmega328p'
# Microcontroller frequency.
CPU_FREQUENCY = '16000000UL' # Hz
env.Append(MCU = 'atmega328p')
# Microcontroller frequency in Hertz.
env.Append(F_CPU = '16000000UL')
 
# Set environment for an Atmel AVR ATmega328p microcontroller.
env.Append(CCFLAGS = '-mmcu=' + DEVICE)
env.Append(LINKFLAGS = '-mmcu=' + DEVICE)
env.Append(CPPDEFINES = 'F_CPU=' + CPU_FREQUENCY)
env.Append(CCFLAGS = '-mmcu=' + env['MCU'])
env.Append(LINKFLAGS = '-mmcu=' + env['MCU'])
env.Append(CPPDEFINES = 'F_CPU=' + env['F_CPU'])
 
# Append CPPPATH.
env.Append(CPPPATH = [ '#../' ])
28,7 → 30,7
SConscript(
'src/SConscript',
variant_dir = '#build/lib/',
exports = { 'env_target' : env, 'env_name' : 'env_arduino_uno', 'DEVICE' : DEVICE },
exports = { 'env_target' : env },
duplicate = 0
)
 
40,7 → 42,7
SConscript(
'demo/SConscript',
variant_dir = '#build/demo/',
exports = { 'env_target' : env, 'env_name' : 'env_arduino_uno', 'DEVICE' : DEVICE },
exports = { 'env_target' : env },
duplicate = 0
)
 
48,7 → 50,7
SConscript(
'test/SConscript',
variant_dir = '#build/test/',
exports = { 'env_target' : env, 'env_name' : 'env_arduino_uno', 'DEVICE' : DEVICE },
exports = { 'env_target' : env },
duplicate = 0
)