Skip to content

This repository provides commonly used code for avr controller(e.g. arduino atmega2560) programming. It supports I2C protocol, serial communication and more.

Notifications You must be signed in to change notification settings

ckruczek/avr-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

avr-framework = Is a collection of avr specific functionality like i2c, uart and other interesting driver and helpersGitHub release

Table of contents

1.Summary

2.Supported devices

3.Building on linux

4.Building an example

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.

Supported devices

atmega2560(F_CPU=16000000)

Building on linux with git, gcc/clang and autotools

Prerequisites

  • avr-gcc
  • avr-libc
  • autotools

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
$ make

The fourth line enables the use of the atmega2560 architecture.

Building an example

To build an example change to the example directory. For example the blinky example.

$ cd samples/blinky

You now find a predefined Makefile that you can trigger as follow:

Build the example

$ make -B

Upload the example

$ make program

If 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.

About

This repository provides commonly used code for avr controller(e.g. arduino atmega2560) programming. It supports I2C protocol, serial communication and more.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published