Subversion Repositories idreammicro-avr

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12 jlesech 1
# Import environment set for target.
2
Import('env_target')
3
 
4
# Define target name.
5
TARGET = 'usart'
6
 
7
# Define source files.
8
if env_target['MCU'] == 'atmega328p':
9
    sources = [
10
        'usart0_m328.c'
11
    ]
12
elif env_target['MCU'] == 'atmega2560':
13
    sources = [
14
        'usart0_m2560.c'
15
    ]
16
 
17
# Build library.
18
env_target.BuildLibrary(sources, TARGET)