Subversion Repositories idreammicro-avr

Rev

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

# Import environment set for AVR-GCC.
Import('env_avr')

# Create target environment by cloning AVR environment.
env_target = env_avr.Clone()

# Define environment name.
env_target.Append(NAME = 'env_arduino_leonardo')

# Microcontroller type.
env_target.Append(MCU = 'atmega32u4')
# Microcontroller frequency in Hertz.
env_target.Append(F_CPU = '16000000UL')

# Set environment for an Atmel AVR ATmega328p microcontroller.
env_target.Append(CCFLAGS = '-mmcu=' + env_target['MCU'])
env_target.Append(LINKFLAGS = '-mmcu=' + env_target['MCU'])
env_target.Append(CPPDEFINES = 'F_CPU=' + env_target['F_CPU'])

# Export environment set for target.
Export('env_target')