avr-framework = Is a collection of avr specific functionality like i2c, uart and other interesting driver and helpers
Table of contents
1.Summary
avr-framwork is a collection of functions and examples used for programming on the avr platform. For example: i2c implementation, simple uart abstraction with stdin/stdout redirection, simple I/O abstraction layer for communicating with ports and more. Also there are some examples that are always enhanced by new ones if new functionality swaps in.
atmega2560(F_CPU=16000000)
Prerequisites
avr-gccavr-libcautotools
Clone avr-framework from github: git@github.com:ckruczek/avr-framework.git
$ git clone git@github.com:ckruczek/avr-framework.git
$ cd avr-framework
$ autoreconf --install
$ ./configure --host=avr --enable-m2560=yes
$ makeThe fourth line enables the use of the atmega2560 architecture.
To build an example change to the example directory. For example the blinky example.
$ cd samples/blinkyYou now find a predefined Makefile that you can trigger as follow:
Build the example
$ make -BUpload the example
$ make programIf your tty is different to dev/ttyACM0 you have to adapt the port accordingly. So change the AVRDUDE_PORT variable in the Makefile
according to your port.