Subversion Repositories idreammicro-avr

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

# Import environment set for target.
Import('env_target', 'env_name', 'DEVICE')

# Set target name.
TARGET = 'digital_io__test'

# Set source file.
sources = [
    'digital_io__test.c'
]

# Build program.
env_target.Program(target = TARGET + '.elf', source = sources)

# Create hex binary file.
env_target.Command(
    TARGET + '.hex',
    TARGET + '.elf',
    env_target['OBJCOPY'] + ' -O ihex $SOURCE $TARGET'
)

# Compute memory usage.
env_target.Command(
    None,
    TARGET + '.elf',
    env_target['SIZE'] + ' -C --mcu=' + DEVICE + ' $SOURCE'
)