AVR project skeleton generatorΒΆ

☯️ gen_avr8 is toolset for generation of AVR8 project skeleton for development embedded applications.

Developed in 🐍 python code.

The README is used to introduce the tool modules and provide instructions on how to install the tool modules, any machine dependencies it may have and any other information that should be provided before the modules are installed.

python package github issues documentation status github contributors

InstallationΒΆ

install python2 package install python3 package

Navigate to release page download and extract release archive.

To install gen_avr8 πŸ“¦ type the following

tar xvzf gen_avr8-x.y.z.tar.gz
cd gen_avr8-x.y.z/
#python2
python setup.py install_lib
python setup.py install_data
python setup.py install_egg_info
#python3
python3 setup.py install_lib
python3 setup.py install_data
python3 setup.py install_egg_info

You can use Docker to create image/container, or You can use pip to install πŸ“¦

#python2
pip install gen-avr8
#python3
pip3 install gen-avr8

github docker checker

UsageΒΆ

Create AVR8 Project Blink, MCU/FOSC will be selected during generation process

python gen_avr8_run.py -g Blink -t app

DependenciesΒΆ

gen_avr8 tool-module requires other modules and libraries

Supported mcusΒΆ

Current list of supported microcontrollers

attiny2313    atmega128      at90s2313
attiny24      atmega1280     at90s2333
attiny25      atmega1281     at90s4414
attiny26      atmega1284p    at90s4433
attiny261     atmega16       at90s4434
attiny44      atmega163      at90s8515
attiny45      atmega164p     at90s8535
attiny461     atmega165
attiny84      atmega165p
attiny85      atmega168
attiny861     atmega169
              atmega169p
              atmega2560
              atmega2561
              atmega32
              atmega324p
              atmega325
              atmega3250
              atmega329
              atmega3290
              atmega32u4
              atmega48
              atmega64
              atmega640
              atmega644
              atmega644p
              atmega645
              atmega6450
              atmega649
              atmega6490
              atmega8
              atmega8515
              atmega8535
              atmega88

Generation flow of project setupΒΆ

Base flow of generation process

https://raw.githubusercontent.com/vroncevic/gen_avr8/dev/docs/gen_avr8_flow.png

Tool structureΒΆ

gen_avr8 is based on Template mechanism

https://raw.githubusercontent.com/vroncevic/gen_avr8/dev/docs/gen_avr8.png

🧰 Generator structure

gen_avr8/
β”œβ”€β”€ conf/
|   β”œβ”€β”€ gen_avr8.logo
β”‚Β Β  β”œβ”€β”€ fosc.yaml
β”‚Β Β  β”œβ”€β”€ gen_avr8.cfg
β”‚Β Β  β”œβ”€β”€ gen_avr8_util.cfg
β”‚Β Β  β”œβ”€β”€ mcu.yaml
β”‚Β Β  β”œβ”€β”€ project_app.yaml
β”‚Β Β  β”œβ”€β”€ project_lib.yaml
β”‚Β Β  └── template/
β”‚Β Β      β”œβ”€β”€ app/
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ cflags.template
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ csflags.template
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ Makefile.template
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ module.template
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ objects.template
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ ocflags.template
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ odflags.template
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ sources.template
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ subdir.template
β”‚Β Β      β”‚Β Β  └── tools.template
β”‚Β Β      └── lib/
β”‚Β Β          β”œβ”€β”€ aflags.template
β”‚Β Β          β”œβ”€β”€ avr_lib_c.template
β”‚Β Β          β”œβ”€β”€ avr_lib_h.template
β”‚Β Β          β”œβ”€β”€ cflags.template
β”‚Β Β          β”œβ”€β”€ csflags.template
β”‚Β Β          β”œβ”€β”€ Makefile.template
β”‚Β Β          β”œβ”€β”€ objects.template
β”‚Β Β          β”œβ”€β”€ ocflags.template
β”‚Β Β          β”œβ”€β”€ odflags.template
β”‚Β Β          β”œβ”€β”€ sources.template
β”‚Β Β          β”œβ”€β”€ subdir.template
β”‚Β Β          └── tools.template
β”œβ”€β”€ __init__.py
β”œβ”€β”€ log/
β”‚Β Β  └── gen_avr8.log
β”œβ”€β”€ pro/
β”‚Β Β  β”œβ”€β”€ __init__.py
β”‚Β Β  β”œβ”€β”€ mcu_selector.py
β”‚Β Β  β”œβ”€β”€ module_type.py
β”‚Β Β  β”œβ”€β”€ osc_selector.py
β”‚Β Β  β”œβ”€β”€ read_template.py
β”‚Β Β  β”œβ”€β”€ template_dir.py
β”‚Β Β  β”œβ”€β”€ template_type.py
β”‚Β Β  └── write_template.py
└── run/
    └── gen_avr8_run.py

Indices and tablesΒΆ