Subversion Repositories idreammicro-avr

Rev

Go to most recent revision | Details | 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
 
7
# Declare some variables about microcontroller.
8
# Microcontroller type.
9
DEVICE = 'atmega328p'
10
# Microcontroller frequency.
11
CPU_FREQUENCY = '16000000UL' # Hz
12
 
13
# Set environment for an Atmel AVR ATmega328p microcontroller.
14
env_target.Append(CCFLAGS = '-mmcu=' + DEVICE)
15
env_target.Append(LINKFLAGS = '-mmcu=' + DEVICE)
16
env_target.Append(CPPDEFINES = 'F_CPU=' + CPU_FREQUENCY)
17
 
18
# Export environment set for target.
19
Export('env_target', 'DEVICE')