Subversion Repositories idreammicro-avr

Compare Revisions

Ignore whitespace Rev 19 → Rev 20

/trunk/projects/ultimate/ultimate.c
0,0 → 1,35
/**************************************************************************//**
* \file helloworld.c
******************************************************************************/
 
/******************************************************************************
* Header file inclusions.
******************************************************************************/
 
#include <digital_io/digital_io.h>
#include <twi/twi.h>
#include <usart/usart0.h>
 
#include <avr/io.h>
#include <util/delay.h>
 
/******************************************************************************
* Public function definitions.
******************************************************************************/
 
/**************************************************************************//**
* \fn int main(void)
*
* \brief Main function.
******************************************************************************/
int
main
(
void
){
for (;;)
{
_delay_ms(500);
}
return 0;
}
/trunk/projects/ultimate/SConscript
0,0 → 1,23
# Import environment set for target.
Import('env_target')
 
# Set target name.
TARGET = 'ultimate'
 
# Set libraries to use.
libraries = [
'ds1307',
'digital_io',
'twi,'
'usart'
]
 
# Set source file.
sources = 'ultimate.c'
 
# Build project and libraries.
env_target.BuildProject(libraries, sources, TARGET)
 
# Compute memory usage.
env_target.ComputeMemoryUsage(TARGET)
/trunk/projects/ultimate/SConstruct
0,0 → 1,31
# Set environment for AVR-GCC.
SConscript('#build_system/env_avr.py')
 
# Import environment set for AVR-GCC.
Import('env_avr')
 
# Append CPPPATH with the root path of libraries.
env_avr.Append(CPPPATH = [ '#libraries/' ])
 
# Define environments to use (one environment per target).
environments = [
'env_arduino_uno',
'env_arduino_mega2560'
]
 
# Browse environments.
for environment in environments:
# Set environment for target.
SConscript(
'#build_system/' + environment + '.py',
exports = 'env_avr'
)
# Import environment set for target.
Import('env_target')
# Build program.
SConscript(
'SConscript',
variant_dir = '#build/' + 'projects/ultimate/' + environment,
exports = { 'env_target' : env_target },
duplicate = 0
)