Rev 2 |
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_uno')
# Microcontroller type.
env_target.Append(MCU = 'atmega328p')
# 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')