Once a project has been created you can start adding C source files to it. For this tutorial we add a very simple programm, that actually does nothing, but is compatible with all AVR series processors.
To create the file:
int main(void)
{
while (1)
{
__asm__ volatile("nop"); // so the endless loop isn't optimized away
}
return (1); // should never happen
}
The file is now ready for building.
© 2007 Thomas Holland