Subversion Repositories idreammicro-avr

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 jlesech 1
# Import environment set for AVR-GCC.
2
Import('env_avr')
3
 
4
# Create target environment by cloning AVR environment.
5
env_target = env_avr.Clone()
6
 
6 jlesech 7
# Define environment name.
8
env_target.Append(NAME = 'env_arduino_uno')
9
 
2 jlesech 10
# Microcontroller type.
6 jlesech 11
env_target.Append(MCU = 'atmega328p')
12
# Microcontroller frequency in Hertz.
13
env_target.Append(F_CPU = '16000000UL')
2 jlesech 14
 
15
# Set environment for an Atmel AVR ATmega328p microcontroller.
6 jlesech 16
env_target.Append(CCFLAGS = '-mmcu=' + env_target['MCU'])
17
env_target.Append(LINKFLAGS = '-mmcu=' + env_target['MCU'])
18
env_target.Append(CPPDEFINES = 'F_CPU=' + env_target['F_CPU'])
2 jlesech 19
 
20
# Export environment set for target.
6 jlesech 21
Export('env_target')