Subversion Repositories idreammicro-avr

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
22 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
 
7
# Define environment name.
8
env_target.Append(NAME = 'env_arduino_leonardo')
9
 
10
# Microcontroller type.
11
env_target.Append(MCU = 'atmega32u4')
12
# Microcontroller frequency in Hertz.
13
env_target.Append(F_CPU = '16000000UL')
14
 
15
# Set environment for an Atmel AVR ATmega328p microcontroller.
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'])
19
 
20
# Export environment set for target.
21
Export('env_target')