What I've created is a environment containing open source software to build applications for AVR microcontroler (atmega8 in this example) using diagrams in DIA (Microsoft Windows only).
This environment consists of software like: imagemagick, doxygen, saxon xslt, dia diagram editor, java, WinAVR.
Basecally it works like this:
- Modify functions.c which contain function definitions
- Modify functions.h which contain function declaration
- Generate functions blocks for DIA using generate.bat script (as administrator)
- Open DIA to draw your program using previously generated function block (drag blocks from side bar)
- Connect blocks with each other.
- Save and compile program using compile.bat script (writing "compile.bat program_name.dia" - program_name.dia must be in the same directory as compile.bat).
- Download binary to device (you can use download.bat script but you must modify MAKEFILE in src directory to use with your programmer)
So as you can see there are to scripts generate.bat and compile.bat. What they do is they transform doxygen and dia files (which are XML files) using special XSLT transformations and they output them as other files.
This project was tested on atmega8. You can try for other devices it should work but you must modify makefile and setup.c in src directory.
How to install:
- Install newest Java JRE (add it's directory to PATH environment variable)
- Install imagemagick (add it's directory to PATH environment variable)
- Install Doxygen (add it's directory to PATH environment variable)
- Install SAXON XSLT (set SAXONDIR variable in setup.bat to point directory to saxon main directory)
- Install DIA diagram editor (set DIADIR variable in setup.bat to point directory to DIA main directory)
- Install WinAVR (add it's directory to PATH environment variable)
For more information visit develimgo.blogspot.com