Subversion Repositories idreammicro-avr

Compare Revisions

Regard whitespace Rev 21 → Rev 22

/trunk/build_system/env_arduino_leonardo.py
0,0 → 1,21
# 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')